Joe
Joe

Reputation: 1045

How to only export results of code blocks and not the code that generates it

I'd expect

#+begin_src plantuml :file foo.png :exports results
foo -> bar: JSON request
foo -> batz : instantiate batz\npassing resources from request
#+end_src

to only produce the resulting image in the exported document, but it exports both the plantuml code that produces it and the resulting image.

Any ideas what I can do to only export the images that are generated by the code block short of commenting out the code blocks after first generating the images?

Upvotes: 0

Views: 731

Answers (1)

éric
éric

Reputation: 429

I'm not allowed to comment so will provide an answer: this works fine for me with org 9.3.7 (i.e. only the image is exported, at least to PDF via LaTeX) so maybe it's a bug in the version of org you are using?

If posting this annoys anybody, I will delete.

Upvotes: 1

Related Questions