From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aPEZMmJWaWBgawAAgWs5BA (envelope-from ) for ; Sun, 04 Apr 2021 08:02:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QCoFLGJWaWBlIAAA1q6Kng (envelope-from ) for ; Sun, 04 Apr 2021 06:02:10 +0000 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 528451302C for ; Sun, 4 Apr 2021 08:02:09 +0200 (CEST) Received: from localhost ([::1]:37848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lSvpn-0001Lx-7a for larch@yhetil.org; Sun, 04 Apr 2021 02:02:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lSvpA-0001Ld-1W for emacs-orgmode@gnu.org; Sun, 04 Apr 2021 02:01:28 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.217.159.240]:55048 helo=saffron-cyhyraeth.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lSvp1-0001RS-VT for emacs-orgmode@gnu.org; Sun, 04 Apr 2021 02:01:27 -0400 Received: from petulant-alux.authn-relay.a.mail.umich.edu (ip-10-0-74-107.us-east-2.compute.internal [10.0.74.107]) by saffron-cyhyraeth.relay-egress.a.mail.umich.edu with ESMTPS id 6069562E.111D5.21434410.1324260; Sun, 04 Apr 2021 02:01:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1617516077; bh=1UOfo6QY1gT7pmrsr+ZZIkJyixgn1AY9RO35dAWdc9c=; h=From:To:cc:Subject:In-reply-to:Date; b=mR7CRyMQCCBEGDCWLkpxvnECtuEaCcTy+DCXmng/irIip9dVMp0dktrOB5+jGqwQr mVzsAghz2M9h0XD+zghC24UINyIW4y7CmkhgdXcTUG2auLL9OjX0yImhWWwZCVNfyR /M3djQXCOjtirEyPPITbgLOjYE+fWxrAEoP+wwzCyB9pphwTAmeXKM9dCZR9Ld6gCM gjhob/lGXeNZiaHT18W0VWF0X3ykVfj3iBoIyFIYHj6Czur5TO7BEVmjI0gPq+U06J AUW5J/NpcLjA5+W3GSXw7CLMj2vSets5jWJXWV2qocnIACnP6WKTN/Vrkm+RrOzyF0 nQbB1bTz82jVg== Received: from localhost (Mismatch [88.253.115.125]) by petulant-alux.authn-relay.a.mail.umich.edu with ESMTPSA id 6069562C.5BA90.3A19CE1B.1626948; Sun, 04 Apr 2021 02:01:16 -0400 From: Greg Minshall To: Michael Welle Subject: Re: Generating documentation about Org from random org file In-reply-to: Your message of "Sun, 04 Apr 2021 07:35:43 +0200." <874kgmr4r4.fsf@luisa.c0t0d0s0.de> X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <731932.1617516073.1@apollo2.minshall.org> Content-Transfer-Encoding: quoted-printable Date: Sun, 04 Apr 2021 09:01:13 +0300 Message-ID: <731933.1617516073@apollo2.minshall.org> Received-SPF: pass client-ip=18.217.159.240; envelope-from=minshall@umich.edu; helo=saffron-cyhyraeth.relay-egress.a.mail.umich.edu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617516130; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1UOfo6QY1gT7pmrsr+ZZIkJyixgn1AY9RO35dAWdc9c=; b=jR6ota7su6x2WJ9hUyWJyYyT/kSj9HEOIR2Z4VlIXwZyZfGXbydNTS3mv9794pFEfqaqlJ 43mShuNJbKtuRhPeov4AsNrVRz2831pPnSw/jo0SjQyQuGhTC1zvZIsd/7oljDWLYO10Y8 PsLTJs6jM3L88rETxKzUkf2Wku6lpqC2BT0f4Ti/6ze4osCxP+oQmcq5+8sNlZbLgB6PIw H8khuXng9E/c9i3NIWZURG9k0DncUY9XS6VjfReK+SPv9VZYECuGEyGUWPYAiAWbFeRdGg QwV4RVlON65GdvrnoKWF3c2nGq8D3nwygEjsULdXJL4v8pCmnlW+rxjN10aDxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617516130; a=rsa-sha256; cv=none; b=Qp16VWxLaaSpJd1btypjLUbUn9682+WUzCQtGjBFziAsMzYsGON4xN4HbJV6HVhuWpbMQX xjYQqjEw5mOZVloiY2Y3t/dFxe+g0IHEOkFX13+XhdQ2z8RZH6nanwmVr72MJ95nUEUOpm Sj4dCeij6gFH+Xa+kbX8ie/vt8/Rn5mXzYZoerYfKVEIIelLGIz0ZwdRyKJVinO5fR+Tc8 pxVJU2QP1V2+krVzEuEVpLTnEKVZfNGSwiKghr3kcDM+0fJWRg+0V3QUNJeeGN5YnGFkHO MYnQLdCrbAa237saB7tNZQzXssLi8ay1IIj3yUFqUcsCGtZc6I70/z/tQyS48A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=mR7CRyMQ; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.13 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=mR7CRyMQ; dmarc=pass (policy=none) header.from=umich.edu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 528451302C X-Spam-Score: -3.13 X-Migadu-Scanner: scn0.migadu.com X-TUID: /UdMxPWHh9+Z Michael, > Now I want to use this file to showcase the use case a bit, but also > to produce documentation about Org, about how to solve a problem with > Org. Therefore I want to show the code blocks, but this time with the > begin/end tags, with header parameters etc. Is there a nice way to do > that without too much code duplication and convolution? Or should I > just copy the file and separate the use case and the showcase one? well. sigh. i had a desire to do something like that recently for a presentation on using Org Mode with ESS for R code development. (part of a larger, "intro to R with ESS" series. with initial help/pointers of others on this list, i developed some code that takes a file and "orgifies" it (after, in my case, "resultifying"). the code, if you want to look at it, is in the file ess-org.org in this repository: ---- https://github.com/ess-intro/presentation-org-mode ---- (to cover my shame, somewhat -- that *file* is not really intended for public consumption, it's messy, etc. *do* feel free to complain about my code itself.) the first code block is =3Dorg-filter-by-argument-value=3D. as an example, *this* .org file ---- https://ess-intro.github.io/presentation-org-mode/artefacts/ess-org-demo-e= xpanded.org ---- run through my stuff produced this .html file ---- https://ess-intro.github.io/presentation-org-mode/artefacts/ess-org-demo-r= esults.html ---- well, either this is serendipitously *exactly* what you were looking for. or, not. if the former, but you have problems, please ask. cheers, Greg