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 +EBTNyWxs2WmMgEA62LTzQ:P1 (envelope-from ) for ; Fri, 26 Jan 2024 14:18:30 +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 +EBTNyWxs2WmMgEA62LTzQ (envelope-from ) for ; Fri, 26 Jan 2024 14:18:30 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IQIGzlc8; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1706275109; a=rsa-sha256; cv=none; b=Hxbh7HCW//iuIzA9oYN4O4YZw+c7CkX4qT2UzvlYIhIJ1G+9Vqub3Ri/mwUlIuFBg4RCDd hAJ5HfkuqMWp8zP2laYdA32Xs0pue9bzdiutJz7MwYYA+9ZhsQSIR5aI1tv+iUr7/QEqz3 kZ9VaVFCrd5PCmpCXVn7XTBNl3R2156a4tV/hJD1XHi3XFhETfe2dIPs4FMJvRLnoIcZRT 5pbPC3PFAbEWdBYmCkmshd0dyZf/Bhz0EYt1OH+cu3mDhwtA9SGPAUYXmN2ZF1LV/OaqDg gH01Qi8I4JNyTk76x5TIOmkDKB8wi/69BofSNxIvb5SBerHOMohK9LP5IoXxuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=IQIGzlc8; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1706275109; 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=o/78uTrr8yEjt9/fCtyVSRx09F4gB8zLiBk563xcDoE=; b=PsTBIdzCAObGgQyX6wxdT+puQN6K844WdyQRSgHrtf86k97EoA43ssGkdwEFBZvWOvjZxW sjD5ekfhubU5COhH0VhoVJSekt1JunLGBfFu1slhEgl93mh6rFABFlTQFq206n7/zBER5b JF/QB/JB7vD0jZdS2Vz3QRB+b+1+ps05Pe/nmIa+T/DAMXbtb1jEhGG9Z9IFikcjlDueuq ZlIYOOI6P+HXg9EEG//+V2pQ3u4zsKCxKTsdGVS269foiv+XDs9cHOrCBYEqmbltvrZ0nR 9amZAWxfePBY9PT4/JSE8FNfxKMX8/2rppfnypv0YTBY++ohL/ZkBPaA4y+OCQ== 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 4EA36710E9 for ; Fri, 26 Jan 2024 14:18:29 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rTM5V-0002iP-8i; Fri, 26 Jan 2024 08:17:41 -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 1rTM5U-0002iH-08 for emacs-orgmode@gnu.org; Fri, 26 Jan 2024 08:17:40 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rTM5R-0003ot-Qd for emacs-orgmode@gnu.org; Fri, 26 Jan 2024 08:17:39 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 212E5240029 for ; Fri, 26 Jan 2024 14:17:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1706275053; bh=dNBWes/V855o1rKtbWxair/iIQ+qUagL1LK17WKfBJo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=IQIGzlc8qmNqO1Lj663waWI/+8bBAvV1ZCxgQ4Zuf0AkazWBt4CxijEucKEXfoskW jh7oj9zBleXdvQ2AAqP6Z8VNv7/rL91gSdUCULBdQhcaz68MKBz4sE4yyu4onf1bmR hSNElU+l+z7Cpe0edepc52rPac6KFVYwN7VTAYblABqfVnW8GS3XssR9IDQziZ7vWH njJx/9EKoyiBOty+20DbWgOvhlklegKGPjVMw8o47ANqEjzyNXxPnxmRCtZc08QLl5 H9D54NBbJo9mpXkuZe9EhED1mDgBBj6FIhPLpUFL2BeHV0pIK7mJIJ9BMXLfjLn43s W0qSk/DihSeAg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TLysl5tZZz9rxB; Fri, 26 Jan 2024 14:17:31 +0100 (CET) From: =?utf-8?Q?Juan_Manuel_Mac=C3=ADas?= To: Ihor Radchenko Cc: Colin Baxter , Max Nikulin , Eric Anderson , ihor Timothy , orgmode Subject: Re: [BUG] Footnotes in section titles In-Reply-To: <875xzgfe8b.fsf@localhost> (Ihor Radchenko's message of "Fri, 26 Jan 2024 12:53:08 +0000") References: <87sf2ngcd2.fsf@localhost> <691643eb-49d0-45c3-ab7f-a1edbd093bef@gmail.com> <878r4e4uy0.fsf@posteo.net> <87h6j2vjd0.fsf@yandex.com> <874jf24u3r.fsf@posteo.net> <875xzgfe8b.fsf@localhost> Date: Fri, 26 Jan 2024 13:17:28 +0000 Message-ID: <87il3gkzdj.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.65; envelope-from=maciaschain@posteo.net; helo=mout01.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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: -10.38 X-Migadu-Queue-Id: 4EA36710E9 X-Migadu-Spam-Score: -10.38 X-TUID: PXEeYj0lYqCs Ihor Radchenko writes: > Juan Manuel Mac=C3=ADas writes: > >> ... >> \title{Lorem ipsum dolor\thanks{blah blah}} >> ... >> >> Org does not have support for this type of notes in the #+title or >> #+author keywords. For LaTeX you can use a macro. > > Hmm. > The reason footnotes are not allowed in #+title and other keywords is > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D7ebe87e= 2d5fb6c > > Inserting footnote references in parsed keywords (e.g., TITLE or > CAPTION) can lead to subtle bugs. Indeed, it is impossible to know in > time if that particular footnote is going to be used in the output, > and, therefore, if it should count, e.g., in > `org-export-get-footnote-number'. > > However, I am not sure about that line of reasoning - we generally don't > know if *any* given footnote reference is going to be used in the output > or not because export backend may skip references or whole parts of the > original Org file. Same for user filters. > > So, I am leaning towards reverting that commit - that will allow things > like > > #+TITLE: This is a test title[fn::This is test] > > If we need special handling for footnotes in title (like using \thanks > instead of \footnote), it is easy. I completely agree. I think it would be a great improvement, since, as Colin Baxter says, in academic articles it is a very common practice to add foot notes to the title of the article or the name of the author. As for the \thanks{} command, org exports the keyword #+email within a \thanks{} command as '\author{Name\thanks{email}}0. I don't think two \thanks macros collide within author (assuming the user adds the email and puts a footnote in #+author. Anyway, I think the most common thing is to put the email below the author's name, not as a footnote, but that is another topic and also depends on the style of each publication, journal, etc. >> ... For backends like odt >> it is trickier. Look at this thread: >> >> https://lists.gnu.org/archive/html/emacs-humanities/2024-01/msg00000.html >> >> I think it would be nice if Org had some kind of support for notes in >> #+title and #+author... > > No idea about how to do it in ODT. If someone familiar with OpenDocument > spec can help, it would be welcome. I don't have much idea about odt, but I think the problem comes from a type of nesting that is not allowed in the odt xml. I think org exports #+author inside the initial-creator tag: (format "%s\n" author) And within that tag the code for a footnote produces an error when opening the document. If the footnote is placed right after , there would be no problem. Best regards, Juan Manuel=20 =20=20=20=20=20=20 --=20 Juan Manuel Mac=C3=ADas -- Composici=C3=B3n tipogr=C3=A1fica, tratamiento d= e datos, dise=C3=B1o editorial y ortotipograf=C3=ADa