I am preparing a presentation using org-mode and babel, and want to export to beamer pdf.
In the output, the source code and the results are with the same style (verbatim in latex). Thus it is difficult to distinguish them.
Would it be possible to export source code and results with different styles (preferably different color)?
Thanks a lot!
You could use the
minted
LaTeX package to syntax highlight the source code:C-h v org-latex-listings
I have this in my init file:
There are different color-themes you can use with minted, for example you could put this option into your org file to use "monokai":
to get a list of the supported styles from pygmentize: