Am 07.12.2014 um 15:01 schrieb Georg Baum:

This part breaks the test case test-refstyle-theorems.tex (now you get
\protect\protect instead of \protect in front of a caption, so the old
output is definitely correct).

I'll have a closer look as soon as I find time - I don't have time to work in LyX the next week.

> What is this code supposed to do?

It should handle \captionabove and \captionbelow. For these commands the \protect that is added by LyX must be ignored thus I wrote that way.

Originally I wanted to add a new if clause only for \captionabove/below but the compiler doesn't allow more if clauses in a .cpp file than what we already have. However, it turns pout that \captionabove/below need a different handling of \protect.

Besides this it is not clear to my why \captionabove/below are not automatically handles by tex2lyx via findInsetLayout as you wrote. What do i have to do to invoke findInsetLayout to handle \captionabove/below.

thanks and regards
Uwe


Reply via email to