emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] EPS support for ob-plantuml
@ 2011-03-26  3:39 Michael Gauland
  2011-03-31  5:25 ` Eric Schulte
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Gauland @ 2011-03-26  3:39 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 361 bytes --]

EPS export from Plantuml is now in beta testing; this patch makes it available through org-babel.

To generate an EPS from Plantuml, give your source block a ':file' with the extension '.eps'.

If you want to include the EPS files in PDF generated from org-export, include the line

    #+LaTex_header: \usepackage{epstopdf}

in your org file.

--Mike Gauland


[-- Attachment #1.2: ob-plantuml.el.ediff --]
[-- Type: text/plain, Size: 490 bytes --]

diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el
index fbebd35..b57aad6 100644
--- a/lisp/ob-plantuml.el
+++ b/lisp/ob-plantuml.el
@@ -62,6 +62,8 @@ This function is called by `org-babel-execute-src-block'."
 			 (expand-file-name org-plantuml-jar-path))
 			(if (string= (file-name-extension out-file) "svg")
 			    " -tsvg" "")
+			(if (string= (file-name-extension out-file) "eps")
+			    " -teps" "")
 			" -p " cmdline " < "
 			(org-babel-process-file-name in-file)
 			" > "

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-31  5:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-26  3:39 [PATCH] EPS support for ob-plantuml Michael Gauland
2011-03-31  5:25 ` Eric Schulte

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).