I want to make Appendix A continue by Appendix B. This is the command I used:
\appendix
\include{appendixA} \label{appendixprocedure}
\newpage{\pagestyle{empty}\cleardoublepage}
\include{appendixB} \label{appendixlinearization}
\newpage{\pagestyle{empty}\cleardoublepage}
But I got both in the naming Appendix A.
Best Answer
The only way I can reproduce this problem is by including the
\appendix
command inside yourappendixA.tex
andappendixB.tex
. Here's an example that replicates this (even though it's anarticle
without\include
s, the principle remains the same):If this is what you're doing, you're doing it wrong.
\appendix
resets appendix-specific counters (which may depend on your document class). Here's what\appendix
does inbook
andreport
(comments added):article
does something similar, only one level down:It is obvious that
\appendix
reset the main appendix counters, so including it as part of every appendix unit is incorrect. Only use it once to demarcate the end of your regular chapters and the start of the appendices.In conclusion, remove
\appendix
from yourappendixA.tex
andappendixB.tex
.Some things to note in your code:
Your
\label
s might not reference the correct location within your document, as it is only called at the end of every appendix.\newpage
does not take an argument, so don't use\newpage{..}
.If you want a blank (no header/footer) page between your appendices, consider reading Really blank pages between chapters or creating a page break command.