latex - 如何删除 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}
推荐阅读
- javascript - 如何将字符串从php传递给js
- system-verilog - 如何从与系统verilog中的函数同名的函数返回一个数组?
- assembly - 汇编:将输入与字符串进行比较
- mysql - MySQL在返回的一组记录中查询相同数量的状态
- php - XML 中的 PHP - 解析错误:文档末尾的额外内容
- julia - 使矩阵的行或列全为零 [Julia]
- html - 如何修复我的导航栏以使其居中并使其在两侧均匀?
- unity3d - Unity-如何通过触摸输入移动?
- xaml - 除非禁用 XBF,否则 XAML 解析异常
- android - Admob 收到请求但未收到平面广告