Ihor Radchenko writes: > Juan Manuel Macías <maciasch...@posteo.net> 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=7ebe87e2d5fb6c > > 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 "<meta:initial-creator>%s</meta:initial-creator>\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 </meta:initial-creator>, there would be no problem. Best regards, Juan Manuel -- Juan Manuel Macías -- Composición tipográfica, tratamiento de datos, diseño editorial y ortotipografía