>>>>> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
Georg> tex2lyx has code to handle the following: {\small bla} blubb Georg> The size of bla is set to small. Unfortunately it is not reset Georg> afterwards, i.e. blubb is also small. Not only the size can be Georg> changed like this, but also the font shape, series and family, Georg> but tex2lyx does not know about that. Indeed. Georg> This patch fixes the size change handling and adds support for Georg> shape, series and family. The 2.09 compatibility commands are Georg> also added (not because I want to support latex 2.09, but Georg> because they are easy to implement and are still in use, e.g. Georg> writer2latex emits them). This was indeed needed. Georg> The patch introduces a font struct to hold information about Georg> font attributes. parse_text() gets an additional currentFont Georg> argument to store the current font attributes. The solution may Georg> not be the most elegant one, but it works and is IMHO clear Georg> enough. I am going to apply it unless somebody has objections. It seems reasonable. Note that the current font is typically a part of the 'context'. Why not put the font parameter in there? Actually, I wonder whether using LyX original LyXFont class a bit more (with it enum) would not be much simpler than reproducing all the syntax strings it uses. I think the logic of the code would improve. JMarc