From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [PATCH] EPS support for ob-plantuml Date: Wed, 30 Mar 2011 23:25:59 -0600 Message-ID: <87ipuzq2s8.fsf@gmail.com> References: <20110326033917.GA19537@planet8> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=35380 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q5AOV-00084O-ML for emacs-orgmode@gnu.org; Thu, 31 Mar 2011 01:26:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q5AOU-0007Hd-2s for emacs-orgmode@gnu.org; Thu, 31 Mar 2011 01:26:07 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:45912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q5AOT-0007HK-W7 for emacs-orgmode@gnu.org; Thu, 31 Mar 2011 01:26:06 -0400 Received: by iwg8 with SMTP id 8so2628508iwg.0 for ; Wed, 30 Mar 2011 22:26:05 -0700 (PDT) In-Reply-To: <20110326033917.GA19537@planet8> (Michael Gauland's message of "Sat, 26 Mar 2011 16:39:17 +1300") 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: Michael Gauland Cc: emacs-orgmode@gnu.org I've applied this patch. Thanks for contributing! -- Eric Michael Gauland writes: > 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 > > > 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) > " > "