# Re: Contents of Preamble...EndPreamble in Layout not being output to tex file

rgheck wrote:


This is a bug of sorts in the 1.5 layout system, I expect. The problem is that the preamble later gets redefined and your bit gets over-written. Try adding this at the end:
Style Theorem
Preamble
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}
EndPreamble
End
I think that'll work.




Thanks, but unfortunately it doesn't work. I added this snippet to the end of the amsreport layout file, but the error persists.


One thing I noticed in the output tex file was that the very first lines are like the following:

\documentclass[english]{report}
...
...
...
\usepackage{amssymb}

The corresponding lines in the .lyx file are:

\lyxformat 276
\begin_document