>>>>> "Asger" == Asger K Alstrup Nielsen <[EMAIL PROTECTED]> writes:
>> >>>>> "Asger" == Asger Alstrup Nielsen <[EMAIL PROTECTED]> writes:
>>
Asger> Shouldn't be too difficult to fix. Have a look at lyxfont.C
Asger> and the "latexFontStart" (or something) method. In that,
Asger> compare the given font with the running font, and if the only
Asger> LaTeX font mode has changed, ignore the request to change font:
Asger> We already have the correct font. Do the same for the
Asger> "latexFontEnd" method.
>> I can't make it work. What I did is add the line marked <<<<<<<<<
>> to latexWriteStartChanges (and *End*). If I understand what is
>> going on, this should be enough. Alas, it does not work.
>>
>> Asger, a hint?
>>
>> JMarc
>>
>> ------------------------------------------- int
>> LyXFont::latexWriteStartChanges(LString & file, LyXFont const &
>> base) const { LyXFont f = *this; f.reduce(base);
>> f.setLatex(INHERIT); // ignore any latex change <<<<<<<<<<<<<<<<<<
Asger> Ok, it seems that there is not enough information in the passed
Asger> parameters. Therefor, we have to do what Amir concluded:
Asger> Either change the interface of latexWriteStartChanges, or hack
Asger> paragraph.C to not compare on LaTeX-property.
Asger> The latter is probably the easiest. Just make a copy of the
Asger> two fonts, and the use "font1.setLatex(LyXFOnt::INHERIT)" and
Asger> "font2.setLatex(LyXFont::INHERIT)" before the comparision.
I'll try that. However, why is the f.setLatex(INHERIT) not enough in
this case? It should make the test f.bits == inherit work...
Moreover, I do not really understand why the {\small..} is broken in
parts... fonts mysteries...
JMarc