首页 > 解决方案 > 如何删除 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”。

先感谢您!

标签: 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}

推荐阅读