rgheck wrote:
Marc Mertens wrote:
Hello,

I'm considering to switch from texmacs to lyx but I don't want to loose my old documents, to this end I tried to export my documents from texmacs to latex format and use the import function of lyx to import it in .lyx format. I I do this then I see that macros that are added by texmacs to the latex file are not used in lyx, having as effect that texmacs theorem, proposition , enumerations etc .. are not rendered correctly when I view them in lyx. If I use 'latex' to generate a .dvi file from the exported .tex file from texmacs then everything is rendered in the correct way.
Right. The conversion is done by a program tex2lyx that does not recognize the environments you are using. The things it does recognize are detailed in the manpage for the program.

Is there a way to import latex files containing macros in lyx (more specifically latex generated by texmacs).

Yeah, improve tex2lyx. ;-)

Seriously, the only way to do this (other than manually) would be to write some kind of program that does the conversion.

Actually, there is a bit more you can do here. If you change the document class from letter to amsbook, say, then LyX will convert the proof environment: This is because amsbook defines that environment, so LyX knows about it. Similarly, if you change "theorem" to "thm"---which is how it is done in amsmath.inc---then LyX will also convert that. Same goes for proposition --> prop. So that's another option.

rh

Reply via email to