Em Seg 11 Jul 2005 13:01, Georg Baum escreveu:
> João Luis Meloni Assirati wrote:
> > I still think that this is impossible since unless the lyx format had a
> > special syntax for unknown environments.
>
> I still don't think that it is impossible. Proof attached ;-)

Yes, I'm convinced that it is possible. You have to (recursively) memorize the 
fonts before entering an environment and reset the font to the value it had 
before leaving the environment.

Your patch misses a  } at the end of the function parse_box at text.C (do you 
really test your patches or you just know they are going to work???:)

The patch seems to work well. However, I discovered another bug, also present 
without your patch, which is much more basic and important: font size is lost 
in paragraph changes. For example

\documentclass{article}
\begin{document}
\Huge

Blabla
\end{document}

will import Blabla in normal size.

I will continue to test your patch in other cases that exclude this one.

Thanks,
João.

Reply via email to