Math & Scienceequation math environment numberings

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
alphaace
Posts: 5
Joined: Thu Jul 16, 2009 6:11 pm

equation math environment numberings

Post by alphaace »

Hi,

When using \equation environment, it starts simply counting my formulas. How would I do it so that it attaches the section number first?

Such as, if I am in section 5.1, the formulas will be counted as

5.1.1
5.1.2
5.1.3
...
5.1.10
5.1.11
...

Thank you for your help!

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

equation math environment numberings

Post by gmedina »

Hi,

you can use the \numberwithin command provided by the amsmath package. Take a look at the following simple example:

Code: Select all

\documentclass{report}
\usepackage{amsmath}

\numberwithin{equation}{section}


\begin{document}

\chapter{Test chapter}
\section{Test section}
\begin{equation}
  a=b
\end{equation}

\end{document} 
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply