Uwe Stöhr wrote:

> 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.

No problem. We only need to take care that the tests run OK.

>  > 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.

I guess this will not be needed anymore if Jean-Marc puts his fix in.

> 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.

Yes, this if/else orgy needs a refactoring.

> 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.

First we need a tex2lyx testcase of class scrbook. Then we can experiment.


Georg

Reply via email to