emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

plantuml tikz format support


From: Nan JunJie
Subject: plantuml tikz format support
Date: Wed, 23 Aug 2023 20:57:06 +0800
User-agent: Gnus/5.13 (Gnus v5.13)

I'd like to add a patch to support plantuml tikz format. We can use it
like this:

#+begin_src plantuml :file file.tikz
...
#+end_src

#+results:
[[file.tikz]]

So that file.tikz will be treat as tikz picture and input.

Here the patch:

>From c97e5f421202ac2bfd16174c2d4be4059b0aa4c8 Mon Sep 17 00:00:00 2001
From: Nan Jun Jie <nanjunjie@139.com>
Date: Wed, 23 Aug 2023 20:23:40 +0800
Subject: [PATCH] Add plantuml tikz tex support

Via the use of plantuml -tlatex:nopreamble option, tikz tex can be
\input in the export latex, so that it will be compiled as tikz
picture, just like the png or svg format.
---
 lisp/ob-plantuml.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el
index 3202c6e41..b5cc9322e 100644
--- a/lisp/ob-plantuml.el
+++ b/lisp/ob-plantuml.el
@@ -143,6 +143,7 @@ This function is called by `org-babel-execute-src-block'."
                            ("eps" '("-teps"))
                            ("pdf" '("-tpdf"))
                            ("tex" '("-tlatex"))
+               ("tikz" '("-tlatex:nopreamble"))
                            ("vdx" '("-tvdx"))
                            ("xmi" '("-txmi"))
                            ("scxml" '("-tscxml"))
-- 
2.40.1



-- 
 ∧ ∧︵
ミ^ō^ミ灬)~
https://nanjj.github.io




reply via email to

[Prev in Thread] Current Thread [Next in Thread]