如何删除 LaTex 中图形的自动编号?

问题描述

我希望我的图的标题是“图 A”。有没有办法去除数字的自动编号?

\documentclass[jou]{apa7}
\usepackage{graphicx}
\begin{document}

\begin{figure}
\renewcommand{\figurename}{figure A}
\centering
 \caption{Title}
\includegraphics[width=0.5\textwidth]{test.png}
\end{figure}

\end{document}

对于上面的代码标题是“图 A 1”。

先谢谢你!

解决方法

两个快速技巧,您可以暂时删除数字,或者您可以使用乳胶进行大写字母编号:

\documentclass[jou]{apa7}
\usepackage{graphicx}

\begin{document}

\begin{figure}
\renewcommand{\figurename}{Figure A}
\renewcommand{\thefigure}{}
\centering
\caption{Title}
\includegraphics[width=0.5\textwidth]{example-image-duck}
\end{figure}

\begin{figure}
\renewcommand{\thefigure}{\Alph{figure}}
\centering
\caption{Title}
\includegraphics[width=0.5\textwidth]{example-image-duck}
\end{figure}

\end{document}