From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oGNtKv7p7WSjwQAAauVa8A:P1 (envelope-from ) for ; Tue, 29 Aug 2023 14:52:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oGNtKv7p7WSjwQAAauVa8A (envelope-from ) for ; Tue, 29 Aug 2023 14:52:14 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C487967B5E for ; Tue, 29 Aug 2023 14:52:10 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693313534; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=6iuK9FOW+KMKoVwwIYGeU0cQoLVuuwIiMTBtmJ5jQio=; b=Tkyz84R18ZPmv1rbgGD+bj1D0mS97dAv9/ilegX7lCl7+cbKhD5hwRDo+/Y06g+thsvxZD NyMpvoG3C6XoMDBsZfWJ1f+at9W1d3aaW04QxInAuTqo4sm7FH/tf8QF+7kO7AIGx+UXMF 51wmuOSijmdCCm8SwKtxVGgdzbKONnOhJP4bqpZFP3wdj0Ut3jNsPF+Fb28QDzZ3cqP8CI 855RgtLJujBuplu0ILzmIkmi9t6vnQMI9CTgSxTOiuT/INTelnk+5M0b0dspFtieuKQIVV qQC1g60BhYASSMn1a4GhCn5LpwSgodWBMYTDa5uXEAS6mqsoNaZSj/Hsz7FDWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693313534; a=rsa-sha256; cv=none; b=l6m1pT54kDMA8zGDnEsZw7waIwVxOoV8rcNkyb2iMHnxDLGJBfQOduiKjN6behEZaDkuP/ 68nMlEC2YOMjcZKlk2rE+YgC1Xby5bEO77Jd+wkkMts2f4OZdjmAR2HEB1HmwXUxF9DnXc DL6WMl1+wCvQUpq0FgGOkyTBxlDm9oEjmF97eYxKg6GbQbCg9sly3UGSsAtZaKGDC1qe2N JKfHtDO4ojX26KoEuuI0Hlbyf0WL9I9KGmOlQB4jtXcb2FlfAY2C3EKrQC8PshQ3t8tCnm S5QKPsI++NQxDlnmo7dXPJwHuYbGWyDbnEc6MZEcANl1GC7EmtVXkBusLPG7tw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qayBx-0006C0-T1; Tue, 29 Aug 2023 08:51:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qayBv-0006Bb-OI for emacs-orgmode@gnu.org; Tue, 29 Aug 2023 08:51:31 -0400 Received: from n169-114.mail.139.com ([120.232.169.114]) by eggs.gnu.org with smtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qayBr-0006tv-8k for emacs-orgmode@gnu.org; Tue, 29 Aug 2023 08:51:31 -0400 X-RM-TagInfo: emlType=0 X-RM-SPAM: X-RM-SPAM-FLAG: 00000000 Received: from 192.168.3.98 (unknown[120.244.220.119]) by rmsmtp-lg-appmail-39-12053 (RichMail) with SMTP id 2f1564ede9bed14-67fde; Tue, 29 Aug 2023 20:51:12 +0800 (CST) X-RM-TRANSID: 2f1564ede9bed14-67fde User-Agent: 139mail Mail for Android In-Reply-To: <874jko7u0b.fsf@localhost> (Ihor Radchenko's message of "Thu, 24Aug 2023 07:57:08 +0000") References: <87wmxlhq71.fsf@139.com> <874jko7u0b.fsf@localhost> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----N8PNMKJQLW6YRVH0WS63G0D2KHMESX" Subject: Re: plantuml tikz format support From: 13910969806 Date: Tue, 29 Aug 2023 20:51:10 +0800 To: yantar92@posteo.net CC: emacs-orgmode Message-ID: Received-SPF: pass client-ip=120.232.169.114; envelope-from=nanjunjie@139.com; helo=n169-114.mail.139.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -6.23 X-Migadu-Queue-Id: C487967B5E X-Migadu-Spam-Score: -6.23 X-TUID: PYdukio5LeD6 ------N8PNMKJQLW6YRVH0WS63G0D2KHMESX Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ihor Radchenko writes: Thanks! This looks reasonab= le=2E May you also update etc/ORG-NEWS and https://orgmode=2Eorg/worg/org-c= ontrib/babel/languages/ob-doc-plantuml=2Ehtml page, documenting the changes= =2E The Worg page source live in https://git=2Esr=2Eht/~bzg/worg Another p= ossibility could be supporting :results latex header argument and output a = latex export block=2E The org-mode part: >From 3c27bb94cb5a2cd66a5336dc9c6= 9e3ca03232a91 Mon Sep 17 00:00:00 2001 From: Nan Jun Jie Date: Wed, 23 Aug 2023 20:23:40 +0800 Subject: [PATCH] Add plantuml tik= z format support Via the use of plantuml -tlatex:nopreamble option, tikz t= ex can be \input in the export latex, so that it will be compiled as tikz p= icture, just like the png or svg format=2E --- etc/ORG-NEWS | 4 ++++ lisp/o= b-plantuml=2Eel | 1 + 2 files changed, 5 insertions(+) diff --git a/etc/OR= G-NEWS b/etc/ORG-NEWS index 4db9d258a=2E=2Ed38520307 100644 --- a/etc/ORG-N= EWS +++ b/etc/ORG-NEWS @@ -593,6 +593,10 @@ return a matplotlib Figure obje= ct to plot=2E For output results, the current figure (as returned by =3Dpyp= lot=2Egcf()=3D) is cleared before evaluation, and then plotted afterwards= =2E +*** =3Dob-plantuml=2Eel=3D: Support tikz file format output +=3Dob-pl= antuml=2Eel=3D now output tikz format via `-tlatex:nopreamble` +option=2E S= o that the output tikz file can be input into the exported +latex correctly= =2E ** New functions and changes in function arguments *** =3DTYPES=3D argu= ment in ~org-element-lineage~ can now be a symbol diff --git a/lisp/ob-pla= ntuml=2Eel b/lisp/ob-plantuml=2Eel index 3202c6e41=2E=2Eb5cc9322e 100644 --= - a/lisp/ob-plantuml=2Eel +++ b/lisp/ob-plantuml=2Eel @@ -143,6 +143,7 @@ T= his function is called by `org-babel-execute-src-block'=2E" ("eps" '("-teps= ")) ("pdf" '("-tpdf")) ("tex" '("-tlatex")) + ("tikz" '("-tlatex:nopreamble= ")) ("vdx" '("-tvdx")) ("xmi" '("-txmi")) ("scxml" '("-tscxml")) -- 2=2E40= =2E1 -- https://nanjj=2Esrht=2Esite =E2=88=A7 =E2=88=A7=EF=B8=B5 =E3=83= =9F^=C5=8D^=E3=83=9F=E7=81=AC)=EF=BD=9E https://nanjj=2Egithub=2Eio ------N8PNMKJQLW6YRVH0WS63G0D2KHMESX Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Ihor Radchenko <yantar92@posteo=2Enet>= ; writes:

Thanks!
This looks reasonable=2E May you also update et= c/ORG-NEWS and
https://orgmode=2Eorg/worg/org-contrib/bab= el/languages/ob-doc-plantuml=2Ehtml
page, documenting the changes=2E= The Worg page source live in
https://git=2Esr=2Eht/~bzg/worg

Another possibility could be s= upporting :results latex header argument
and output a latex export block= =2E

The org-mode part:

From 3c27bb94cb5a2cd66a5336dc9c69e3ca0= 3232a91 Mon Sep 17 00:00:00 2001
From: Nan Jun Jie <nanjunjie@139=2Ec= om>
Date: Wed, 23 Aug 2023 20:23:40 +0800
Subject: [PATCH] Add pla= ntuml tikz format support

Via the use of plantuml -tlatex:nopreamble= option, tikz tex can be
\input in the export latex, so that it will be = compiled as tikz
picture, just like the png or svg format=2E
---
e= tc/ORG-NEWS | 4 ++++
lisp/ob-plantuml=2Eel | 1 +
2 files changed, 5 i= nsertions(+)

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index 4db9d= 258a=2E=2Ed38520307 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@= @ -593,6 +593,10 @@ return a matplotlib Figure object to plot=2E For output= results, the
current figure (as returned by =3Dpyplot=2Egcf()=3D) is cl= eared before
evaluation, and then plotted afterwards=2E

+*** =3Do= b-plantuml=2Eel=3D: Support tikz file format output
+=3Dob-plantuml=2Eel= =3D now output tikz format via `-tlatex:nopreamble`
+option=2E So that t= he output tikz file can be input into the exported
+latex correctly=2E** New functions and changes in function arguments
*** =3DTYPES=3D arg= ument in ~org-element-lineage~ can now be a symbol

diff --git a/lisp= /ob-plantuml=2Eel b/lisp/ob-plantuml=2Eel
index 3202c6e41=2E=2Eb5cc9322e= 100644
--- a/lisp/ob-plantuml=2Eel
+++ b/lisp/ob-plantuml=2Eel
@@= -143,6 +143,7 @@ This function is called by `org-babel-execute-src-block'= =2E"
("eps" '("-teps"))
("pdf" '("-tpdf"))
("tex" '("-tlatex"))+ ("tikz" '("-tlatex:nopreamble"))
("vdx" '("-tvdx"))
("xmi" '("-txm= i"))
("scxml" '("-tscxml"))
--
2=2E40=2E1

--
https://n= anjj=2Esrht=2Esite
=E2=88=A7 =E2=88=A7=EF=B8=B5
=E3=83=9F^=C5=8D^=E3= =83=9F=E7=81=AC)=EF=BD=9E
https:= //nanjj=2Egithub=2Eio
------N8PNMKJQLW6YRVH0WS63G0D2KHMESX--