>>>>> "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 <<<<<<<<<<<<<<<<<<
if (f.bits == inherit)
return 0;