From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CFsYGz3lrmVC+wAAqHPOHw:P1 (envelope-from ) for ; Mon, 22 Jan 2024 22:59:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id CFsYGz3lrmVC+wAAqHPOHw (envelope-from ) for ; Mon, 22 Jan 2024 22:59:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=KPbHXmcQ; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705960765; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=LD6cg1z6iPdIvdAaglcNs/0Uo6COWi5LipIHCv3EOvE=; b=gWp3h5YF78Kf9Ja8RZvIT01br/KRgGGh4A8g2Gy4QE8kzE2NHakeBfHFsApAX/TdSUWlFv pXo71KzPVSUO19ZBjrK4rAVpQRoduwE98/JgKArhRVYVhuobEqUwKUYvDCZU4rHLSVc7WP Ipy5Tl/UiJ8eS+8W0lgOXaE4jnICkTVGQmnO/3U2eWCvS438c3vyN6lgWLtQtIgtEALBR1 WK7WO//UwDfi8F/wPsZUNwYwHczMXfhezvxYJa1r0nCqMUhF7T2pgJ0eDFrrxUvPka0FcV tfoCS36E/3tpqXsf7q9wQPTkZGIb//sASZZ/VN+2JSjee0trAYMKEbeO66nNSQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=KPbHXmcQ; 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"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705960765; a=rsa-sha256; cv=none; b=HofPChS+tKv8h1c9IafiHVSOHB0cVdg5aAeIo1wp5VU4i0Us7La40x99SKEzMbjo5culQv sIkZwiFlSOyNNd8noAcIfL98CRue8klk5FpSTnGb5r2c2tdNgV0E2mdDjMacT3gbF7watZ tP9XW6APpm0We/0PHDfFncRbrIZifTPgZb/3qrIxJOeAr6LMHMwYux3IoamTKKgyeo/AhF hAsjkcyK68kUgt7NVx9wk3WgwKrsRb1DZRob8b1enNmm4rZ3Qb89sXyjUDCp8jm73b6RYo 0tcBrpZHPv1IneXiK5/0lX9P9GzpjXGLfsBmE8GR4597v1k1X7kuJszeF/IURA== 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 11FD23E7E7 for ; Mon, 22 Jan 2024 22:59:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rS18J-0004GQ-4t; Mon, 22 Jan 2024 15:43:03 -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 1rS18E-0004Fd-TO for emacs-orgmode@gnu.org; Mon, 22 Jan 2024 15:42:59 -0500 Received: from mail-yb1-xb2b.google.com ([2607:f8b0:4864:20::b2b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rS189-0004th-S4 for emacs-orgmode@gnu.org; Mon, 22 Jan 2024 15:42:56 -0500 Received: by mail-yb1-xb2b.google.com with SMTP id 3f1490d57ef6-dc22ae44595so3082196276.1 for ; Mon, 22 Jan 2024 12:42:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705956171; x=1706560971; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=H60iLIWYQ5trDRkjCr+9CPGYqnIxx5E1aMOnPjAc6O0=; b=KPbHXmcQr/kCeISnzwF+W1KqockwHB3+kTs17r696d57ZMIh9m+yYQTjJiEDH39ztF yGB8LhpSe9iUJpNHUUDpW5QLfLaacQjdqC8NWRVY33i7CPB14+jePHSpZZNmyQTfg45b fO+EDo8/GRdq2l8AecI6AEb7kcuoBZCzC4QS2QGs2KcAKlCApg5xNTWCImvZs8W5HBEi RRgqPGPB3uwO1d0tD9WJ6MakNNqg1Hm0zmRwbzZ3FEaAteyLoauA3kWgfQc/TOXLafOC JMwQfvKSo+9QVJcwiNzU836oqMBqHc7YIVfiy7hIMRayA132WDw9Po3DGY5SDjAkAIWi G5VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705956171; x=1706560971; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=H60iLIWYQ5trDRkjCr+9CPGYqnIxx5E1aMOnPjAc6O0=; b=wFOiJuTmszuZKD2MZcCbz4zJVOV2+i8HO7/ZVqFGERgIKtYKA5/+Vgvi2l9QmK/CVP t4HgXxzK3HUMV6VIRvScpMKosnNgU8y3RaJ+FzvjZoEOV7VVCZfpD5Ajc2sjFf24dnbQ jCDwnSIR83um2XykBk118mhhgxQBamxQZAt73rnRGpMXZ2Ve698cH7YE7XkIWtBTc+ho sEg6/5DVa6fIFBtMmd65ErK9QXXq3XluimaAAF+Udjwod9G61L/wBoRZajolTT0ZdGFc 5K7N1HpiBquhMMJIaZEGQkM8zYAoV+ycF5EgUmLi9my2Fde4zjoIcFEY1BNZGw64KgYY FB1A== X-Gm-Message-State: AOJu0Yxqe0ppCvvRhq6zonwoUROWYR/SJ0C0Z+V3qKqcESPbzYCVcvpk sSLEAEcxbbubzyeY4LAhMs4O+JGLCja12K+pZUUdod1yQZ+4CFv862DXcpkN8tTO4MCu+yroub+ wL8/dKtt9MUuakqAaHll+JpRH1pql92UhiUU= X-Google-Smtp-Source: AGHT+IHob0q8p/SuxBh0vOI4NwC7jZ3zjJThcSLzrI0pGY86aEI9utWmojTvI1g6gNIo4buK2KSLIP+bGe9BtH48cCs= X-Received: by 2002:a25:9387:0:b0:dc2:2e3c:4147 with SMTP id a7-20020a259387000000b00dc22e3c4147mr2301091ybm.16.1705956171274; Mon, 22 Jan 2024 12:42:51 -0800 (PST) MIME-Version: 1.0 From: Eric Anderson Date: Mon, 22 Jan 2024 15:42:34 -0500 Message-ID: Subject: Possible LaTeX export bug: Footnotes in items To: emacs-orgmode@gnu.org Content-Type: multipart/mixed; boundary="000000000000979070060f8edf15" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2b; envelope-from=kluwak@gmail.com; helo=mail-yb1-xb2b.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, HTML_MESSAGE=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-Spam-Score: 5.33 X-Migadu-Queue-Id: 11FD23E7E7 X-Spam-Score: 5.33 X-Migadu-Scanner: mx11.migadu.com X-TUID: 8Ai/dO9O/5VS --000000000000979070060f8edf15 Content-Type: multipart/alternative; boundary="00000000000097906d060f8edf13" --00000000000097906d060f8edf13 Content-Type: text/plain; charset="UTF-8" Hi All, I'm new to the developers' mailing list, so I hope this is the right place to post potential bugs. I don't claim to know exactly why, but at least for certain TOC options, the LaTeX exporter produces invalid code for item titles containing footnotes. I've attached a minimal (non)working example. The resulting LaTeX code (also attached) uses \footnote inside \section and \paragraph macros, producing compiler errors. A little googling turns up the following comp.text.tex usenet post https://comp.text.tex.narkive.com/lkZWQYaS/using-footnotes-in-paragraph, explaining that \footnote is fragile and cannot be used in those contexts without \protect. Manually adding \protect before \footnote in the automatically-generated tex file appears to produce correct results. I don't know if the best fix is to always \protect \footnotes in LaTeX export, or if more contextual smarts are required, but this seems like an issue worth addressing. Cheers! Eric Anderson --00000000000097906d060f8edf13 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi All,

