Kindly help me. I have three appendixes in my research article. I want to cross-ref in my document. However, I am not able to do so. I am sorry that i could not post the question with clarity. Thus, i am posting once again the minimum working file which i hope is sufficient. It would be better if you can help me in cross-referring to three appendices: Appendix I, Appendix II, and Appendix III. (Kindly note that i want appendix to be named liked this)
So, the minimum working file is:
\documentclass[11pt]{article}
\usepackage[paper=a4paper,dvips,top=2cm,left=2cm,right=2cm,foot=1cm,bottom=2cm]{geometry}
\usepackage{graphicx}
\usepackage{hyperref}
\usepackage{appendix}
\begin{document}
\tableofcontents %run twice to get the table of contents.
\listoffigures
\listoftables
\maketitle
\section{Introduction}
XYZ.........ABC
\section{Lit Review}
XYZ.........ABC
\section{Data}
See Appendix \ref{app:1} for results of unit root test. For detailed discussion of construction of variable, see Appendix \ref{app:2}. See Figure 1 in the Appendix \ref{app:3}.
\section{Results and Interpretation}
\newpage
\appendix
\addappheadtotoc
\begin{subappendices}
\begin{center}
\section*{Appendix I} \label{app:1}
\end{center}
ABCDEF........XYZ
\begin{center}
\section*{Appendix II} \label{app:2}
\end{center}
This Appendix is intended to describe the sources of data and construction of indices and variables used in the econometric analysis.
\begin{center}
\section*{Appendix III} \label{app:3}
\end{center}
\begin{figure}[h]
\centering
\caption{Net Procurement and Foodgrains Inflation}
\includegraphics[width=12cm, height=8cm]{np_graph.eps}
\label{fig:1}
\end{figure}
\end{subappendices}
\end{document}
===================== When i run this code, i am able to cross-ref to respective appendices. The problem is that in the text the appendix numbers are coming wrong. For example, if i want to show See Appendix I for results of unit root test, the final output is showing "See Appendix '8' for results of unit root test." Why 8, i don't know. Kindly help.


\documentclass{...}and ending with\end{document}... not\begin{document}twice. – Fran Aug 08 '16 at 15:11subappendicesI would assume also that\subsectionis the relevant structure level there (sincearticleor something similar) seems to be the class. As such,\subsectionprovides the correct counter stepping and a\labelwill work. Of course,\textbf{Appendix II}does not provide the correct information for\label– Aug 08 '16 at 15:43\refstepcountercommand in\section*providing the correct label! Also: Whysubappendiceswhen using\section? – Aug 08 '16 at 21:09