我想将附录表格编号为 A1、A2 等。为此,我使用了以下答案这个问题并尝试写作
\setcounter{table}{0}
\renewcommand{\thetable}{A\arabic{table}}
在我写之前\begin{appendices}
。然而,这似乎被完全忽略了,并且没有改变编号。
下面是我的 Latex 代码的缩短版(由于我不确定是什么导致了这个问题,所以我在包含方面犯了错误):
\documentclass[12pt]{article}
\usepackage{amssymb, hyperref, amsmath,amsfonts, bm, eurosym,geometry,ulem,graphicx,caption,mathtools,natbib, xcolor,setspace,comment,footmisc,caption,pdflscape,subfigure,array, parskip, bbm, csquotes, multirow, booktabs,caption}
\urlstyle{same}
\makeatletter
\renewcommand\hyper@natlinkbreak[2]{#1}
\makeatother
\usepackage[flushleft]{threeparttable}
\usepackage[capposition=top]{floatrow}
\usepackage[capposition=top]{floatrow}
\usepackage[toc,page]{appendix}
\graphicspath{ {./images/} }
\normalem
\onehalfspacing
\interfootnotelinepenalty=10000
\newcommand{\red}[1]{{\color{red} #1}}
\newcommand{\blue}[1]{{\color{blue} #1}}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\arraybackslash\hspace{0pt}}m{#1}}
\geometry{left=1.0in,right=1.0in,top=1.0in,bottom=1.0in}
\newenvironment{myquote}%
{\list{}{\leftmargin=0.3in\rightmargin=0in}\item[]}%
{\endlist}
\begin{document}
Here is some random text.
Here is a figure.
\begin{figure}[h]
\centering
\includegraphics[scale=0.5]{graph_a}
\caption{An example graph}
\label{fig:x cubed graph}
\end{figure}
\clearpage
\setlength{\bibhang}{0pt}
\bibliographystyle{apalike}
\bibliography{bibliography.bib}
\newpage
\setcounter{table}{0}
\renewcommand{\thetable}{A\arabic{table}}
\begin{appendices}
\section{Another figure...}
\begin{figure}[h]
\centering
\includegraphics[scale=0.5]{graph_a}
\caption{An example graph}
\label{fig:x cubed graph}
\end{figure}
\end{appendices}
\end{document}