DONE integrate plantuml support

  • State "DONE" from "TODO" 2010-08-26 Thu 11:28
  • State "TODO" from "" 2010-08-26 Thu 10:12

Babel now support blocks of plantuml code. Thanks to Zhang Weize for adding this support.

Setup

  1. With the latest version of Org-mode setup consists of adding plantuml to `org-babel-load-languages' with code like the following or through the customization interface.
    ;; active Org-babel languages
    (org-babel-do-load-languages
     'org-babel-load-languages
     '(;; other Babel languages
       (plantuml . t)))
    
  1. Then download the jar file save it somewhere on your system, set `org-plantuml-jar-path' to point to this file.
    (setq org-plantuml-jar-path
          (expand-file-name "~/src/org/contrib/scripts/plantuml.jar"))
    

Usage

  • see http://plantuml.sourceforge.net/ for a variety of example usages, the following code block is an example of usage from within an Org-mode file.
    #+begin_src plantuml :file tryout.png
      Alice -> Bob: synchronous call
      Alice ->> Bob: asynchronous call
    #+end_src
    
    #+results:
    file:tryout.png