Jannick Asmus wrote:
Hi,
importing my latex documents with the tex2lyx feature offered by LyX does
not translates the environments of the ams article class properly.
The latex code
\begin{cor} hmmmmm \end{cor}
is translated to
\begin{cor} hmmmmm \end{cor} - where the the \begin{cor} and \end{cor} are
LaTeX-boxed.
1. How can that be amended, because I would like to manually work through my
loooong latex documents?
This is a known problem. The solution is to modify the layout file as
follows. Let's say you're using the AMS article layout. Copy
amsart.layout to your local LyX directory. Open it and, in place of the line
DefaultModule theorems-ams
put this:
Input theorems-ams.module
Then save, reconfigure LyX, and try importing again.
2. If problem 1. can be amended, how can we make sure that the environments
are correctly ended in LyX, e.g., after some paragraphs in an environment?
I don't understand this question. Can you post an example of the problem?
rh