From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yOVoAp5HLWMIPQEAbAwnHQ (envelope-from ) for ; Fri, 23 Sep 2022 07:43:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oDNrAp5HLWPLqAAAauVa8A (envelope-from ) for ; Fri, 23 Sep 2022 07:43:58 +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 B85253C435 for ; Fri, 23 Sep 2022 07:43:57 +0200 (CEST) Received: from localhost ([::1]:34332 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obbTg-0004PU-NG for larch@yhetil.org; Fri, 23 Sep 2022 01:43:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obbR4-0004Nc-C7 for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 01:41:14 -0400 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:39567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obbR1-0002co-Vc for emacs-orgmode@gnu.org; Fri, 23 Sep 2022 01:41:14 -0400 Received: by mail-ej1-x633.google.com with SMTP id z13so6423597ejp.6 for ; Thu, 22 Sep 2022 22:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=GNe3LJiIfTUysSDEKfVZswAYki+ZQvijcLcnzGndMvo=; b=IccEDWnfXRZMrTbsRgdQ0MSlsIs7RbUultzJ/Fa+wzm4YuRJKOefD9lqrEZ9xmdRwG Qw8rLjmpJFwcr0WPBtVmXM7Wxq0vDwrGUevI3IEvunQ7GdspblcdISiIrblacBtcH4LD cg99da2KySp9rKzYr5/ki45MS0J0+0KPLWxPGlStJMgbZ5J6a6rih/NiA1FprWEIwq+O JUu84ZdZYyjVtIzz6/bO7B5L1N/M1fpuAQa/t71uIqGJai93GvqYj/foVKvF97/jR551 8dsFWg2vxyMObJ5htdaBHSTceS9mcsYB+X21weovtaGCXdAQseYT8j6fPIyBF4E9w+Kg lNCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=GNe3LJiIfTUysSDEKfVZswAYki+ZQvijcLcnzGndMvo=; b=Z9UQlr+HiJ9z9DDdLz54X1V7/jEmOFduI0M0QrqZFs//xVpNtlrIDtZUFdHEP3nR/Q pxzdw6c6lRLVkAkZA750Z+wQpablhZtp+3EOuBHZm79vwrAT+Hu1nE9tjhFM6RBkGy4s SL8iffz3AJVkQtwKJQPWLUc0gjWVOiky+4zdfnkt468hCc62LPYR2kA9XJX9LBC53sbC pe8bIuK0YSy6K3lLbvFopQQhTgtmF88FczrShqzBBB3jZRtYdnujICvV2MoDPJsI0gMn kJt/5oSBuqSmEqkA0n9nQz4EDbQgfgEksdWVydhQdqeGt8wqIXEu+d0dJS1t4tvgJ+5l cysg== X-Gm-Message-State: ACrzQf1bvyBbgAbE6joljdUQZZWuHNYxod9/Muwc011PB9Ph3rSKf4eV OXo1IHD7TqPjmAtkyWApSYevCHXRPZUATNnydzE/sLK0Ldc= X-Google-Smtp-Source: AMsMyM5HBQZ4ug+YsnDrDg/CSqngpAI9dLJZsdHmAgJOTaUgUPuGr2qvBQ0ajjjYZQ8u1tR+xvGG+ONshAI0sIq0dS4= X-Received: by 2002:a17:907:2cf6:b0:77b:2dd9:7cd7 with SMTP id hz22-20020a1709072cf600b0077b2dd97cd7mr5373451ejc.334.1663911669384; Thu, 22 Sep 2022 22:41:09 -0700 (PDT) MIME-Version: 1.0 From: Pedro Andres Aranda Gutierrez Date: Fri, 23 Sep 2022 07:40:43 +0200 Message-ID: Subject: Re: Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section To: Org Mode List Cc: Ihor Radchenko Content-Type: multipart/alternative; boundary="000000000000fdcb5205e9519f25" Received-SPF: pass client-ip=2a00:1450:4864:20::633; envelope-from=paaguti@gmail.com; helo=mail-ej1-x633.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663911837; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=GNe3LJiIfTUysSDEKfVZswAYki+ZQvijcLcnzGndMvo=; b=EttRFdjdScVUFZW4pSPskSbo//emZ+AxHIeQpHMNMwzTAmfkyUDjvc4QFpojiymNLzSxYl sYcr0DruuR8FpbrZzJvlINk6XIxrHr6ztHSZuiw4EwS23zih+4VRlkOTCnBrFmeAv/Y4sH SF/avCywQAGcHeo6TSfyzK1RJtv7gqNH10F+8F8SwNczcFtz+8Urk0pz7uwoz7A+8jmyHR 4GUisv1PiEmVAPHaTJbsKmZ08ScMol3WuwDBlt3zGMWcG9rY0GYTa7MnyUYx3gCw9BceZW IRHRYTW3A1YkmHS43yqosPjsyeMaazU4S8IoG/z6krkJjHegyFld1T7hCVaF8g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663911837; a=rsa-sha256; cv=none; b=By9S6ewphyeLHV4SobrnnQs2zLIxnGljZ0eynWedx+veF+2RJNTvv4nRKZy00iqU8/hfrG 3/4dhCksUFvyMgqpZ4kmRdxDJ1VNsVadIv851fLOeBu/ZkbGjyGZRXkAzTBbG77O62LxXL cmPt3Nn2RDeC3FVmRNFJ7tXKNp88UxZcoZuZyu2JLqTyZ4X4Iu5caVP9Ei3GA4/721kKxC lSzK2dJPgGcf1Gf80I4/j+wfwrTC+TYaf2U2qCGXThWkVlHm5eflPUvk2FnqI0sTt6uC2/ 6gApzBexJ0c3fDYggHzmHXuV6QiiRlzAaF/WEAuzEcUH7pZPqjT9hzVvMB+2yA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IccEDWnf; 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-Spam-Score: -2.95 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=IccEDWnf; 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-Queue-Id: B85253C435 X-Spam-Score: -2.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: hOtzSSa1BbtQ --000000000000fdcb5205e9519f25 Content-Type: text/plain; charset="UTF-8" Ihor writes: > * headline > :PROPERTIES: > :ATTR_BACKEND: :export_template "\begin{myenv}\n%s\n\end{myenv}" > :ATTR_BACKEND+: "The %%s instances are replaced by the exported element" > :ATTR_BACKEND+: (concat "arbitrary sexp, the exported element is bound to: " *this*) > :ATTR_BACKEND+: babel_block_name(exported=*this*) > :ATTR_BACKEND+: "the property lines are concatenated with \" \" (space)," > :ATTR_BACKEND+: "just like the usual approach in `org-export-read-attribute'" > :END: > > #+ATTR_BACKEND: :export_template "can also work on non-headings" > Paragraph. That looks nice :-) If ypu could you do something like: #+ATTR_BACKEND: :export_template "\begin{myenv}[myopts]\n%s\n\end{myenv}" #+ATTR_BACKEND+: :export_template raw_text(exported="this") #+BEGIN_example ... #+END_example I would be able to do what I asked for some time ago :-) Thanks for the patience, /PA -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000fdcb5205e9519f25 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Ihor writes:
>= ; * headline
> :PROPERTIES:
> :ATTR_BACKEND: :exp= ort_template "\begin{myenv}\n%s\n\end{myenv}"
> :ATT= R_BACKEND+: "The %%s instances are replaced by the exported element&qu= ot;
> :ATTR_BACKEND+: (concat "arbitrary sexp, the export= ed element is bound to: " *this*)
> :ATTR_BACKEND+: babel= _block_name(exported=3D*this*)
> :ATTR_BACKEND+: "the pro= perty lines are concatenated with \" \" (space),"
= > :ATTR_BACKEND+: "just like the usual approach in `org-export-read= -attribute'"
> :END:
>=C2=A0
&= gt; #+ATTR_BACKEND: :export_template "can also work on non-headings&qu= ot;
> Paragraph.

That looks nice :-) = If ypu could you do something like:

#+ATTR_BACKEND= : :export_template=C2=A0 "\begin{myenv}[myopts]\n%s\n\end{myenv}"=
#+ATTR_BACKEND+: :export_template raw_text(exported=3D"this= ")
#+BEGIN_example
...
#+END_example=C2= =A0

I would be able to do what I asked for some ti= me ago :-)

Thanks for the patience, /PA
= --
Fragen sind nicht da um beantwortet zu werden,=
Fragen sind da um gestellt zu werden
Georg Kreisler

Headaches with a Juju log:
unit-basic-16: 09= :17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed = hook here, but we can't yet

=
--000000000000fdcb5205e9519f25--