I'm new=C2=A0to the develop= ers' mailing list, so I hope this is the right place to post potential = bugs.=C2=A0 I don't claim to know exactly why, but at least for certain= TOC options, the LaTeX exporter produces invalid code for item titles cont= aining footnotes.=C2=A0 I've attached a minimal (non)working example.

The resulting LaTeX code (also attached) uses \foot= note inside \section and \paragraph macros, producing compiler errors.=C2= =A0 A little googling turns up the following comp.text.tex usenet post=C2= =A0https://comp.text.tex.narkive.com/lkZWQYaS/using-footnotes-in-p= aragraph, explaining that \footnote is fragile and cannot be used in th= ose contexts without \protect.=C2=A0 Manually adding \protect before \footn= ote in the automatically-generated tex file appears to produce correct resu= lts.

I don't know if the best fix is to always= \protect \footnotes in LaTeX export, or if more contextual smarts are requ= ired, but this seems like an issue worth addressing.=C2=A0=C2=A0
=
Cheers!
Eric Anderson=C2=A0

--00000000000097906d060f8edf13-- --000000000000979070060f8edf15 Content-Type: application/octet-stream; name="org-bug-mwe.org" Content-Disposition: attachment; filename="org-bug-mwe.org" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lrpe0wo60 IytPUFRJT05TOiB0b2M6bmlsIEg6NgoqIGEgW2ZuOjogbm90ZSBhXQoqKiBiCioqKiBiCioqKiog ZCBbZm46OiBub3RlIGJdCg== --000000000000979070060f8edf15 Content-Type: application/octet-stream; name="org-bug-mwe.tex" Content-Disposition: attachment; filename="org-bug-mwe.tex" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lrpe3vms1 JSBDcmVhdGVkIDIwMjQtMDEtMjIgTW9uIDE1OjM0CiUgSW50ZW5kZWQgTGFUZVggY29tcGlsZXI6 IHBkZmxhdGV4Clxkb2N1bWVudGNsYXNzWzExcHRde2FydGljbGV9Clx1c2VwYWNrYWdlW3V0Zjhd e2lucHV0ZW5jfQpcdXNlcGFja2FnZVtUMV17Zm9udGVuY30KXHVzZXBhY2thZ2V7Z3JhcGhpY3h9 Clx1c2VwYWNrYWdle2xvbmd0YWJsZX0KXHVzZXBhY2thZ2V7d3JhcGZpZ30KXHVzZXBhY2thZ2V7 cm90YXRpbmd9Clx1c2VwYWNrYWdlW25vcm1hbGVtXXt1bGVtfQpcdXNlcGFja2FnZXthbXNtYXRo fQpcdXNlcGFja2FnZXthbXNzeW1ifQpcdXNlcGFja2FnZXtjYXB0LW9mfQpcdXNlcGFja2FnZXto eXBlcnJlZn0KXHVzZXBhY2thZ2V7Ym9va3RhYnN9Clx1c2VwYWNrYWdle3RhYnVsYXJ4fQpcYXV0 aG9ye0VyaWMgQW5kZXJzb259ClxkYXRle1x0b2RheX0KXHRpdGxle30KXGh5cGVyc2V0dXB7CiBw ZGZhdXRob3I9e0VyaWMgQW5kZXJzb259LAogcGRmdGl0bGU9e30sCiBwZGZrZXl3b3Jkcz17fSwK IHBkZnN1YmplY3Q9e30sCiBwZGZjcmVhdG9yPXtFbWFjcyAyNy4yIChPcmcgbW9kZSA5LjYuOSl9 LCAKIHBkZmxhbmc9e0VuZ2xpc2h9fQpcdXNlcGFja2FnZVtzdHlsZT1pZWVlXXtiaWJsYXRleH0K ClxiZWdpbntkb2N1bWVudH0KClxzZWN0aW9ue2EgXGZvb3Rub3Rle25vdGUgYX19ClxsYWJlbHtz ZWM6b3JnYzc3MTFlZH0KXHN1YnNlY3Rpb257Yn0KXGxhYmVse3NlYzpvcmdjMTY3YzhhfQpcc3Vi c3Vic2VjdGlvbntifQpcbGFiZWx7c2VjOm9yZzE0NzA3YTR9ClxwYXJhZ3JhcGh7ZCBcZm9vdG5v dGV7bm90ZSBifX0KXGxhYmVse3NlYzpvcmc2ZGFlYjA3fQpcZW5ke2RvY3VtZW50fQ== --000000000000979070060f8edf15--