> Concerning this last point: could you explain what did not work in the
> previous version?

Take the tex2lyx test file "test-insets.tex" that you find in branch, import it and compile the result as PDF -> this fails. The reason was that tex2lyx tries to recognize LyX-specific settings by the comment

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.

This is unclever and fails when you have more than one LyX-specific setting in your file. My solution fixes this because the things are now taken as they are without any assumptions. I've stress test this a lot and are very confident with the result. Please test it out and report when you find bugs.

> I definitely do not like stuff like
>
>    +const char * const known_lyx_comments[] = {
>    +"%% Binom macro for standard LaTeX users\n",
>
> This is very very fragile and IMO not acceptable. Could you please detail 
what you do?

Why is this fragile? This is a list with LyX-specific comments that need to be removed to make roundtrips possible. I can see no problems and roundtrips are now possible with all my testcases.

regards Uwe

Reply via email to