Hi, Thanks for your reply. This does not fix it. Comparing the LaTeX source for a document exported using LyX 1.5 and LyX 1.6 it seems that in LyX 1.6 there is missing the following line: \newtheorem{thm}{Theorem}[section]
Below I attach the LaTeX code for a simple file containing one theorem. The first one is exported by LyX 1.5 %% LyX 1.5.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[oneside]{amsart} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \numberwithin{equation}{section} %% Comment out for sequentially-numbered \numberwithin{figure}{section} %% Comment out for sequentially-numbered \theoremstyle{plain} \newtheorem{thm}{Theorem}[section] \makeatother \begin{document} \begin{thm} Test \end{thm} \end{document} The next one is exported by LyX 1.6: %% LyX 1.6.0svn created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[oneside,english]{amsart} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{amsthm} \usepackage{babel} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \theoremstyle{plain} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. %\usepackage{amsthm} \makeatother \begin{document} \begin{thm} Test \end{thm} \end{document} Thank you, Marius On Tue, Mar 11, 2008 at 12:06 PM, rgheck <[EMAIL PROTECTED]> wrote: > Marius Ionescu wrote: > > Hello, > > > > I installed LyX 1.6 from svn yesterday (I am trying to update the > Romanian > > localization). Whenever I open one of the documents I wrote using LyX > > 1.5and try to vizualize them I receive the following error: > > "LaTeX Error: Environment thm undefined" > > > > I receive the same error if I start a new document, select the AMS > class, > > add the "Theorems (AMS)" module, write a theorem or proposition, and try > to > > view the document. I do not get this error message if I select the > "Theorem" > > module instead. I do need, however, to use the "Theorems (AMS)" module > for > > my work. > > > > > I'll look at this shortly. In the meantime, try adding > "\usepackage{amsthm}" to the preamble. > > rh > >