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. Is there a way to import latex files containing macros in lyx (more specifically latex generated by texmacs). I have added as a attachments a very simple latex file generated from texmacs and the file produced by importing it in lyx.
Thanks a lot for any help in advance Marc Mertens
test.lyx
Description: application/lyx
\documentclass{letter} \usepackage{amssymb,enumerate} %%%%%%%%%% Start TeXmacs macros \newenvironment{enumeratenumeric}{\begin{enumerate}[1.] }{\end{enumerate}} \newenvironment{proof}{\noindent\textbf{Proof\ }}{\hspace*{\fill}$\Box$\medskip} \newtheorem{proposition}{Proposition} \newtheorem{theorem}{Theorem} %%%%%%%%%% End TeXmacs macros \begin{document} \begin{theorem} This is a test of the conversion of texmacs to lyx \begin{proof} Ok \end{proof} \end{theorem} \begin{proposition} This is a proposition \end{proposition} \begin{enumeratenumeric} \item One \item Two \end{enumeratenumeric} \end{document}