From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: PATCH: Add new output formats to plantuml Date: Mon, 02 May 2016 11:14:57 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ax9wu-0007N0-QA for emacs-orgmode@gnu.org; Mon, 02 May 2016 05:15:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ax9wi-0007yP-OG for emacs-orgmode@gnu.org; Mon, 02 May 2016 05:15:23 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:57085) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ax9wi-0007qu-FR for emacs-orgmode@gnu.org; Mon, 02 May 2016 05:15:16 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi attached please find a patch which adds additional output file types for plantuml. Cheers, Rainer --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-lisp-op-plantuml.el-Add-new-output-formats.patch Content-Transfer-Encoding: quoted-printable Content-Description: Add support for new output file types From=20839cb3194e6a40e577c5cab3b0a69961238924c9 Mon Sep 17 00:00:00 2001 From: "Rainer M. Krug" Date: Mon, 2 May 2016 11:00:23 +0200 Subject: [PATCH] lisp/op-plantuml.el: Add new output formats * lisp/ob-paltuml (org-babel-execute:plantuml): add new output formats of plantuml: - pdf : this needs extra java mudules to run which are mentioned on the plantml website (http://fr.plantuml.com/pdf.html) - vdx - xmi - scxml - html - txt (ascii art) - utxt (ascii art using unicode) The output format is based on the extension of the output file. =2D-- lisp/ob-plantuml.el | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lisp/ob-plantuml.el b/lisp/ob-plantuml.el index 0e07f2d..6cc55a2 100644 =2D-- a/lisp/ob-plantuml.el +++ b/lisp/ob-plantuml.el @@ -59,10 +59,26 @@ This function is called by `org-babel-execute-src-block= '." (concat "java " java " -jar " (shell-quote-argument (expand-file-name org-plantuml-jar-path)) + (if (string=3D (file-name-extension out-file) "png") + " -tpng" "") (if (string=3D (file-name-extension out-file) "svg") " -tsvg" "") (if (string=3D (file-name-extension out-file) "eps") " -teps" "") + (if (string=3D (file-name-extension out-file) "pdf") + " -tpdf" "") + (if (string=3D (file-name-extension out-file) "vdx") + " -tvdx" "") + (if (string=3D (file-name-extension out-file) "xmi") + " -txmi" "") + (if (string=3D (file-name-extension out-file) "scxml") + " -tscxml" "") + (if (string=3D (file-name-extension out-file) "html") + " -thtml" "") + (if (string=3D (file-name-extension out-file) "txt") + " -ttxt" "") + (if (string=3D (file-name-extension out-file) "utxt") + " -utxt" "") " -p " cmdline " < " (org-babel-process-file-name in-file) " > " =2D-=20 2.8.2 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJXJxqWAAoJENvXNx4PUvmC9sgH/38wKbEoE+ZiWdJuLsegChHq n6IrTjNOaBmemcE28G/eH2ABVShbErTh5TdibOu7NQQOCm5mr1ACgWT0VrmPCJHB HCH4wGUgyXhtGOfxFOWWcvgQy7Zt3x/eFja0ZMm6LTYUbyTTpLJisTYyBnFVBK4y /wWtWLn7YGWQMduVNmVYqCmBYaVljCIPZcoUUQ+EV2zYPm6WRbp1+IFf2SOu9Q1E gAdifEP0RnNkgEFlaspBCJH/KQrJ/0G1unxbZYEFkNxexFPmprHzSY3vPdRijbLH IT44aP7yuKPPBXnZMK1bwJaHCxbaFnJf9T1rCIDNFpgpvKxXVPdmfOLH+QQX1Ho= =5Ufz -----END PGP SIGNATURE----- --==-=-=--