Re: Import of LaTex file

2009-06-02 Thread Luca Brandolini
Il giorno sab, 30/05/2009 alle 10.09 -0400, rgheck ha scritto:

 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
 
 
  
 

 
 


Dear Richard,
   I tried to follow your suggestion. I found the amsart.layout and I
inserted the line
Input theorems-ams.module and I imported the file
%%
\documentclass{amsart}%
\usepackage{amsmath}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}
\newtheorem{rem}[thm]{Remark}

\begin{document}

\title{prova}
\author{prova}
\maketitle

\begin{abstract}
Bla bla bla bla
\end{abstract}



\section{section1}

Here is the theorem:

AAA

BBB

\begin{thm}
\label{Thm1}This is Theorem 1.
\end{thm}


\begin{rem}
This is the Remark.
\end{rem}

\end{document}


The result is almost correct. However the whole document is included in
a \begin{thm} \end{thm} structure.
This is what is shown in the LaTex preview windows after the import.

Best regards
Luca


55


% Anteprima del sorgente

%% LyX 1.6.2 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{amsart}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{amsthm}

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section} %% Comment out for
sequentially-numbered

\numberwithin{figure}{section} %% Comment out for sequentially-numbered

\theoremstyle{plain}

\theoremstyle{plain}

\newtheorem{thm}{Theorem}

\theoremstyle{remark}

\newtheorem{rem}[thm]{Remark}

%% User specified LaTeX commands.

%

\usepackage{amsthm}

\newtheorem{thm}{Theorem}

\newtheorem{rem}[thm]{Remark}

\usepackage{babel}

\begin{document}

\title{prova}

\author{prova}

\begin{abstract}

Bla bla bla bla 

\section{section1}

\end{abstract}

\maketitle

\begin{thm}

Here is the theorem:

AAA

BBB

\begin{thm}

\label{Thm1}This is Theorem 1. \end{thm}

\begin{rem}

This is the Remark. 

\end{rem}

\end{thm}

\end{document}
%%%


Re: Import of LaTex file

2009-06-02 Thread Luca Brandolini
Il giorno sab, 30/05/2009 alle 10.09 -0400, rgheck ha scritto:

 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
 
 
  
 

 
 


Dear Richard,
   I tried to follow your suggestion. I found the amsart.layout and I
inserted the line
Input theorems-ams.module and I imported the file
%%
\documentclass{amsart}%
\usepackage{amsmath}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}
\newtheorem{rem}[thm]{Remark}

\begin{document}

\title{prova}
\author{prova}
\maketitle

\begin{abstract}
Bla bla bla bla
\end{abstract}



\section{section1}

Here is the theorem:

AAA

BBB

\begin{thm}
\label{Thm1}This is Theorem 1.
\end{thm}


\begin{rem}
This is the Remark.
\end{rem}

\end{document}


The result is almost correct. However the whole document is included in
a \begin{thm} \end{thm} structure.
This is what is shown in the LaTex preview windows after the import.

Best regards
Luca


55


% Anteprima del sorgente

%% LyX 1.6.2 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{amsart}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{amsthm}

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section} %% Comment out for
sequentially-numbered

\numberwithin{figure}{section} %% Comment out for sequentially-numbered

\theoremstyle{plain}

\theoremstyle{plain}

\newtheorem{thm}{Theorem}

\theoremstyle{remark}

\newtheorem{rem}[thm]{Remark}

%% User specified LaTeX commands.

%

\usepackage{amsthm}

\newtheorem{thm}{Theorem}

\newtheorem{rem}[thm]{Remark}

\usepackage{babel}

\begin{document}

\title{prova}

\author{prova}

\begin{abstract}

Bla bla bla bla 

\section{section1}

\end{abstract}

\maketitle

\begin{thm}

Here is the theorem:

AAA

BBB

\begin{thm}

\label{Thm1}This is Theorem 1. \end{thm}

\begin{rem}

This is the Remark. 

\end{rem}

\end{thm}

\end{document}
%%%


Re: Import of LaTex file

2009-06-02 Thread Luca Brandolini
Il giorno sab, 30/05/2009 alle 10.09 -0400, rgheck ha scritto:

> 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
> >>
> >>
> >> 
> >
> >   
> 
> 


Dear Richard,
   I tried to follow your suggestion. I found the amsart.layout and I
inserted the line
Input theorems-ams.module and I imported the file
%%
\documentclass{amsart}%
\usepackage{amsmath}
\usepackage{amsthm}
\newtheorem{thm}{Theorem}
\newtheorem{rem}[thm]{Remark}

\begin{document}

\title{prova}
\author{prova}
\maketitle

\begin{abstract}
Bla bla bla bla
\end{abstract}



\section{section1}

Here is the theorem:

AAA

BBB

\begin{thm}
\label{Thm1}This is Theorem 1.
\end{thm}


\begin{rem}
This is the Remark.
\end{rem}

\end{document}


The result is almost correct. However the whole document is included in
a \begin{thm} \end{thm} structure.
This is what is shown in the LaTex preview windows after the import.

Best regards
Luca


55


% Anteprima del sorgente

%% LyX 1.6.2 created this file. For more info, see http://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[english]{amsart}

\usepackage[T1]{fontenc}

\usepackage[latin9]{inputenc}

\usepackage{amsthm}

%% Textclass specific LaTeX commands.

\numberwithin{equation}{section} %% Comment out for
sequentially-numbered

\numberwithin{figure}{section} %% Comment out for sequentially-numbered

\theoremstyle{plain}

\theoremstyle{plain}

\newtheorem{thm}{Theorem}

\theoremstyle{remark}

\newtheorem{rem}[thm]{Remark}

%% User specified LaTeX commands.

%

\usepackage{amsthm}

\newtheorem{thm}{Theorem}

\newtheorem{rem}[thm]{Remark}

\usepackage{babel}

\begin{document}

\title{prova}

\author{prova}

\begin{abstract}

Bla bla bla bla 

\section{section1}

\end{abstract}

\maketitle

\begin{thm}

Here is the theorem:

AAA

BBB

\begin{thm}

\label{Thm1}This is Theorem 1. \end{thm}

\begin{rem}

This is the Remark. 

\end{rem}

\end{thm}

\end{document}
%%%


Import of LaTex file

2009-05-30 Thread Luca Brandolini
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



Re: Import of LaTex file

2009-05-30 Thread Vincent van Ravesteijn

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



Re: Import of LaTex file

2009-05-30 Thread Luca Brandolini
Thank you Vincent. 
Is there any workaround for such a problem?

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
 
 


Re: Import of LaTex file

2009-05-30 Thread rgheck

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





  




Import of LaTex file

2009-05-30 Thread Luca Brandolini
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



Re: Import of LaTex file

2009-05-30 Thread Vincent van Ravesteijn

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



Re: Import of LaTex file

2009-05-30 Thread Luca Brandolini
Thank you Vincent. 
Is there any workaround for such a problem?

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
 
 


Re: Import of LaTex file

2009-05-30 Thread rgheck

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





  




Import of LaTex file

2009-05-30 Thread Luca Brandolini
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



Re: Import of LaTex file

2009-05-30 Thread Vincent van Ravesteijn

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



Re: Import of LaTex file

2009-05-30 Thread Luca Brandolini
Thank you Vincent. 
Is there any workaround for such a problem?

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
> 
> 


Re: Import of LaTex file

2009-05-30 Thread rgheck

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