I'm writing a thesis which is an aggregate of separate articles. I have the source code for the articles and I'm using \include
to include them in the main document of the thesis. So in my main.tex (thesis document), I have
\include{article1}
some pages in between the two articles
\include{article2}
The problem that I'm getting is with the Appendix sections. In article 1, I have at the end:
\appendix
\numberwithin{equation}{section}
\section{Coefficients}\label{sec:Coeffic}
\subsection{Good coefficients}
then comes the first line of appendix
This gives in article 1 (when compiled separately with the article class):
A. Coefficients
A.1. Good coefficients
and equation numbers in the Appendix A as (A.1), (A.2)
which is ok and what is expected.
When I put article 1 within main.tex, I use \include
command. Also, I removed the document class for article 1 and put \chapter
instead.
But when I compile main.tex (the thesis document), I get the appendix sections as:
.1 Coefficients
.1.1 Good coefficients
and the equation numbers in the appendix A as (.1.1), (.1.2) etc
My article 1 is treated as a chapter in the main thesis document (main.tex) and the title and section numbers, equation numbers are preceded by A in main.tex. This is what I want.
Maybe it would be ok to get the appendix in my main.tex as
A.A. Coefficients
A.A.1 Good coefficients
and the equation numbers in the Appendix as (A.A.1), (A.A.2) etc
to denote that it refers to appendix A of paper A. First A is for the first article and second A is for first appendix. How to get this?
\appendix
typesets the appendix title with\section*
so it doesn't get a number. Maybe using\begin{appendix}
and `\end{appendix} would work? otherwise, you'll have to redfine the section command yourself.