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 KIlxFHhZMWNZ0AAAbAwnHQ (envelope-from ) for ; Mon, 26 Sep 2022 09:49:12 +0200 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 CEyJE3hZMWMUeQAAG6o9tA (envelope-from ) for ; Mon, 26 Sep 2022 09:49:12 +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 D6040AD86 for ; Mon, 26 Sep 2022 09:49:11 +0200 (CEST) Received: from localhost ([::1]:48254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocirW-0007lJ-Gz for larch@yhetil.org; Mon, 26 Sep 2022 03:49:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ociq1-0007hH-0u for emacs-orgmode@gnu.org; Mon, 26 Sep 2022 03:47:39 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocipx-0000e4-QV for emacs-orgmode@gnu.org; Mon, 26 Sep 2022 03:47:35 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9913F240027 for ; Mon, 26 Sep 2022 09:47:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1664178450; bh=ehKHRGD1RGOXYZDw8Euk/7BOaUhhvWgQ6oPRrqCkqYM=; h=From:To:Cc:Subject:Date:From; b=ZT3sI/JZAnVv4sOsakdUzf1NW3DYem4Y5YX68F33eFDIR81ofiuGL+C6kxdTN3s9f 84OXlKRGAyoxQvmSTPoMtem9Pp7CbMlVQZkbTApHt3n4Hq84IutK/ZgkeJoy6WKdRV nbVN7gnRhJZFNIzuJtMwrJkZmzXzYkGNHhCh/x9Dg5F6FwGuyHiscnjFEBYLyX4XjT 686gYBKLuM2AtfApu7bZiF/nWS5ZxbvBXuqTlu+gckjMU3AyrXv59d4RwWfYXZJRtk W/6GLeYL4tuImMabnp7nRksKxVnqq1OLVmap+hZ3m82loGyU+s3boQS0OXP5Ti43GR Hfmlh9albGkrw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MbZbj6NsFz6tmF; Mon, 26 Sep 2022 09:47:29 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: orgmode Subject: Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section References: <87o7vcsw8m.fsf@posteo.net> <87czbqyy5i.fsf@localhost> <87sfkmdkxa.fsf@posteo.net> <878rmdxg17.fsf@localhost> <878rmcvlcz.fsf@posteo.net> <87czbna4e4.fsf@localhost> <87h70wbzd3.fsf@posteo.net> <875yhct9eh.fsf@localhost> <87a66nmzfb.fsf@posteo.net> <87czbi7pq6.fsf@localhost> Date: Mon, 26 Sep 2022 07:47:25 +0000 In-Reply-To: <87czbi7pq6.fsf@localhost> (Ihor Radchenko's message of "Mon, 26 Sep 2022 11:56:49 +0800") Message-ID: <87czbih90y.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=maciaschain@posteo.net; helo=mout01.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, 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=1664178552; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ehKHRGD1RGOXYZDw8Euk/7BOaUhhvWgQ6oPRrqCkqYM=; b=TaPFYXXy5K78/Ka/MkwUDqNiJB8QRkBX9vgip8Z+FUfJ1JnSgXfmmlgna6LOhJ9jSjWZXM YWGls5YNrt2AHw6pTm398ZuK3EL8bE8CcxhJHdLLXLlF4onOCRqClVIZ2q6KSnajfRiIsU iLDrrTxbPf6Mg2x157Bm9NrwJZCC5lNV0TI+o922q8aKT9QDGlPWF1dEXHbg+zf6elnJk6 X2pgU+AE4dGIhiWbWinTS613NmKIJF87a6jLTnFX4M4DnBDtTDVSsk8nZ6QFh5A+cBchYp CEtGJtTCIB6aWEnEZBKn2J1IHhY3uhvU8b2CkgZZ2d1riJ0aeYpO6DAelvR0dQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664178552; a=rsa-sha256; cv=none; b=UOlKjuGM0MnnX8kYwZolutXx6u/da+WaKxM6iYkqU1c6zbCfFVG/qCqpa8GFCiO03Vq4H7 RgO+FqogFRI0iY2uVtBvRl/vW8+2687Aha/gU/tfIlCeAOk9bfp61mqoTiq2/nUDzSZEwg qZR3tYnJiMzE+0bVbCgHEZOJg0ViG3vuVQcQJPbukO0k4fpi4fC5WugN+YqBfB0K2fg4TW xHTKH9+gcd7WbM0IZl+r67SvdpHnQ33nX4c9okkV9zCNBoPsHwHiePTtFYM7qqN5b/yql/ G4NYqjs+6KHkopbA9n7555Debi4bsiwUOfAlHcA43tMWcmExDV4ecxNaHakaBA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="ZT3sI/JZ"; 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-Migadu-Spam-Score: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="ZT3sI/JZ"; 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-Migadu-Queue-Id: D6040AD86 X-Spam-Score: -2.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: 08zKrtnrobHn Ihor Radchenko writes: > What I have in mind is to modify `org-export-read-attribute' directly. > Then, we can call `org-export-read-attribute' in `org-export-data'; > resolve the refs in the template (re-use code from > `org-babel-ref-resolve' and `org-babel-parse-multiple-vars'); do normal > export and pass it to the template. Before running the normal export, we > strip :export_template from the INFO to avoid issues with ox-html which > puts every single attr into the generated html. OK, it makes sense. I can try something on this idea, although I'm afraid not in the short term. If someone else wants to do it I have no problem. Best regards, Juan Manuel=20 --=20 -- ------------------------------------------------------ Juan Manuel Mac=C3=ADas=20 https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com