Message Boards Message Boards

0
|
4113 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to insert Mathematica Code in LaTeX?

I am writing a paper on the SIR epidemiological model and in addition to the images and graphs I have created in Mathematica, I would like to insert the code before each graph. Is there any way to do this? I write my LaTeX code in the Overleaf

3 Replies

Have you tried to right click on the code cell and use Copy as -> LaTeX ?
https://reference.wolfram.com/language/workflow/GenerateTeXWithTheWolframLanguage.html

POSTED BY: Ahmed Elbanna

Oh, I have tried that yet. Thanks

The LaTeX package listings can format Mathematica code, I think.

POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract