LyXEquation numbering

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
bruce_c
Posts: 2
Joined: Mon Jul 12, 2010 11:12 am

Equation numbering

Post by bruce_c »

Hello,

I'm currently writing my master's thesis with Lyx and I have a question :

Is it possible to number the equations without the number of the section before ? For now, when I insert a new numbered formula, it is numbered like that : (4.13), meaning the 13th equation in the fourth section. But I want it in the following format : (13), meaning the 13th equation of all the document.

For info, I use Lyx 1.6.6.1 and the AMSmath package.

Thanks in advance for your help

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Equation numbering

Post by Stefan Kottwitz »

Hi bruce_c,

welcome to the board!
To achieve this, you could redefine \thesection, like

Code: Select all

\renewcommand\thesection{\arabic{section}}
If you further wish to number the equations continuously you could use the chngcntr package. Otherwise the number would be reset when a new section is started:

Code: Select all

\usepackage{chngcntr}
\counterwithout{equation}{section}
chngcntr makes the reedefinition above automatically.
Insert these lines in the document preamble.

Stefan
LaTeX.org admin
bruce_c
Posts: 2
Joined: Mon Jul 12, 2010 11:12 am

Re: Equation numbering

Post by bruce_c »

Hi Stefan_K,

Thanks for your answer, it's working like a charm :D
Post Reply