From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 fS9IGs3cKmPBQwAAbAwnHQ (envelope-from ) for ; Wed, 21 Sep 2022 11:43: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 mp12.migadu.com with LMTPS id MCf0GM3cKmMb5gAAauVa8A (envelope-from ) for ; Wed, 21 Sep 2022 11:43: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 E0F15DFFC for ; Wed, 21 Sep 2022 11:43:40 +0200 (CEST) Received: from localhost ([::1]:35988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oawGZ-0006d3-Hr for larch@yhetil.org; Wed, 21 Sep 2022 05:43:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oawB3-00012K-1O for emacs-orgmode@gnu.org; Wed, 21 Sep 2022 05:37:57 -0400 Received: from mail-am6eur05on20728.outbound.protection.outlook.com ([2a01:111:f400:7e1b::728]:49248 helo=EUR05-AM6-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oawAy-0001wh-SR for emacs-orgmode@gnu.org; Wed, 21 Sep 2022 05:37:56 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YJf6sDT8wjMlp2Q8MUl5c0VATdEAa4ZgzosD4clvcjU3ZjCg1SzJM4HJp07aspELtvJVYd4vrm0bWoNSdD4s6xovn3pBCzu22X5Yrg5s1l+DIsymGB8ek1FCqzH8h1smZMNAx3YSV/iPlYX1BPxCSjlNpgD2RcNpZllRXcBoCYl2GfXgkeKb6ChsJHVkVw7YYYMrz/6mdVwgS12NOLZ5Y38UUaSEYxukQOLPAgSNUIP2oJQu/AW/6FVWjWNimGUUhgAnMRSltYUp/vTFbueshGn+ZQNk2OgNaKtVBTuy9i0DIsOVJ3003XZ3pnA7g5ovVxhD2VMQJgxKrggLw/Mtjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MZwsUCDNXqu6ywYfOS4jQ9+oX1Lf97AcqorU08fbbuk=; b=Hr3NBqscUOeolerkB4d3ZZeJf7xLUa7w8kyRiYGRNeYf62eXUCTd5OR5VmOkvmSvDIMj0N3iw0Arm7NN/DEb9y+0FRMR1NuiRjWH9DRuaeY317UitanF2R/z4VM+JthPZ4uqviuqJeDI/y4CYABB/rP38+NCXU9hCf8DuV7VcuTURSQQotHzZgpLAR0XZ3pVUcZra1Dn0Rkopp2FZ4ckM3tBo9RIGIjI0iJlAdE8G3XbQw16lpzpx5lCR9A9uqsU3PQ0GTDODglQiyf21wu5v07xVOYy0ZLPsjFo6a4L1cOl5EJn/kXez5xMatCoMLQyeQasx3/08PMgIQJ+HbpvJA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ucl.ac.uk; dmarc=pass action=none header.from=ucl.ac.uk; dkim=pass header.d=ucl.ac.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucl.ac.uk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MZwsUCDNXqu6ywYfOS4jQ9+oX1Lf97AcqorU08fbbuk=; b=hKmJ9mjghhF4mi/MtYtEiIOPiH0tADSAELIAY0SohYOdgKglCpKPFse6cD8LKTvtFuSed2ByaU8Ie1TZJCPCcmy4pg2Yq6q2y9pThTpyQuInwKstTuMe4EiIK77ScrEzMe38kbB2q+s+stGhD/J9WgfJ/28GHuwTdjgJwKa/2D8= Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com (2603:10a6:20b:4fa::21) by PAXPR01MB8598.eurprd01.prod.exchangelabs.com (2603:10a6:102:232::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5632.17; Wed, 21 Sep 2022 09:32:44 +0000 Received: from AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::3911:aa6a:7db3:6ccc]) by AS4PR01MB10249.eurprd01.prod.exchangelabs.com ([fe80::3911:aa6a:7db3:6ccc%7]) with mapi id 15.20.5654.016; Wed, 21 Sep 2022 09:32:44 +0000 From: "Fraga, Eric" To: Ihor Radchenko CC: =?iso-8859-1?Q?Juan_Manuel_Mac=EDas?= , Daniel Fleischer , orgmode Subject: Re: [Patch] Pre-/postpend arbitrary LaTeX code to a section Thread-Topic: [Patch] Pre-/postpend arbitrary LaTeX code to a section Thread-Index: AQHYy1ppWxuoMNLAokmsO8IWe5upvw== Date: Wed, 21 Sep 2022 09:32:44 +0000 Message-ID: <87y1udcbsz.fsf@ucl.ac.uk> References: <87o7vcsw8m.fsf@posteo.net> <87czbqyy5i.fsf@localhost> <87sfkmdkxa.fsf@posteo.net> <878rmdxg17.fsf@localhost> In-Reply-To: <878rmdxg17.fsf@localhost> (Ihor Radchenko's message of "Wed, 21 Sep 2022 16:55:48 +0800") Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) x-url: http://www.ucl.ac.uk/~ucecesf/ mail-followup-to: Org Mode List x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AS4PR01MB10249:EE_|PAXPR01MB8598:EE_ x-ms-office365-filtering-correlation-id: effc5be0-2342-41ef-4fc7-08da9bb43cef x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xr4S0efzepOYcgqk1x/w4v4fJ2TEYvinEwzqVtjN5F2L+GPMvjd6cBJDX9lZIDe2tFy10OByVx4X5/6hjg25/L+nX7Ce3YJSy9RSIstHVIcX1M8u9gFh40NUUSBSwM0p8j7qmJzvf0mbOv49+wvp3BJ2iQKcFTt+dv9gv0DCzGJ3lgDQs1BSZmf+s+trrYWtp0eNj2fojRxklRUm5X1VaNaPsFK+ZOLCe0kgWSkGbj3PFojYBbz3h3pOk3wvqi8vPOyG1NPmp7UF4eqZGKzTzSSa/anJbVOitBT9YZQIXeeyvyEJV4sL0WIaED24wVB7fY8dOaPN2CYEQZjy+zf9+oKVLN+xe/11EJvyzo5/b5RNeOcFXkhRuBh7FOQGgn3kfADBgNdOTi8TbNa1Umc2AJpeNI6zNJLsFVqTGukRztgPb7l35G1FiQMn0F1elPR++hIfpuKbq6iEaR4As9KRc/gBrWRXrH+KmffI4t+xvv883mV+zQR8SeFJJUOjWfvnl0MzQ31xHG+Dsb6SHQqPCJfSnS5pszmb8RpClCivtfKuRuWFqEYrckB4oAvqqUzmORQvcbXsfwsTz/JqUIf4opRcSZmDaDw8cpx64wtWCAZRbkzyu6BXdYVetWiJSeGvyuOvDtOKshy0N9MePPBBPKC+P66C07CAZwQGzNisPZKzZXMzNOl5N7eqnNVG1+Iqgg9GvmU6CFQFCYDddDi2AR7DbWG6OzKl7p8C0O+QSQaiaFBQOgvF1RMMrABB5X3Krz7OT9PImXtS16DLp3hSGQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AS4PR01MB10249.eurprd01.prod.exchangelabs.com; PTR:; CAT:NONE; SFS:(13230022)(6029001)(4636009)(366004)(376002)(39860400002)(136003)(346002)(396003)(451199015)(71200400001)(86362001)(6486002)(6916009)(54906003)(316002)(786003)(478600001)(66946007)(26005)(76116006)(38070700005)(186003)(66556008)(2616005)(6506007)(64756008)(41300700001)(4326008)(66476007)(8676002)(66446008)(122000001)(91956017)(5660300002)(2906002)(4744005)(38100700002)(36756003)(8936002)(6512007); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?Th8Fo13xW0SE2QjtHuou1sBe97Um+6jmIqcSxJuYBLs89kMjCeH3rPDpUx?= =?iso-8859-1?Q?0tRTOOrfCXKS0k1bR+yOlTjn7ueqPB7hjLb6EvBz2mCg9gZ7FkiwcvABRF?= =?iso-8859-1?Q?j1EDuG22OgU79bpeiUZl+928zEA4RPQFE9iMH0O2mQfHqftoRnp5x7S4qs?= =?iso-8859-1?Q?CkXbfhHq01EXysrqDsW3fo9l8iYzBP1JjFBEGchmZoAyTSqY/HTslC9Vrp?= =?iso-8859-1?Q?l44IqLMl0VPL34T0iUcH+/oY/2G40SeDCX8DL4fpQDgjaTGUAL43Ad3g1V?= =?iso-8859-1?Q?DkKvVtAhZNYpU3nOeiQhwW3j2yPqCJaOWm9ZZ8jAFMOv0KO7RcFbQvy/H4?= =?iso-8859-1?Q?bpF5hHTSBnglxe/E2rQTIjDIxttXQeDxj+nOsNXT21pkTLm/4mVqlwfkZ1?= =?iso-8859-1?Q?JBCTfNkNSox6cx6l6D3kw2liBa8p+EPpELeMB4YuxfZbf8KcFBO3AoJwyW?= =?iso-8859-1?Q?7h+RSV3GGoBvPzsqc1CZTXnfpdf637CGXwIWPFDFvqkqKN/xG0X3XSN45P?= =?iso-8859-1?Q?ZhMu9Vw1JlQEbsRzSMK1FoZWwnRKc6C6WW1H/xgIN/avEJR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qJ2WunIY1+dVDwTqR9F4E4cNuAm1h6jJ9V+xdDkAO8iZDT?= =?iso-8859-1?Q?bJ8owcr+hrPtpMDT+UYBES2EgeMu8itYt5EuzfPkqc00uobAA9Cc21RI2U?= =?iso-8859-1?Q?1P+X+FvzUp2bNAEBrD3OnOiEu/pXHrsOM5yd7M9DOK4TweTs2pv4OKDX7E?= =?iso-8859-1?Q?R0llQ9W9SGLegegj5J2KdwwNrX3BV1Lq/q?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ucl.ac.uk X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AS4PR01MB10249.eurprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: effc5be0-2342-41ef-4fc7-08da9bb43cef X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Sep 2022 09:32:44.4612 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1faf88fe-a998-4c5b-93c9-210a11d9a5c2 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: cM+DkZCuCMGb3HAP/4QErtNoM72VWr7XY823tmqGYveehHut8fgj3P8ZHDyKgo61tsGUzDwVu3DEPlTyHonNPA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR01MB8598 Received-SPF: pass client-ip=2a01:111:f400:7e1b::728; envelope-from=e.fraga@ucl.ac.uk; helo=EUR05-AM6-obe.outbound.protection.outlook.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663753421; 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=MZwsUCDNXqu6ywYfOS4jQ9+oX1Lf97AcqorU08fbbuk=; b=fz0M4VZAW3IcpHpnQ6jhJrNAlK3CvwBux9tIvlynqW14/IOJfNhhq3vSm5gxZ9YVeE8MoJ Ruh04qY4MRUETpEiK5LnxdXzvNR1gYYNq1ipLIHkmSuvBcRwJlR/SoYnuAfsBL80Ea6LtK nl1WBKwdU3ZKLOUhuFdXr05gcgCH+gzY8TD6V08+yRSjD98Gw2z04A4RQnR7JkNTvPZAZS xFFZUvvXGhMgXFmqGUXmlJXajcDR3595vxDvRtMbfrEUv/ouby6g0KCDwt28O88yPVy+zt ZSz0M63TDUHo7niXHY/RGfbepTKXIuMwfQ8ixIoy7ZDUlY/uvKvnUIWlza2zhg== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1663753421; a=rsa-sha256; cv=pass; b=kPf0bPcLGSGh442+l1bkuek1OkVMd1dVez+drrzulChflc/i7FdeEsMaNpDqwC5glqtxfJ wUFfDaYEhhE16aZdTBJx/UykBzf8HqqNtlju2UbnQtSw03pMtAdfR2aAzbAVkyAR0JZVfl 6flBlhiBK+OjRiDRn0wSaPReE0cH3o2b0K7bkmJSo4hNRf3nmszuhCQugdDn7aO2HOasVh 9VWdiY3xWUZcv6lWYJ2SNneuwDsJbMQVBZyeRnG1kqSxyxwoJEZtov0ltbdxEUIOF5G334 q3nzOgjoPuN8Ee/O/bw/waEduJ1r8ya8m09mHMacrgtZu8Mn4X5QRSx8VIcMvA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=hKmJ9mjg; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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: -5.84 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=ucl.ac.uk header.s=selector1 header.b=hKmJ9mjg; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=ucl.ac.uk; 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: E0F15DFFC X-Spam-Score: -5.84 X-Migadu-Scanner: scn1.migadu.com X-TUID: 3IcMClieqMQw On Wednesday, 21 Sep 2022 at 16:55, Ihor Radchenko wrote: > More concretely, I mean something like > > * Section > :PROPERTIES: > :attr_latex: :prepend "section" \setcounter{secnumdepth}{0} > :attr_latex+: :prepend "section" \addtocontents{toc}{\protect\setcounte= r{tocdepth}{0}\ignorespaces} > :attr_latex+: :append "section" \setcounter{secnumdepth}{2} > :attr_latex+: :append "section" \addtocontents{toc}{\protect\setcounter= {tocdepth}{2}\ignorespaces} > :END: This looks fine to me. I don't particularly care about the actual syntax. However, a minor point out of curiosity: why not just ":latex:" for the property name? And I would hope to have ":beamer:" (or ":attr_beamer:") as well! Thank you, eric --=20 : Eric S Fraga, with org release_9.5.4-768-g5bb699 in Emacs 29.0.50=