latex - 如何取消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”。

提前谢谢您!

最佳答案

两个快速技巧,您可以暂时删除数字,也可以使用 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/

相关文章:

compiler-errors - 编译超时LATEX

python - 如何在 matplotlib 轴中写入 latex 特殊字符 $\bar{T}$ ?

haskell - Fortran 或 TeX 到 Haskell

pdf - 如何在 LaTeX 文档中包含复杂的 R 绘图?

latex - 在 Latex 中创建环境

latex - 在表列表中包含单词 "table",在目录中包含 "Appendix"等

plot - 可以在 Vega-Lite 上编写 Latex 吗?

latex - 将 $$s 放在 `equation` 环境 : why doesn't Latex complain? 的中间

regex - 如何将常规引号(即 ', ")转换为 LaTeX/TeX 引号(即 `' 、 `` '')

python - 使用 Sphinx 创建 PDF 时如何避免 "too deeply nested"错误?