I regularly use org-mode and org-babel to create e.g. exercises or proof-of-principle documents which I export to PDF via the LaTeX exporter. I noticed that the #RESULTS
generated by a #+begin_src
-#+end_src
block are put in a #+begin_example
-#+end_example
block, which is exported to LaTeX's verbatim
environment.
I would like to customize this LaTeX export. I could try and add some #+LATEX_HEADER
lines customizing the verbatim
environment (e.g. using the fancyvrb
package), however, ideally I would like to use the listings
environment for the output. Is this possible?
EDIT:
I currently use the listings
package to format the src
blocks, so ideally I would like to use the same formatting for both.