I am having trouble with equation numbering using the amsbook document class (LyX 1.3.5 on Mac OS X). The default equation numbering scheme for this class is \numberwithin{equation}{section}, however I would like to use \numberwithin{equation}{chapter}. I put this command in the preamble but the equation numbering gets messed up. What happens is that equation numbers get reset at the beginning of each new section. For example, in Section 2.1, equation numbers start with (2.1) and increase as expected. However, starting with Section 2.2, equation numbers get reset to (2.1) etc.

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?

Thanks,
Gerard Ateshian



Reply via email to