LaTeX Creating Numbered Equations in LaTeX Reports

  • Thread starter Thread starter Hootenanny
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
To number equations in LaTeX according to their respective sections, the command \numberwithin{equation}{section} should be added to the preamble of the document. This will format the first equation in section one as (1.1), the second as (1.2), and so on. The solution was confirmed by multiple users in the discussion, highlighting its effectiveness. The exchange included expressions of appreciation for the helpful advice. This method is essential for organizing equations in structured reports.
Hootenanny
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?
 
Physics news on Phys.org
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!
 

Similar threads

Replies
11
Views
5K
Replies
5
Views
5K
Replies
3
Views
2K
Replies
4
Views
3K
Replies
1
Views
4K
Replies
2
Views
7K
Back
Top