# Equation number format in Appendix

\documentclass[preprint,12pt,sort&compress]{elsarticle}

\begin{document}

\section{Introduction}
bla bla bla...

\section{Formulation}

\appendix
\section{}
The advection eq is...
$$u_t+au_x&=&0,$$

\end{document}


In Section formulation, Equation number is 1, and in Appendix Equation number is A.1. I want to continue the equation number in Appendix i.e numbers must be 2. I also tried

\begin{appendices}
...
\end{appendices}


then equation numbering is okay (i.e 2) but the main heading is Appendices instead of Appendix. I want main section as a title 'Appendix' and equation number must be continue from previous section.

your cooperation will be appreciated.

Thank you in advance.

Bibigul

• Welcome to TeX SX! There must be something else in your real code, because the posted code doesn't reproduce your problem. – Bernard Oct 31 '17 at 14:23
• @Bernard Thanx for pointing out my mistake. -:). – Bibigul Oct 31 '17 at 14:51
• That's how elsarticle wants; if you want to submit a paper, do like they want. If it's not for a submission to Elsevier, don't use elsarticle. – egreg Oct 31 '17 at 18:45
• @egreg: Thank you for the correction, actually i did not know that! i was just following the pattern of a published paper in elsarticle. -:). It is for a submission to elsarticle. Now i will go through the pattern what elsarticle. -:) – Bibigul Nov 1 '17 at 9:42

## 2 Answers

With the appendices environment:

\documentclass[preprint,12pt,sort&compress]{elsarticle}
\usepackage[page]{appendix}
\renewcommand{\appendixpagename}{Appendix}
\begin{document}

\section{Introduction}
bla bla bla...

$$u_t+au_x=0,$$
\section{Formulation}

\begin{appendices}
\section{Lalala}
The advection eq is...
$$u_t+au_x=0,$$

\end{appendices}


\end{document}

• still same output. – Bibigul Oct 31 '17 at 14:54
• @Bibigul: Not at all: see my updated answer. – Bernard Oct 31 '17 at 21:45
• Thank you now its working. I haven't use \usepackage[page]{appendix} before. – Bibigul Nov 1 '17 at 9:26

The easiest solution to getting consecutive equation numbering is to include the following two instructions in the preamble:

\usepackage{chngcntr}
\counterwithout{equation}{chapter}


A full MWE:

\documentclass[12pt,a4paper]{report}
\usepackage{chngcntr}
\counterwithout{equation}{chapter}

\pagestyle{headings}
\usepackage{lipsum} % for filler text

\begin{document}

\chapter{Main material}
\section{Introduction}
$$1+1=2$$

\section{Formulation}
$$2+2=4$$

\lipsum[1-20]  % 5 pages of filler text

\appendix

\chapter{Supplemental material}
\section{Hello}
$$3+3=6$$

\lipsum[21-40]  % 5 pages of filler text
\end{document}

• Chapters with elsarticle? – egreg Oct 31 '17 at 18:42
• @egreg - The initial version of the OP's posting used the report document class, and that's the information I used for my answer. I don't know when (and by whom) the document class was changed to elsarticle. – Mico Oct 31 '17 at 18:46