1

I have a large plantuml sequence diagram in blah.iuml. I would like to include it in my org-mode file so that it gets regenerated and included each time I export the org file to html. I don't want to maintain the file separately, and not just insert it into the org file. I'd hoped that something like this would work

#+begin_src plantuml :file blah.png
#+include "./blah.iuml"
#+end_src

I can see that it is trying to run plantuml on a file that contains

@startuml
#-include "./blah.iuml"

That is, the include is not doing an actual include when inside a #+begin_src.

Is there a way I can tell org-mode: "run plantuml on this file and pop the result into the generated html"?

  • Instead of wrapping the #+include statement in a src block, try: #+INCLUDE: "./blah.iuml" src plantuml – Tyler Jan 19 '18 at 18:17
  • Thanks! I got it to work with this: #+include "./blah.iuml" src plantuml :file blah.png – Rob Jan 19 '18 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.