emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michael Gauland <mikelygee@no8wireless.co.nz>
To: emacs-orgmode@gnu.org
Subject: [PATCH] EPS support for ob-plantuml
Date: Sat, 26 Mar 2011 16:39:17 +1300	[thread overview]
Message-ID: <20110326033917.GA19537@planet8> (raw)


[-- 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 --]

             reply	other threads:[~2011-03-26  3:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-26  3:39 Michael Gauland [this message]
2011-03-31  5:25 ` [PATCH] EPS support for ob-plantuml Eric Schulte

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=20110326033917.GA19537@planet8 \
    --to=mikelygee@no8wireless.co.nz \
    --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).