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 oJzTDRXML2PUhAEAbAwnHQ (envelope-from ) for ; Sun, 25 Sep 2022 05:33:41 +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 WIP0DBXML2NUYgAAG6o9tA (envelope-from ) for ; Sun, 25 Sep 2022 05:33:41 +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 CABED202D2 for ; Sun, 25 Sep 2022 05:33:40 +0200 (CEST) Received: from localhost ([::1]:49186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ocIOh-0008Jw-L0 for larch@yhetil.org; Sat, 24 Sep 2022 23:33:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ocIOE-0008JX-82 for emacs-orgmode@gnu.org; Sat, 24 Sep 2022 23:33:10 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:39929) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ocIOC-0000VR-Ka for emacs-orgmode@gnu.org; Sat, 24 Sep 2022 23:33:10 -0400 Received: by mail-pl1-x634.google.com with SMTP id f23so3457128plr.6 for ; Sat, 24 Sep 2022 20:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=ykhid1axtg/ouTfyjyf+LMVf9MUtpVZzttu03XG/eVI=; b=CGeae7E/Lv9A5C5tq9TuJDDYx+NKlBjZ6+Jheu8MTPK4/zmWVanRrrAT58rWbykOdK sJOvOCqTtaXR4N+553+0XWUmN1ytUmMiiyrllsjnA5UGbyuPuYKfhFv0Yxeo0GKVtMla GzFu6pxXUNw9Sw9p1DXRsfaUFZMcFazqBwEwXTQHYbvHKOdVy7Ebb8NK/TgOWfzTJ5LA 69U55yiMId9Igh6Ul1X1Rv/a1l5bcZ8lWyvC2LmZ/kT/Gdctg5g2JcZ/2R89qJp194GV fgkQTDflkjS+KiOBeQlDV2KnbSyYXU8dU1Qb3Nrxo55LbKWUPXYmkB0oYhtkIZEyoQ5e isJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ykhid1axtg/ouTfyjyf+LMVf9MUtpVZzttu03XG/eVI=; b=AtVfgt4AoTXoQ/ohlW9uCa+hrnSmSuvS+wTySlvo30VI0Gxu8BnZDigVSCdsbpHOsN J5y0IMzM9san1LKdY/byYX7QMEvI/pWr6mAkX3P339ip+KBkw1p5+5UJf48mb2mMOdba RLJL27ZsLymZG5jxGa8g1elk9hFTBcOeohs8sNPejVLTxZRDfYvOKqclJEQlr8KpkGyl Ys58w5FnWX1EzvBO4t5g5OUca2XVngCwxuhsusMnQRnjNYC7rIFHqnoKfD458FzmM0CZ TmBz8Syy7QbZZNNoU1kXgtruSYwxa6fRi2mTqxZrAWYFrqDZ3rNVuTr1zotjxd/HQ/KU gygw== X-Gm-Message-State: ACrzQf3hD4pNqQVK5FlMoEYoSYF7qvSvLAmoNgmQ9MXTAl/7EhyqrCOu GX0ZX/Qkex8qkJ2ihzQXTaoyP3IcZJY= X-Google-Smtp-Source: AMsMyM64MM9XyNkOwUC+bQ0BJ+aVysYi+AM2OwsJD9BQNp47b5ng2gZUHmwCApZT1M0mSnPcP07NFg== X-Received: by 2002:a17:90b:128b:b0:203:73b7:2f33 with SMTP id fw11-20020a17090b128b00b0020373b72f33mr29424984pjb.106.1664076787091; Sat, 24 Sep 2022 20:33:07 -0700 (PDT) Received: from localhost ([2409:8970:a80:3a4:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id r14-20020a17090a1bce00b001fa80cde150sm3974088pjr.20.2022.09.24.20.33.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Sep 2022 20:33:06 -0700 (PDT) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section In-Reply-To: <87h70wbzd3.fsf@posteo.net> 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> Date: Sun, 25 Sep 2022 11:33:58 +0800 Message-ID: <875yhct9eh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=yantar92@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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=1664076820; 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=ykhid1axtg/ouTfyjyf+LMVf9MUtpVZzttu03XG/eVI=; b=Do0pCovnp6Fv7iNiad/rZmDSENMhaviGQEKOFlU7WqkW+jvUvzzkYjP2TW6VpGoqfv9qJq YizCs8DfGxj7LwNdE8a89ZwwiDo5yCFfAtO1dsJ4Q5deWFRuU9NBmuc3JbOLcHEPBtTe/I Vd1nhvMd5CMp9yyYpMSxQ9siFc7Hy7+N1zme/+PwP0/1CjQI0PWprSAZsoI030hWUBRLg9 74uq9Nd+bMd1oKaHgzT81UQWxzaha/IcF+KDrZ+gCcFNj9Nkf2T6JOdS/m4B0U9VvicB8a MfG6D98Zaeck8LDp7tj+Q0hrLHqpJ/Wy56v40j52Mg50/JlEwbQpk55L6yPSsA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1664076820; a=rsa-sha256; cv=none; b=LDHKVbZIqSwpiyAHgfe3oMzttE2K6gdHD/3plrk61JdpMObFWTyV3KPc5h0vbiTUwK4mce aHLI1QVJ47yOIFT5FFXXu/IhcOn9vp6PVZzV/4LPUizmILa/ljSzUKyfc85UdYT/83s6mX 4v2QevJB62iWn2iDbb7Y0Rug6VnkhFfhpQmbqZdHBt5pkPGkLu648Gp2FIQ6QuxvjKGpTK b50EUoQPmu0iTX0yFozmLDx7A1gjtBUhrpmRkkVBbs0Isngf4QHIKxiSgvx+I8lzAP9byi mbBuiuMrCN+W3lrCSOSGWkzf7HOfpcUgUETiszcKeiOxhonotiovJR8ZtrBVQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="CGeae7E/"; 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: -1.85 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b="CGeae7E/"; 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: CABED202D2 X-Spam-Score: -1.85 X-Migadu-Scanner: scn1.migadu.com X-TUID: 7sz2o+JKNsFy Juan Manuel Mac=C3=ADas writes: >> #+ATTR_BACKEND: :export_template "can also work on non-headings" >> Paragraph. > > In this case I would not see it necessary, IMHO. For simple things (of > the begin/end style) there are the special blocks. And for more complex > pre- and/or post- code we have export blocks and export snippets. Since > there is no heading involved here, there would be no danger of the > pre-code leaving with the content of the previous header. I do not insist on this. I just see supporting this easier (it will work automatically) compared to explicitly limiting :export_template to headings/inlinetasks. Also, some people prefer to have such option (Pedro Andres Aranda Gutierrez in off-list reply to https://orgmode.org/list/87fsgmyyhw.fsf@localhost) --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92