From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0FVqAb6ixmMUGwAAbAwnHQ (envelope-from ) for ; Tue, 17 Jan 2023 14:29:34 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ECF+AL6ixmM9CAEAG6o9tA (envelope-from ) for ; Tue, 17 Jan 2023 14:29:34 +0100 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 A4F552973D for ; Tue, 17 Jan 2023 14:29:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHm0x-0005Eg-N0; Tue, 17 Jan 2023 08:28:35 -0500 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 1pHm0g-00052E-5k for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 08:28:19 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHm0d-0001UM-S9 for emacs-orgmode@gnu.org; Tue, 17 Jan 2023 08:28:17 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2C25524032B for ; Tue, 17 Jan 2023 14:28:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1673962092; bh=rpdCW374dL4+haXaH2g6m/q955O/VXCDOagzw51Nh48=; h=From:To:Cc:Subject:Date:From; b=qxXEFQlJ164lMFi/ZEt8Y5jnJpdppQDCoVJLgG4hpkC4UFjKEPlMx9udbBL9dvd0s 7QPq3Dmh9eNrxgW2Ya8gojOXtr4p1C7h2uDHRrWmIN+pnifNVB4N/pg+KyI4rQ9of1 7aBagnjZr4GCqrlbnr1BRv6FcHB0P7v6UxDIP5FLb4/9y8aENnNprUnzmGGtMT7l2p t5aSOxHhraQFUoWFfrcySX2Y8sJh2zp2XRhwHpqAHlELmBANMOaLW+IlPovn+s51S+ i1dYsuFRVHZocD36AJUywh5MoAsOFgZO8Hy+DedjmMc5hp7zIsnrcnmNi2GG0P7eAj ZJDwJQEE3Ugvg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Nx8pf1lWYz6tmp; Tue, 17 Jan 2023 14:28:10 +0100 (CET) From: Ihor Radchenko To: Ypo Cc: Org-mode Subject: Re: Help with a workflow to export plantuml diagrams In-Reply-To: <35f4465e-5b73-6ca4-af81-da01a05e619d@gmail.com> References: <35f4465e-5b73-6ca4-af81-da01a05e619d@gmail.com> Date: Tue, 17 Jan 2023 13:28:40 +0000 Message-ID: <87h6wpguif.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-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-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673962173; a=rsa-sha256; cv=none; b=jD/bJ8bK+dJTQb+ADHMoGJ8XFKlvfJQQRyDVeGCIhjJ4LrPPQ797NJ8uZOgK6TwDFXtxvX Ggg3MzcfjC+rdFnZVy17oV3ScPINPDxjJ0ssSNp/vL2guOa0naoXvs3SrPkmy99mqIZshr +DPYJR9Zfz5y+anlbHfmfY65utb6aB0aYIEesIJipwcdpJxZEg877JduA1Htq7SwnxQLhl E6HKiNvRmQt3AT1dL9Y5G/m5wEid2BgeC08ov6xRFh0C/FZ5gW8Qsx3xcAKuhV5BORrBj5 cS8iK5rpnQo+9wR10VIh7M0Dxbqf/0rgQ4LgbaqeSiPuz7/L9ZTvt9WOeGZ7CA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=qxXEFQlJ; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673962173; 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:dkim-signature; bh=cL/5+MJhjuyNUIEjvvNF8byxMnU7rkrIN7fluKbcSdc=; b=sp+UpdQ8a4+ku9PQcpikRb2HO0kHwGxUEh+s4vbSzM6Dn4ZbdqL7Qx9yiacqSl1Hk7jLYP jydHp174EsJB+lBF5H4IufHz21OGuhrFkAg8uC2famhTTMu7OHQOgLSyZ+iEJ7Rhl2pcJ7 TPEmZUvN+xvqQmX5WLbqrX6BIkHLMjfTw/bW57oXNsg7EvHNBDfxnh3N5XuR3WnE715K2W PCXdg80hRMJYrxPDWAjZLnFgyHlOukN4iARxxxSCDgunXbyYATmwCkXuyK+gtS9q8rC07x hcSsPuswyJJqNb7a8qMglOz4i1tkSGDJ/EORX+hhwVfNW7KWkALkobDK8xaX7w== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -6.08 X-Spam-Score: -6.08 X-Migadu-Queue-Id: A4F552973D Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=qxXEFQlJ; dmarc=pass (policy=none) header.from=posteo.net; 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" X-TUID: dBHa281deBzu Ypo writes: > Could be the headlines exported in a faster way? > > Could be possible to avoid the duplication of information? (To create > the diagram directly from the headlines, without yanking a copy of them). You can use noweb reference syntax. #+name: collect-headings #+begin_src emacs-lisp :results silent ;; Collect all the headings in current buffer. (concat "* Top\n" (mapconcat #'identity (org-map-entries '(concat "*" (buffer-substring-no-properties (line-beginning-position) (line-end-position)))) "\n")) #+end_src #+begin_src plantuml :noweb yes :file my-diagram.png @startwbs <> @endwbs #+end_src -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at