diff options
author | Rainer M. Krug <R.M.Krug@gmail.com> | 2016-05-02 11:00:23 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2016-05-03 19:13:50 +0200 |
commit | d87bf07ea6ea1ed3a5693b53881a012427ee4edf (patch) | |
tree | 9585d23051a4155bb46ba654b07e58ba5d7be92f | |
parent | 36dbdb9465be2849e27ba65832d8133800781e39 (diff) | |
download | org-mode-d87bf07ea6ea1ed3a5693b53881a012427ee4edf.tar.gz |
ob-plantuml: Add new output formats
* lisp/ob-paltuml (org-babel-execute:plantuml): add new output formats
of plantuml:
- pdf : this needs extra java mudules to run which are mentioned on the
plantml website (http://fr.plantuml.com/pdf.html)
- vdx
- xmi
- scxml
- html
- txt (ascii art)
- utxt (ascii art using unicode)
The output format is based on the extension of the output file.
-rw-r--r-- | lisp/ob-plantuml.el | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el index 0e07f2d..6cc55a2 100644 --- a/lisp/ob-plantuml.el +++ b/lisp/ob-plantuml.el @@ -59,10 +59,26 @@ This function is called by `org-babel-execute-src-block'." (concat "java " java " -jar " (shell-quote-argument (expand-file-name org-plantuml-jar-path)) + (if (string= (file-name-extension out-file) "png") + " -tpng" "") (if (string= (file-name-extension out-file) "svg") " -tsvg" "") (if (string= (file-name-extension out-file) "eps") " -teps" "") + (if (string= (file-name-extension out-file) "pdf") + " -tpdf" "") + (if (string= (file-name-extension out-file) "vdx") + " -tvdx" "") + (if (string= (file-name-extension out-file) "xmi") + " -txmi" "") + (if (string= (file-name-extension out-file) "scxml") + " -tscxml" "") + (if (string= (file-name-extension out-file) "html") + " -thtml" "") + (if (string= (file-name-extension out-file) "txt") + " -ttxt" "") + (if (string= (file-name-extension out-file) "utxt") + " -utxt" "") " -p " cmdline " < " (org-babel-process-file-name in-file) " > " |