I have a dissertation with three chapters, and each chapter has the table after main text and appendix. Each appendix has also table. The format is as follows:
\documentclass[12pt,a4paper,twoside]{report}
\begin{document}
\include{chapter1}
\include{chapter2}
\include{chapter3}
\end{document}
Following is the reproducible example.:
\documentclass[12pt,a4paper,twoside]{report}
\usepackage[top=2.54 cm, bottom=2.54 cm, left=2.54 cm, right=2.54 cm]{geometry}
\usepackage[hidelinks]{hyperref} % put before apacite
\usepackage[titletoc,title]{appendix}
\usepackage{tabularx}
\usepackage{blindtext}
\begin{document}
% chapter 1
\chapter{chapter1}\label{chp:This is chapter1}
\section{Introduction}
This paper examines
\section{Results}
\par Table \ref{tab:tab1} also indicates. But Appendix Table \ref{tab:apptab1}
\par Table \ref{tab:tab2} also indicates But Appendix Table \ref{tab:apptab2}
\section{\label{sec_conc} Conclusion}
% Tables
\begin{table}[!h]
\centering
\caption{\textbf{table 1}}
\begin{tabular}{rrrrr}
\hline
& \multicolumn{2}{c}{\textbf{1989}} & \multicolumn{2}{c}{\textbf{1992}} \\
\hline
& income1 & expenses1 & income2 & expenses2 \\
\hline
\end{tabular}%
\label{tab:tab1}%
\end{table}%
\begin{table}[!h]
\centering
\caption{\textbf{table 1}}
\begin{tabular}{rrrrr}
\hline
& \multicolumn{2}{c}{\textbf{1989}} & \multicolumn{2}{c}{\textbf{1992}} \\
\hline
& income1 & expenses1 & income2 & expenses2 \\
\hline
\end{tabular}%
\label{tab:tab2}%
\end{table}%
%Appendix
\clearpage
\newpage
\section*{Appendix A}
%\begin{appendices}
% Appendix 1A
\begin{subappendices}
\section{\label{sec_appa}Increase in unemployment }
%renumber appendix tables
\setcounter{table}{0}
\renewcommand{\thetable}{1A\arabic{table}}
\begin{table}[!h]
\centering
\caption{\textbf{table 1}}
\begin{tabular}{rrrrr}
\hline
& \multicolumn{2}{c}{\textbf{1989}} & \multicolumn{2}{c}{\textbf{1992}} \\
\hline
& income1 & expenses1 & income2 & expenses2 \\
\hline
\end{tabular}%
\label{tab:apptab1}%
\end{table}%
% Appendix 1B
\section{\label{sec_appb}Increase in unemployment }
%renumber appendix tables
\setcounter{table}{0}
\renewcommand{\thetable}{1B\arabic{table}}
\begin{table}[!h]
\centering
\caption{\textbf{table 1}}
\begin{tabular}{rrrrr}
\hline
& \multicolumn{2}{c}{\textbf{1989}} & \multicolumn{2}{c}{\textbf{1992}} \\
\hline
& income1 & expenses1 & income2 & expenses2 \\
\hline
\end{tabular}%
\label{tab:apptab2}%
\end{table}%
\end{subappendices}
% chapter 2
\chapter{chapter2}\label{chp:this is chapter2}
\section{Introduction}
This paper examines
\section{Results}
\par Table \ref{tab:tab1} also indicates. But Appendix Table \ref{tab:apptab1}
\par Table \ref{tab:tab2} also indicates But Appendix Table \ref{tab:apptab2}
\section{\label{sec_conc} Conclusion}
\begin{table}[!h]
\centering
\caption{\textbf{table 1}}
\begin{tabular}{rrrrr}
\hline
& \multicolumn{2}{c}{\textbf{1989}} & \multicolumn{2}{c}{\textbf{1992}} \\
\hline
& income1 & expenses1 & income2 & expenses2 \\
\hline
\end{tabular}%
\label{tab:tab1}%
\end{table}%
\begin{table}[!h]
\centering
\caption{\textbf{table 1}}
\begin{tabular}{rrrrr}
\hline
& \multicolumn{2}{c}{\textbf{1989}} & \multicolumn{2}{c}{\textbf{1992}} \\
\hline
& income1 & expenses1 & income2 & expenses2 \\
\hline
\end{tabular}%
\label{tab:tab2}%
\end{table}%
%Appendix
\clearpage
\newpage
\section*{Appendix A}
%\begin{appendices}
\begin{subappendices}
% Appendix 2A
\section{\label{sec_appa}Increase in unemployment }
%renumber appendix tables
\setcounter{table}{0}
\renewcommand{\thetable}{2A\arabic{table}}
%appendix tables
\begin{table}[!h]
\centering
\caption{\textbf{table 1}}
\begin{tabular}{rrrrr}
\hline
& \multicolumn{2}{c}{\textbf{1989}} & \multicolumn{2}{c}{\textbf{1992}} \\
\hline
& income1 & expenses1 & income2 & expenses2 \\
\hline
\end{tabular}%
\label{tab:apptab1}%
\end{table}%
% Appendix 2B
\section{\label{sec_appb}Increase in unemployment}
%renumber appendix tables
\setcounter{table}{0}
\renewcommand{\thetable}{2B\arabic{table}}
%appendix tables
\begin{table}[!h]
\centering
\caption{\textbf{table 1}}
\begin{tabular}{rrrrr}
\hline
& \multicolumn{2}{c}{\textbf{1989}} & \multicolumn{2}{c}{\textbf{1992}} \\
\hline
& income1 & expenses1 & income2 & expenses2 \\
\hline
\end{tabular}%
\label{tab:apptab2}%
\end{table}%
\end{subappendices}
\end{document}
There is an error when referencing to the table.
Table 2.3 also indicates. But Appendix Table 2A1
; it should beTable 1.1 also indicates. But Appendix Table 1A1
for chapter 1, andTable 2.1 also indicates. But Appendix Table 2A1
should be chapter 2. – Metrics Jan 23 '16 at 6:25\label
in two different locations. LaTeX mentions this by giving the Warning: There were multiply-defined labels.. – Werner Jan 23 '16 at 6:45