Am 21.09.24 um 08:24 schrieb Jürgen Spitzmüller:
Am Samstag, dem 21.09.2024 um 08:13 +0200 schrieb Jürgen Spitzmüller:
Am Samstag, dem 21.09.2024 um 07:55 +0200 schrieb Herbert Voss:
but a label is not fragile and it is also common that it is inside
the caption. It shouldn't preceeded by \protect. Then all is fine:
inside and outside
I understand, but that's a different issue (and I need to investigate
why we introduced the protection).
The background is
https://www.lyx.org/trac/ticket/9404

I am a bit irritated now as to whether we need to protect labels in
\thanks notes only (where we get an error otherwise) or in more cases.


Yes, \thanks is a footnote and that is fragile. However, using \thanks inside a caption is wrong LaTeX code, because it also moved into the listoftables|figures
and you'll get it _two_ times in the output.
A \thanks should (without \protect) only be used together with the optional
argument which gets the caption titel without thanks.

\caption[foo]{foo\thanks{bar}}

 Then all is fine: for LaTeX and for LyX ... :-)

Herbert
--
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to