Is there a way to end the \appendix
?
Specifically, I have a file like this:
\documentclass{article}
\begin{document}
\section{one}
Should be section1
\section{two}
Should be section 2
\appendix
\section{a1}
Should be A
\section{b}
should be B
\section{three}
Should be 3
\end{document}
and I can't seem to get the appendix to "end" in any way. I'd rather not reset the section counter to a specific number manually because I might go back and add several sections above the appendix later.
Best Answer
The
\appendix
command is a one way switch. Inarticle.cls
it does:you cannot simply revert this because the section numbering is lost.
You can create a counter
savesection
to store the section number, then create an\unappendix
command that reverts the changes done by\appendix
.Additionally I added a
apdxsection
counter to save the appendix numbering, so you can switch back and forth from normal sections to appendices.