From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4HgDNZlLKmPiLgEAbAwnHQ (envelope-from ) for ; Wed, 21 Sep 2022 01:24:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qJMNNJlLKmPKAgEAG6o9tA (envelope-from ) for ; Wed, 21 Sep 2022 01:24:09 +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 740B13CF87 for ; Wed, 21 Sep 2022 01:24:09 +0200 (CEST) Received: from localhost ([::1]:43184 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oamb2-0006Cs-K7 for larch@yhetil.org; Tue, 20 Sep 2022 19:24:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaj22-0003Bg-7q for emacs-orgmode@gnu.org; Tue, 20 Sep 2022 15:35:46 -0400 Received: from mout02.posteo.de ([185.67.36.66]:50229) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaj20-0000b4-7a for emacs-orgmode@gnu.org; Tue, 20 Sep 2022 15:35:45 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 114FA240103 for ; Tue, 20 Sep 2022 21:35:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1663702542; bh=jvov2oFEyb4MNaMbZkQLidsIjkvdHCbzaT8ZxXY8jMw=; h=From:To:Cc:Subject:Date:From; b=JjRL0lWof55xwuNFLx0exPgI5zGxG7C4YYB++7W4W9hX+9Ue5PngNbs4XBnFhF3H+ KrinzDxRqX1RfYtqe3UP4xrHI/9KX+p4VcWOnny5+Rbr+H06b5Ol7G8/JghF+b7p20 g6wYtLG/JLls7rr2h9IoPy9+/aeBPFBO1+ePev8y7W3zuwTqKnrAPwS4LUvXJMUFBX YZTNwbPE5ljk/Ic8S+B6SUqg+YfsiIWaBC3yyEZky14LGP/IiBDg7Iv+GaCjOTc00+ 1ZGJImtUWRTq0c49Vu1MV1SmNModqoovp7OC3DJt9YH8QpNZBlcBGSlQ+Z4BZZapnK prM5wscRZUayA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MXBbd1ZJTz6tnP; Tue, 20 Sep 2022 21:35:38 +0200 (CEST) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: Pedro Andres Aranda Gutierrez , Org Mode List Subject: Re: Re [Patch] Pre-/postpend arbitrary LaTeX code to a section References: <87fsgmyyhw.fsf@localhost> Date: Tue, 20 Sep 2022 19:35:35 +0000 In-Reply-To: <87fsgmyyhw.fsf@localhost> (Ihor Radchenko's message of "Tue, 20 Sep 2022 21:19:23 +0800") Message-ID: <87fsglet4o.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.66; envelope-from=maciaschain@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" 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=1663716249; 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=jvov2oFEyb4MNaMbZkQLidsIjkvdHCbzaT8ZxXY8jMw=; b=eqg1RIWHY0D+SdEbowO+pSpr+rrvGyoVOsagSJ9f+Hr4PPbKWQ36KO6ppmOxsvnnv6cmJn bVFeCbdvGOqKGwDDoStnd09lRJUgYOmsaqQ8eR64Qq5KNwvNgHHlZXd+rN3S5323QUHbkz QzldsxjWgkl/2KlpmryjgNBhv7kHJ6KtpA1t3Rx6ucNolJHjK5R4DWm3Rh5VerzZlyMfRV ipLaYl3P5X8UVEBOoo5jwnwX2x/mpKLDb5y4IcenrXqW/BCLRtg/pjcWgDpYwyDG/aGAGU D6Ik9QxoOJ+AwagjwvlD5mjdnnskMfrgOguOgAtRWy2vpxpsAXzkefWYES60wg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663716249; a=rsa-sha256; cv=none; b=VkNVXduHw50t0Q0kFkCt48QMTEGuz6ecWCn0duOsO+E4vCOJq7UW806Og+VRDyipFsTVS8 c5ItTA6ZEfr8W2SInQJJwshcaEgeehSY3WihjucAIgytWe1fNzSguHiwKL0YTaMIlWsS0Z +ucdLqrLhDdLFoWcboEzZBDCidUTAs5EBOggILS/EkQ5fafz3itiii3+D9kMo/Btf+JVC6 1+Js7d2pgSg6zU2Wc2NYMBGyYf48tYBPnwFhXbKisQg9ptnVpE31+juv+sAVgawLWPrJ5i X1jW9TJhzlwSG51lDrpoqHUujqkwIFNYLhQRE262xdTL/zNMv9FxaQEuOBLXkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JjRL0lWo; 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.53 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=JjRL0lWo; 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: 740B13CF87 X-Spam-Score: -2.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: z3I8zYu65zn8 Ihor Radchenko writes: >> Can it be extended to add properties to a >> #BEGIN_example >> #END_example >> snippet? > > Didn't we conclude that wrapping blocks during LaTeX export should be > done via special blocks? (This question has been raised multiple times, > I am unsure if you are referring to the same discussion I have in mind). Special blocks is usually the best solution for these cases. But (without wishing to add more fuel to old discussions) I think it would be nice to have as attr_latex a series of positions similar to the hooks in the etoolbox LaTeX package: \AtBeginEnvironment=20 \AtEndEnvironment=20 \BeforeBeginEnvironment \AfterEndEnvironment Something like :pre :post :precontent :postcontent. In the case of blocks, I think this would simplify the documents a lot if what you are looking for makes sense only in LaTeX export (special blocks are exported to everything). And in the case of floating objects such as tables or figures, it would be really useful, since here you cannot resort to the use of special blocks (*inside* those environments, I mean), and the workarounds that are usually provided are still a bit tricky. Best regards, Juan Manuel=20 --=20 -- ------------------------------------------------------ Juan Manuel Mac=C3=ADas=20 https://juanmanuelmacias.com https://lunotipia.juanmanuelmacias.com https://gnutas.juanmanuelmacias.com