From: Nan JunJie <nanjunjie@139.com>
To: emacs-orgmode@gnu.org
Subject: plantuml tikz format support
Date: Wed, 23 Aug 2023 20:57:06 +0800 [thread overview]
Message-ID: <87wmxlhq71.fsf@139.com> (raw)
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
next reply other threads:[~2023-08-24 6:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-23 12:57 Nan JunJie [this message]
2023-08-24 7:57 ` plantuml tikz format support Ihor Radchenko
2023-08-29 12:51 ` 13910969806
[not found] ` <87y1hxqn0l.fsf@139.com>
[not found] ` <87jztgga4s.fsf@localhost>
2023-10-20 11:55 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87wmxlhq71.fsf@139.com \
--to=nanjunjie@139.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).