Luca Brandolini wrote:
Thank you Vincent.
Is there any workaround for such a problem?
Yes. Add lines to the appropriate layout file to import the
theorems-ams.module file.
I can give more detailed instructions later, but don't hav time now.
Richard
Best regards
Luca
Il giorno sab, 30/05/2009 alle 13.42 +0200, Vincent van Ravesteijn ha
scritto:
Luca Brandolini schreef:
I am a new Lyx user and I would like to import LaTeX files into Lyx.
Apparently the importer cannot recognize enviroment like theorem, lemma,
remark, etc.
Consider this simple example:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass{article}%
\newtheorem{theorem}{Theorem}
\newtheorem{remark}[theorem]{Remark}
\begin{document}
\title{prova}
\author{prova}
\maketitle
\begin{abstract}
Bla bla bla bla
\end{abstract}
\section{section1}
Here is the theorem:
\begin{theorem}
\label{Thm1}This is Theorem 1.
\end{theorem}
\begin{remark}
This is the Remark.
\end{remark}
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
If you import it into Lyx the \begin{theorem}, \end{theorem}
\begin{remark}, \end{remark} are not recognized by the importer and you
simple see it in red into the text.
Am I missing something? Is there any workaround to force Lyx to
recognize them?
Best regards
Luca
This is bug 5702: http://www.lyx.org/trac/ticket/5702
Vincent