Uwe,

That works, thanks!

Gerard

On Mar 24, 2005, at 1:53 PM, Uwe Stöhr wrote:

Gerard A. Ateshian wrote:

If I export my document to LaTeX, I can see that the problem occurs because the amsbook class includes the command \numberwithin{equation}{section} in its preamble, which precedes LyX's preamble in which I have typed \numberwithin{equation}{chapter}. Within LaTeX, all I have to do is comment out \numberwithin{equation}{section} and everything works fine. However, within LyX, I don't have access to this command, so what do I do to disable it?

You can comment out textclass preamble lines in the .layout file.
Close LyX, go to the folder lyx/share/lyx/layouts and open the file amsbook.layout with an editor. Now got to the preamble section and comment out the preable line with a percent sign, save the file and restart LyX. As an alternative you can use the attached .layout file.
This way is indeed not very comfortable, but I guess that there are good reasons for this textclass preamble.


regards Uwe



Reply via email to