Richard Heck wrote: > Thanks *so* much for doing this. JMarc and I have been talking about > doing it for a long time, but neither of us really knew quite what to > do, I think, so it never got done.
You are welcome. Please note that this is only a start, and could be improved a lot. > Let me second his suggestion, however, that, on export, we could simply > record what modules we used as a meta-comment of some sort. That would > simplify roundtrip, though not import, whereas your patch works in both > cases. I does not: The list of candidates for commands defined by modules is only filled from the LyX generated preamble. In principle this could be extended to the whole preamble, but then you would need an exact comparison of the defined commands (not a string comparison, but a comparison of the parsed tokens, ignoring comments). Otherwise the chance of false matches would be too high. As I wrote in the other message I think that meta-comments are great if they are used as hints, but if they are really parsed it gets too unreliable in my experience. Georg