Re: [BUG] Footnotes in section titles

2024-02-09 Thread Ihor Radchenko
Ihor Radchenko writes: > Subject: [PATCH] org-latex-headline: Prevent footnotes in TOC/footers Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=0d77cf842 Fixed. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at

[DISCUSSION] Allowing footnote-references inside parsed keywords (#+AUTHOR, #+TITLE, etc) (was: [BUG] Footnotes in section titles)

2024-02-01 Thread Ihor Radchenko
Max Nikulin writes: > On 26/01/2024 19:53, Ihor Radchenko wrote: >> So, I am leaning towards reverting that commit - that will allow things >> like >> >> #+TITLE: This is a test title[fn::This is test] > > I hope, document metadata will be generated with stripped footnotes. This is a good

Re: [BUG] Footnotes in section titles

2024-01-26 Thread Max Nikulin
On 26/01/2024 19:53, Ihor Radchenko wrote: So, I am leaning towards reverting that commit - that will allow things like #+TITLE: This is a test title[fn::This is test] I hope, document metadata will be generated with stripped footnotes.

Re: [BUG] Footnotes in section titles

2024-01-26 Thread Juan Manuel Macías
Ihor Radchenko writes: > Juan Manuel Macías 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

Re: [BUG] Footnotes in section titles

2024-01-26 Thread Ihor Radchenko
Juan Manuel Macías 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

Re: [BUG] Footnotes in section titles

2024-01-26 Thread Ihor Radchenko
Max Nikulin writes: > 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

Re: [BUG] Footnotes in section titles

2024-01-24 Thread Juan Manuel Macías
Colin Baxter writes: > >> Perhaps it is better to avoid footnotes in titles and to add some > >> phrase to the body instead. > > > That is the ideal scenario. I also believe that footnotes should > > be avoided in section headings, if possible. Or at least, have > > another

Re: [BUG] Footnotes in section titles

2024-01-24 Thread Colin Baxter
> Juan Manuel Macías writes: > Max Nikulin writes: >> 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. >

Re: [BUG] Footnotes in section titles

2024-01-24 Thread Juan Manuel Macías
Max Nikulin writes: > 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. ox-latex has 'org-latex--delayed-footnotes-definitions': "[...] This

Re: [BUG] Footnotes in section titles

2024-01-24 Thread Max Nikulin
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

[BUG] Footnotes in section titles

2024-01-24 Thread Ihor Radchenko
Eric Anderson writes: > 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, >