Skip to content

Instantly share code, notes, and snippets.

@logc
Last active May 18, 2024 08:00
Show Gist options
  • Save logc/31baf75714aed3d14861143fb23a87e6 to your computer and use it in GitHub Desktop.
Save logc/31baf75714aed3d14861143fb23a87e6 to your computer and use it in GitHub Desktop.
@logc
Copy link
Author

logc commented May 18, 2024

A template for an org-mode file that includes PlantUML diagrams. An important part is not visible in the rendered file: the org-latex-pdf-process variable is customized as a buffer-local variable to include the -shell-escape flag. Otherwise, the export to Latex does not work (as of Emacs 30.0.50 and org-mode 9.7).

The variable is customized to a list of repeated commands to allow for Bibtex references, not really a part of this template but included anyway.

Clone the gist or view the raw file to see this part.

Also, this gist assumes that org-mode is enabled, and plantuml is one of the languages enabled for babel:

(use-package org
  :config
  (org-babel-do-load-languages
   'org-babel-load-languages
   '((plantuml . t))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment