Please CC me on answers.
I often collaborate with people who (still) prefer LaTeX, and also
submit papers to conferences that make it easy to submit latex via
style/class/sample.tex files. This makes it important to be able to work
in LyX, but debug/modify in latex, then continue working in LyX.
It would probably be difficult to preserve latex source formatting etc,
and I am not proposing that; I am assuming the main source of content is
LyX.
Two particular features would make this easier:
- Math-macros, if turned into \global\long\def, should be turned back so
LyX's beautiful visual editing is restored (can keep the math-macro def
in a comment in the latex version and restore it).
BTW, when does a math-macro become a \newcommand vs \global\long\def?
- Automatically generate styles for environments defined in imported
documents. For example if the imported latex has a keywords environment,
that should not suddenly become ERT in LyX.
This should allow me to start from the conference sample file, import it
into LyX, and obtain a first class lyx environment.
Daniel Vainsencher