From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oCTJEpUbsWWLHAAA62LTzQ:P1 (envelope-from ) for ; Wed, 24 Jan 2024 15:15:49 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id oCTJEpUbsWWLHAAA62LTzQ (envelope-from ) for ; Wed, 24 Jan 2024 15:15:49 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=cb9sdgaM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706105749; a=rsa-sha256; cv=none; b=GSKkVNM5i0cJQ7jcPJCM7/cnT5Jyxl77KpdeSuRy0l1zUvHBbDGrumwry3ZFCU+IskLF09 7TSUHUEN8dkW/5h8rGGSav8AFcl7QAScP0+BtMlN7BiRGvhCaj3oYCGT0Apd57XmLUF/mc 0VfDZueWMnxfFjf8P08Oo5GSo0GMcEvUdP8INZ3rbhOcLA++BAxnPrkaPFZRCWMWDRl7Nk NEE7MC3CEj4Kr7warZpgCbsSryiSG1QhpbcRdGNa2je6jhcCOLHiKNho8iT62TfqrhKRMY QZhmYSu3oCk2ifzN5G/sViP/3qyu/6LdlB7XoqS/PL/2QhqfHLPPxQMQsyWL3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=cb9sdgaM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706105749; 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=SM1ZNZsqkzWP8xh3eFvUIO6TTgLYI2ylvgGujsKZyn0=; b=cbWz7RhRDW755O9ioq/uMixcf4F5Iie0gIQLZwKcW+FmFOG/RWmvJu6CmmEhy+lg4ShE9o ABfj2e/UM0QDbM8h5UsRqBdiE5DaK/jtxlvNVh6yty0C5sT7GwR7NhZFeRh1l9SrefguAX mhD/xtOX0dFx76I0iG9ZLRVGCe/kipmfRMDxDINbNqmsndPVMQcZQ4IDV1t2MwGeq+Ojkd H/ipfxp4at1vy2DANhpUgIKVLnUpoIpLOaiheAcusVirximTUuHlKXVfANs9OdBsv9IfhK Mbp17JwmkAe/LrgJ9PjnsFOUFieiGNkrUoSMKozY3niabM5K0PAWqwMgUpwryg== 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 C8DB4EE0D for ; Wed, 24 Jan 2024 15:15:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rSe1z-0003wJ-H2; Wed, 24 Jan 2024 09:15:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rSe1v-0003tJ-68 for emacs-orgmode@gnu.org; Wed, 24 Jan 2024 09:15:03 -0500 Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rSe1s-00015L-Qp for emacs-orgmode@gnu.org; Wed, 24 Jan 2024 09:15:02 -0500 Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-50e7d6565b5so6896787e87.0 for ; Wed, 24 Jan 2024 06:14:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706105698; x=1706710498; darn=gnu.org; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=SM1ZNZsqkzWP8xh3eFvUIO6TTgLYI2ylvgGujsKZyn0=; b=cb9sdgaM1Fg8bqaI+yYn42gAU402elEmagozPFzGH+I7ujgtDbavq3DEsfu94W+/NB ndvtMJoa880VjEYCB18HT1t/xg3s0IA6E/vWThScHAKbF6H7K0ldqKUDNQsf49bTmVMb FT9UG2hrIunVWHpkoRIJksumiQXSPDh12IyfGkMbRa9zSTwebIAntonSyB37dAaJ2Nv6 ph+yzjHJfHvZbVcHRCLcGr7pkfoWpTQ0o2JCAj2ICVUgg5B3r/CSIt4BSD1W419Ijr5x h6IlCQXqqy449ymp//KiuEMPyR5NTu2rO8wlhExghGSpa1g2ZjQYdisAvEFSVOnAFrLy rZqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706105698; x=1706710498; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=SM1ZNZsqkzWP8xh3eFvUIO6TTgLYI2ylvgGujsKZyn0=; b=dNbSOXIybeeTYhN99Rd3tREZVKiS1Ab2IUFBm4bsrwfM6bYga2bBDQsRjQENhkbykg bGBjElREwqPGk3trhL0mmJu3pHSruZrsJXPRM3m+UGcMfhvlhBttJETHp75jzeQG7eBT r/b9OuhcPShIZAXRVIOwSch2a/eISVpIgLb1ABkQHVXnk/682q3cUDrDeigF/708x6aQ 9G1cJDEkGKUyhJw35QIqC0FvYE1kfwOdYHSK+0q+WhmZPALgXFdSw4mZn9D2cvQOCoJX urGc1bLjs0UvAGRMRIVuOrhYm+/J2ef9AE1noslUERFz8AXKHrZ6b9t06o/pUu2/WBdq kM9A== X-Gm-Message-State: AOJu0Yxt9+Jc5ue0EWEvUrd2oBPrlSLhg3DeC/YRgQT4yY38VbEy+K8V HQ873PkXZehPDpiOTpDkQ0pnnnWOH7yuNnohvAPsUw4MLydlutIXQZOonbjX X-Google-Smtp-Source: AGHT+IE3sr6FGRNRIEkZfjJZ8rTUPWomIMY03cuPVtvDZB5ZEpdbhMGOKcdstGVkgjvA8zyyJRdeDA== X-Received: by 2002:a05:651c:222a:b0:2cf:241c:38fb with SMTP id y42-20020a05651c222a00b002cf241c38fbmr637782ljq.92.1706105697159; Wed, 24 Jan 2024 06:14:57 -0800 (PST) Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id p14-20020a2e9ace000000b002cf114820dasm436910ljj.124.2024.01.24.06.14.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 24 Jan 2024 06:14:56 -0800 (PST) Message-ID: <691643eb-49d0-45c3-ab7f-a1edbd093bef@gmail.com> Date: Wed, 24 Jan 2024 21:14:55 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [BUG] Footnotes in section titles To: Eric Anderson , Timothy Cc: emacs-orgmode@gnu.org References: <87sf2ngcd2.fsf@localhost> Content-Language: en-US, ru-RU From: Max Nikulin Mail-Followup-To: Eric Anderson , Timothy , emacs-orgmode@gnu.org In-Reply-To: <87sf2ngcd2.fsf@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::12a; envelope-from=manikulin@gmail.com; helo=mail-lf1-x12a.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -4.22 X-Migadu-Queue-Id: C8DB4EE0D X-Migadu-Spam-Score: -4.22 X-TUID: IUhivzuFFHaW On 24/01/2024 19:11, Ihor Radchenko wrote: > The \section[...]{...} approach may work, but it is tricky - it is > completely up to the `org-latex-classes'. So, we may have to use regexp > replacement, which might be fragile. ox supports the ALT_TITLE property and ox-latex already adds it using regexp. So it should possible to define this property with stripped footnote by an export filter. I have not tested it, but ALT_TITLE and @@latex:\protect@@ might be a workaround. I recall some tricks with \footnotemark and \footnotetext, but I do not remember details and whether it may work for section titles. Complications may arise if a heading title has several footnotes. Perhaps it is better to avoid footnotes in titles and to add some phrase to the body instead.