i have a question regarding equation number formatting: My document has chapters and sections. I have an equation within a section using the display mode. My equation number has a double dot which i want to change to a single dot. To make it more clear i will give an example how it currently looks like: 2. Chaptername
2.1 Sectionname
equation (2..1)

So i want to change it that it looks like (2.1). I suspect it has something to do with me changing my numbering format for my chapters and sections since i used specific commands to get dots into the chapter and section numbering:

\author{James Oliver Reppin}

    \|x-x_{k}\| =  \min_{j=1,...,n} \|x-x_{j}\| 

How do i change it so that i only get the format {chapternumber}{.}{sectionnumber} or as in my example (2.1) ?

  • 1
    Please change your example into simething that shows your problem. And no never ever add . at the end of \the... macros, it always comes back to bite you. If needed it should be added where the \the... macro is used, not in the definition it self.
    – daleif
    Commented Sep 4, 2020 at 11:31
  • Add \renewcommand{\theequation}{\arabic{section}.\arabic{equation}}.
    – user31034
    Commented Sep 4, 2020 at 11:36
  • @ferahfeza i tried your suggestions and it does yield the right format, however my chapter (where the equation is) is my second chapter and the equation number starts at 1
    – James
    Commented Sep 4, 2020 at 11:40
  • 1
    ok i think i got it, i just changed the command to: \renewcommand{\theequation}{\arabic{chapter}.\arabic{equation}}
    – James
    Commented Sep 4, 2020 at 11:43
  • I'm not sure that you want \ref{somelabel} to print “2.” if somelabel refers to the second chapter, do you?
    – egreg
    Commented Sep 4, 2020 at 12:08

1 Answer 1


with the help of ferahfeza i got the solution: using the command:


yields the result i wanted.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .