From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Gauland Subject: [PATCH] EPS support for ob-plantuml Date: Sat, 26 Mar 2011 16:39:17 +1300 Message-ID: <20110326033917.GA19537@planet8> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZfOjI3PrQbgiZnxM" Return-path: Received: from [140.186.70.92] (port=33685 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q3KKr-0003SE-4K for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 23:38:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q3KKq-0005WI-4r for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 23:38:44 -0400 Received: from jersey.rurallink.co.nz ([114.134.15.197]:43626 helo=smtp.rurallink.co.nz) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q3KKp-0005Vp-PV for emacs-orgmode@gnu.org; Fri, 25 Mar 2011 23:38:44 -0400 Received: from 114-134-6-192.rurallink.co.nz ([114.134.6.192] helo=localhost) by smtp.rurallink.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Q3KKf-0008CR-Kx for emacs-orgmode@gnu.org; Sat, 26 Mar 2011 16:38:34 +1300 Content-Disposition: inline List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --ZfOjI3PrQbgiZnxM Content-Type: multipart/mixed; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ob-plantuml.el.ediff" 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) " > " --EeQfGwPcQSOJBaQU-- --ZfOjI3PrQbgiZnxM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk2NX+UACgkQ+1rFcVHIKD5O4ACcCZ5BKFOAas0ts4vqsvWqOATh V7MAn2efMCkHfRhHx7PmRc0vQmA76bVW =I5ss -----END PGP SIGNATURE----- --ZfOjI3PrQbgiZnxM--