Creating Numbered Equations in LaTeX Reports

  • Context: LaTeX 
  • Thread starter Thread starter Hootenanny
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary

Discussion Overview

The discussion focuses on how to number equations in LaTeX reports according to their respective sections, specifically aiming for a format where the first equation in section one is numbered (1.1), the second (1.2), and so on.

Discussion Character

  • Technical explanation

Main Points Raised

  • One participant expresses uncertainty about where to post the question regarding numbered equations in LaTeX.
  • Another participant suggests adding the line \numberwithin{equation}{section} to the preamble as a solution for the numbering issue.
  • A third participant echoes the suggestion and expresses appreciation for the advice given.

Areas of Agreement / Disagreement

There appears to be agreement on the suggested solution for numbering equations, but the initial uncertainty about the appropriate forum for the question remains unaddressed.

Contextual Notes

The discussion does not explore potential limitations or dependencies related to the LaTeX setup or other configurations that might affect the implementation of the suggested solution.

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 12 ·
Replies
12
Views
4K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 11 ·
Replies
11
Views
6K
  • · Replies 5 ·
Replies
5
Views
7K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 2 ·
Replies
2
Views
8K