Exporting org document with inline SVG
September 15 2017105 words, ~1 min. read
emacs, org-mode, svg
In order to export SVGs as inline SVG as part of exporting an Org document as HTML, follow the steps mentioned below,
- Ensure to add
:exports none :results drawerin theSRCblock; for e.g. check the following code block usingplantuml,
#+BEGIN_SRC plantuml :file test.svg :exports none :results drawer
- Evaluate the code block by pressing =C-c C-c=; check the results to ensure the file is indeed created,
#+RESULTS:
:RESULTS:
[[file:test.svg]]
:END:
- Now,
#+INCLUDEthe file to insert the contents of the file,
#+INCLUDE: "test.svg" export html
- Export the document by pressing
C-c C-e h h
- Check the generated HTML by viewing in the browser