Jose' Matos wrote: > On Thursday 13 November 2003 20:56, Georg Baum wrote: >> Problem: >> >> 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 4: > Have those commands inside an external file, and/or allow other > files with such commands to be passed as arguments to tex2lyx.
This is essentially the approach adopted by reLyX. See lib/reLyX/syntax.default. How does TeX approach this problem? (Note that André is away for a few days.) -- Angus