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

```Geevarghese Philip wrote:
```
`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. [snip]

```
```Well, I'm not sure what the problem is. The attached files work for me.

rh

```
```#% Do not delete the line below; configure depends on this
#  \DeclareLaTeXClass[report]{amsreport}

Format 4

Input stdclass.inc
Input amsdefs.inc
Input numreport.inc

Style Bibliography
TopSep                4
LabelString           "Bibliography"
LabelFont
Series              Bold
Size                Huge
EndFont
End

Style Theorem
Preamble
\usepackage{amsthm}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}
EndPreamble
End

```

amsreport.lyx
Description: application/lyx