I'm trying to refer to some tables in the appendix of my paper, the following command have been used to number the tables as A1, A2 etc.:
\setcounter{table}{0}
\renewcommand{\thetable}{A\arabic{table}}
but when I use the \ref command for cross reference, It only shows table A, not Table A1 as I wanted, will someone help figure out why the reference goes wrong?
I'm using the IEEETran class, and whit the following code:
\appendix
\setcounter{table}{0}
\renewcommand{\thetable}{A\arabic{table}}
some text here and refer to Table \ref{tab:app-flexible}.
\begin{table}[!htbp]
\centering
\begin{threeparttable}
\label{tab:app-flexible}
\caption{Parameters balabala}
\begin{tabular}{cccc}
\toprule
table contents...
\bottomrule
\end{tabular}
\end{threeparttable}
\end{table}
\documentclass{...}and ending with\end{document}. – Jun 08 '14 at 07:40\labelafter the\captioncommand like\caption{Parameters balabala}\label{tab:app-flexible}– Jun 08 '14 at 12:24