[Tex/LaTex] table numbering style

appendicesfloatsnumbering

The tables in my document are labeled 1…N; I like this format. I also have a table which belongs to the appendix of my paper that I would labeled A1 or A.1 . Is there a way to change the numbering style for just that one specific table? I use LyX for my editor.

Best Answer

Use \numberwithin from the amsmath package. MWE:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

\section{Normal}
\begin{table}   
\caption{Normal Table}
\end{table}

\appendix
\numberwithin{table}{section}

\section{First Appendix}
\begin{table}
\caption{Table in Appendix}
\end{table}

\end{document}

EDIT: Having seen This note on numberwithin outside the preamble (and this) here's an alternative version:

\documentclass{article}
\usepackage{chngcntr}

\begin{document}

\section{Normal}
\begin{table}   
\caption{Normal Table}
\end{table}

\appendix
\counterwithin{table}{section}

\section{First Appendix}
\begin{table}
\caption{Table in Appendix}
\end{table}

\end{document}