Am Freitag, 14. November 2003 18:48 schrieb Andre Poenitz: > > Solution 2: > > Create a list of commands that take optional arguments and only serach > > for them when they are expected. The drawback is of course the > > hardcoding of commands. > > > > > > I don't like either solution. Does anybody have a Solution 3 that is > > better? If not, which solution do you prefer? > > Solution 2 1/2. The #hardcoding' should be done by using an external > plain text file which contains the 'known' commands. > > Does do reLyX something similar?
Yes. We can even steal the list of 'known' commands from lib/reLyX/syntax.default. Creating this list was the main thing that I did not like with this solution. > PS: In case I did not mention that so far: > Thanks for cleaning up this tex2lyx mess behind me... You are welcome, the reLyX mess is bigger. After trying for some hours to understand why reLyX did not like my document at all, I looked at tex2lyx and got results very quickly. Georg