[LyX/master] Paragraph::needsCProtection(): use inset list
Jürgen Spitzmüller
spitz at lyx.org
Tue Dec 21 15:32:49 UTC 2021
Am Dienstag, dem 21.12.2021 um 15:45 +0100 schrieb Jean-Marc
Lasgouttes:
> I could try to help with this, but for that I would have to
> understand what the code does (and what cprotect does).
\cprotect allows to put verbatim context into places where this would
normally be invalid (basically macro arguments) by outsourcing stuff to
aux files. This fixes many shortcomings we had with things in
footnotes, sections, and other places that simply didn't compile.
The code needs to assure at several places whether macros need to be
\cprotect'ed (and the cprotect package loaded). This only needs to be
checked once and only at LaTeX export. But there are several individual
places and constellations to check for. E.g., does an inset need to be
cprotected? Maybe only in a given context?
This is basically what the code does.
Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20211221/7c619013/attachment.asc>
More information about the lyx-devel
mailing list