How do I number equations by section in LaTeX?

  • Topic: LaTeX 
  • Thread starter Hootenanny
  • Start date
  • Tags Tags
    Latex
3 replies · 3K views · last reply
Staff Emeritus
Science Advisor
Gold Member
Messages
9,621
Reaction score
9
I'm not really sure what to put this thread since the old latex thread has been closed down, so feel free to move it to wherever is appropriate Eva et al.

I'm writing a report in latex and I need my equations to be numbered according to which section they are in. For example the first equation in section one should appear numbered as (1.1), the second (1.2) etc, the first number corresponding to the section. Does anyone know how to do this?
 
If you add the line \numberwithin{equation}{section} to the preamble, that should work!
 
cristo said:
If you add the line \numberwithin{equation}{section} to the preamble, that should work!
My friend, you are a genius :cool: thanks!
 
Hootenanny said:
My friend, you are a genius :cool: thanks!
:blushing: You're welcome!