Text FormattingAppendix equation numbering repetitive and not in order

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Soo
Posts: 2
Joined: Mon Jun 17, 2024 7:39 pm

Appendix equation numbering repetitive and not in order

Post by Soo »

Hi.
I have got a frustrating problem with equation numbering in the appendix of my overleaf file. I have spent a lot of time to resolve it without results. The equations numbering in the main text is okay; however, in the appendix, they have strange patterns like (17), (18),(18),(19),(20),(19).... repetitive and not in the correct order. When I set the numbering in the appendix to count from 1 and start with the letter A, then it will become A.-1, A.-2, A.-2, A.-3, A.-4, A.-3,... . The same repetitive, not-in-order pattern plus an unwanted dash line.
I appreciate your help.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Appendix equation numbering repetitive and not in order

Post by Stefan Kottwitz »

Hi Soo,

welcome to the forum!

Can you post code that shows the issue?

Stefan
LaTeX.org admin
Soo
Posts: 2
Joined: Mon Jun 17, 2024 7:39 pm

Appendix equation numbering repetitive and not in order

Post by Soo »

Hi Stefan,
Thank you!

I do not use specific code for the equation numbering. I use the "article'' class for my Overleaf document and have tried "paper", and "report" as well, with no help. Equation numbering in the main text goes to (16) with no problem. In the transition from the main text to the Appendix, I use
"\appendix
\section*{Appendix A}
"
And then I faced the first weird pattern in my previous message for the equations in the appendix. When I use
"\appendix
\renewcommand{\theequation}{A.\arabic{equation}}
\setcounter{equation}{0}
\section*{Appendix A}
"
then, I get the second weird pattern.
I would like to have (A.1), (A.2), (A.3), ... for the equation in the appendix. I thought there might be a conflict with some usepackages, so I tried commenting out those unnecessary for the compilation. This also did not help. this is the list of all usepackages I have used:
"
\usepackage{natbib}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{xcolor
\usepackage{xcolor}
\usepackage{float}
\usepackage{graphics}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{cite}
\usepackage{cases}
\usepackage{multirow}
\usepackage{subcaption}
\usepackage{amsmath}
"
Thank you,
Soo
Post Reply