简体   繁体   English

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

[英]How to remove automatic numbering of figure in LaTex?

I would like the caption of my figure to be "Figure A".我希望我的图的标题是“图 A”。 Is there a way to remove the automatic numbering of the figures?有没有办法删除数字的自动编号?

\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}

With the code above, the caption is "Figure A 1".使用上面的代码,标题是“图 A 1”。

Thank you in advance!先感谢您!

Two quick hacks, either you can temporarily remove the number or you can latex do the numbering with capital letters:两个快速技巧,您可以暂时删除数字,也可以 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}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM