From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 AFcjF5ZdzGN5jgAAbAwnHQ (envelope-from ) for ; Sat, 21 Jan 2023 22:48:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8KAlF5ZdzGO6xAAAauVa8A (envelope-from ) for ; Sat, 21 Jan 2023 22:48:06 +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 2172A1CCC4 for ; Sat, 21 Jan 2023 22:48:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pJLhi-00080M-2P; Sat, 21 Jan 2023 16:47:14 -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 1pJLhh-000808-28 for emacs-orgmode@gnu.org; Sat, 21 Jan 2023 16:47:13 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pJLhf-0007cg-Fb for emacs-orgmode@gnu.org; Sat, 21 Jan 2023 16:47:12 -0500 Received: by mail-wm1-x336.google.com with SMTP id q8so6448585wmo.5 for ; Sat, 21 Jan 2023 13:47:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=3Aht0lAa+VCXs0aduDNhPv32VqprS9YRoJw/u2FI/xs=; b=AQZWMRSjQhX2hh1FmyFU4pTpxVDjvLK7bSjlioWVD94vCiR1Dc2GZGxtrrZHyAKFw5 P0z8C0tuVd1QyNTsMRviOkE6ArSx0pgfSP4BcnWjDY48waOF13G2ap2xdGYw9q9Dhk0Z avPWMQy8oyH3BPpw00eeihMLF2g3wTk5u+nPx8goiP62T8IwNi4jeX+/0Y0OqmOxoA37 DKm/7yDUBurkSp5GNUCxPKFJu2MyL+jURbKXymqhc4raRNhMx0GqKHfO/vAbHakw+igA GJoWX/A+j6qeibNm1+VoXl3kLHmfS3v4imUrjxt20zzrx8tRpLKdw4qz73BQPMhcyGuJ FLHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=3Aht0lAa+VCXs0aduDNhPv32VqprS9YRoJw/u2FI/xs=; b=lqRjYgLOM9Km02zSC+rx8PqBvnSPP352lZ9jkN+z3w3jTzUmNjzXbkfh0k/HNSIcGZ sYcNDyuYVD+yJqQQw/GukXmdDWoMkLJLT/Cc9jQApiU4p8rJbRgx+hDByQbwZc64/B1Q 8xZKZeyp3Vd2W2wAlIUYmDGmNce0/AFflrsW40HyLFfmM+b5pHStQI3H8t7WodgWhrHq ZdSuKkACgLFcqUSG2VAwGu7qkL2eP5Q76ZelyStqOEZjRrK64d3LiwivqN8clCLlamGY EsaoE88H3eR9LgrqEa+IrIVSFUsPDM1Y0zyUkntVQWJLB9cMcwRyXoUqGHhEspvyvX5z WZCg== X-Gm-Message-State: AFqh2koa2Lswm5CR7aDLNtrHGMSSskXyldT7a+eqjR6LsbteR1uasUeg lmJ/ZRZOwrM03sIa+Y+jBFg= X-Google-Smtp-Source: AMrXdXvLg5eicSzq6XNXXiwjk3rKXTG99otOqwUlVvV+/KDznHOhDLKZ2jwSsSKOUAp+ufLK5gbG3g== X-Received: by 2002:a05:600c:3c83:b0:3d9:e5d3:bf with SMTP id bg3-20020a05600c3c8300b003d9e5d300bfmr18688507wmb.32.1674337629217; Sat, 21 Jan 2023 13:47:09 -0800 (PST) Received: from [192.168.0.97] (static-30-127-26-46.ipcom.comunitel.net. [46.26.127.30]) by smtp.gmail.com with ESMTPSA id m31-20020a05600c3b1f00b003dafadd2f77sm6961082wms.1.2023.01.21.13.47.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 21 Jan 2023 13:47:08 -0800 (PST) Content-Type: multipart/alternative; boundary="------------xgf2Y0388eohd6lHwp2Mb0dR" Message-ID: <80fa4272-5fb3-e079-ff60-3b8175575bc3@gmail.com> Date: Sat, 21 Jan 2023 22:47:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Help with a workflow to export plantuml diagrams Content-Language: en-GB To: Ihor Radchenko Cc: Org-mode References: <35f4465e-5b73-6ca4-af81-da01a05e619d@gmail.com> <87h6wpguif.fsf@localhost> From: Ypo In-Reply-To: <87h6wpguif.fsf@localhost> Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=ypuntot@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.092, RCVD_IN_DNSWL_NONE=-0.0001, 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=1674337686; a=rsa-sha256; cv=none; b=WT8l1DqA+Yw8nwvpTy7o+pZHvcwtyHjSXhvKO6zqtQ14CAci0mbB8o4y1e02nAnDYXlkbl YAHao+8JslWuPhIAt7LRVobG3gB4bZQPRcsm/qbLLeTnCWAZH3oSC7sgpHQUbD/EwxhxE4 LcXA96jWA1/wBOpLNcd++GeD9QQcBMSf2NRuHcCrc18ti9zjFFrfW8gOMz/4P+bXdl+WPp CiMFko6U96RfMPtcNZoUnn74fDkNtTHJV5aQao8aS+otW1Ook9vFAX7t1RC3ACCkWZaLo8 bteCx7whiYejl+uuuJYcZUlu/D8j0x5Kt88g1DdPMWEK54VdcZkSCCrWBRCwbQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AQZWMRSj; dmarc=pass (policy=none) header.from=gmail.com; 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=1674337686; 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=3Aht0lAa+VCXs0aduDNhPv32VqprS9YRoJw/u2FI/xs=; b=k+Ln6e92lFztc07kU3MvVe7uLY1f4zBveH36xlQPsNpaMHrEMvNAaM277F2iIqUEfpyBF/ Wp4YpIS4pHMt5pmvR9QkNjnD7OIw5CiofHeIfAqF6gdIGcHZmQrjOfu5GwSTC3Pq/AWx1m P1q3tx/zLLI7Q9/MC91vHg3/KC2ZKgO3zzZZhzGT+RN1Tq0bu8Wg5QHmkyPVFNhVmzzhLV Gsy+RavsI7T36VhYCxsyam+i/df2x98WZLmVmihgcNHtk7IWwiarfA1eDZZdXML0bxXkqh 2Rruj14e6tmJdEoM6J4vzeOcMIy1h+51lvOpCpqCdp9Li67Gvay0Yy3jEWM1vQ== X-Spam-Score: -6.77 X-Migadu-Queue-Id: 2172A1CCC4 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=AQZWMRSj; dmarc=pass (policy=none) header.from=gmail.com; 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-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -6.77 X-TUID: WVT3zM4ML7K7 This is a multi-part message in MIME format. --------------xgf2Y0388eohd6lHwp2Mb0dR Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thanks, Ihor I can't make it to work by now, but that could be a path to the correct workflow. Best regards :-) El 17/01/2023 a las 14:28, Ihor Radchenko escribió: > 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 > --------------xgf2Y0388eohd6lHwp2Mb0dR Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Thanks, Ihor

I can't make it to work by now, but that could be a path to the correct workflow.

Best regards :-)


El 17/01/2023 a las 14:28, Ihor Radchenko escribió:
Ypo <ypuntot@gmail.com> 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
<<collect-headings()>>
@endwbs
#+end_src

--------------xgf2Y0388eohd6lHwp2Mb0dR--