[LyX/master] Paragraph::needsCProtection(): use inset list

Scott Kostyshak skostysh at lyx.org
Sun Dec 26 17:15:50 UTC 2021


On Sun, Dec 26, 2021 at 05:48:02PM +0100, Jean-Marc Lasgouttes wrote:
> Le 23/12/2021 à 07:52, Jürgen Spitzmüller a écrit :
> > Am Mittwoch, dem 22.12.2021 um 16:16 +0100 schrieb Jean-Marc
> > Lasgouttes:
> > > Jürgen, can you tell me what is the purpose of the test against math
> > > insets?
> > 
> > Some math insets need to be \cprotect'ed in macro arguments (e.g.,
> > captions). See
> > https://www.lyx.org/trac/ticket/6243
> 
> 
> Yes, this is the bug. I should have read that before sending my previous
> message.

Strangely I could not create an example (to put in tests) that fails to
compile with 2.3.0 (no cprotect) but compiles with master (which uses
cprotect). I wonder if a LaTeX figure improved this situation in the
last couple of years?

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20211226/eea87059/attachment.asc>


More information about the lyx-devel mailing list