Marc Mertens wrote:
Hello,
thanks for your help, I followed your advice and replaced theorem with
thm, corollary with cor etc.. . As for environments I use use for the moment
just enumerate instead of enumeratealpha etc. using for the moment emacs to
do these replacements I have something better in lyx now. For my real
conversion I still have a problem left, texmacs creates also some macros like
\newcommand{\nin}{\not\in}
\newcommand{\nni}{\not\ni}
\newcommand{\tmop}[1]{\ensuremath{\operatorname{#1}}}
\newcommand{\tmsamp}[1]{\textsf{#1}}
\newcommand{\tmtextbf}[1]{{\bfseries{#1}}}
\newcommand{\tmtextit}[1]{{\itshape{#1}}}
\newcommand{\tmtexttt}[1]{{\ttfamily{#1}}}
\newcommand{\um}{-}
that is not shown correctly in lyx once imported, can you give me some hints
how to solve this. Please not that I'm not a latex specialist (but I can
guess from the above that something like \tmop{and} should be expanded in
\ensuremath{\operatorname{and}} ). Does there exist some way that these
substitutions are made automatically or should I write code that does this
before doing the import in lyx.
Some of these are clearly macros for use in math. For these, after the
import, you can just create appropriate math macros, as detailed in
section 5.6. of the User Guide. Then they'll show up correctly, I think.
I don't myself understand the point of \tmsamp. It looks like it's just
an alias for \textsf, and the same goes for \tmtextbf, etc. So I'd just
search-replace those. As for \um, the same should do, more or less,
though you might want to check where this is turning up.
rh