我希望我的图的标题是“图 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”。
提前谢谢您!
最佳答案
两个快速技巧,您可以暂时删除数字,也可以使用 latex 用大写字母进行编号:
\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}
关于latex - 如何取消LaTex中图形的自动编号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67508313/