Dear Richard, dear all,

I found out that Lyx uses \protect\footnote{...}. With the normal \footnote{ } the problem does not occur. \protect\footnote{  } is not recommended precisely for the reason I mentioned, see

http://www.tex.ac.uk/FAQ-ftnsect.html

Instead, footmisc can be used (which I often use anyway). It will work with \usepackage[stable]{footmisc}

Thus it seems easy to mend the problem in LyX by simply redefining what the footnote inset does, i.e. omitting \stable, and adding \usepackage[stable]{footmisc} either in the preamble or in Lyx itself.

Ekkehart


On 02.01.2018 21:09, Ricardo Berlasso wrote:
2018-01-02 16:57 GMT+01:00 Ekkehart Schlicht <schli...@lmu.de>:
Hi,

I have footnotes to section headings (that are necessary because some sections are taken from earlier articles, and this is explained in those footnotes). In the TOC, these footnotes re-appear. It is quite clumsy to repress them in those cases by using \section* instead of \section and add \addcontentsline{section}{12 sectionname}. It would be very convenient to have footnoes to TOC entries omitted by defaultin the TOC.

The only way I ever found is to define a new "footnote" command and use it on the heading instead of the normal one. See here:


Basically you add to the Preamble

\makeatletter

\def\myfnt{\ifx\protect\@typeset@protect\expandafter\footnote\else\expandafter\@gobble\fi}

\makeatother

and then to insert the "footnote" on the heading you use a TeX box (Ctrl-L) with the command

\myfnt{the heading footnote}

on it. The numbering integrates without problems with normal footnotes, only on LyX it will look kind of weird. But you can always define a character style ;)


Regards,
Ricardo

 

Thanks!

--
Ekkehart Schlicht
Hurtenstr. 13
82345 Andechs-Frieding
Tel: +49 (0)8152 9149271


Reply via email to