从 LaTeX 中的图形标题中删除前缀

发布于 2024-09-25 22:18:27 字数 77 浏览 1 评论 0原文

我想在 LaTeX 图形中的 \caption{} 中制作自己的标题。如何关闭出现的标题中的“Figure”前缀?

I'd like to make my own caption inside \caption{} in figures of LaTeX. How can I turn off the "Figure " prefix from the captions that appear?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

我一直都在从未离去 2024-10-02 22:18:27

首先使用 caption 包,然后以这种方式使用命令 \caption*

\usepackage{caption}
...
\caption*{some text}

而不是 \caption{some text}

逻辑是一样的避免对节和小节以及许多其他对象进行编号

\subsection*{Name of unnumbered subsection}

First use the caption package and then use the command \caption* in this way

\usepackage{caption}
...
\caption*{some text}

instead of \caption{some text}

Logic is the same in avoiding numbering of sections and subsections and many other objects

\subsection*{Name of unnumbered subsection}
最近可好 2024-10-02 22:18:27

您可以使用 caption 包并执行以下操作:

\usepackage[labelformat=empty]{caption}

You can use the caption package and do this:

\usepackage[labelformat=empty]{caption}
∞觅青森が 2024-10-02 22:18:27

不要在加载 caption 包时定义标题样式,而是在之后进行设置:

\usepackage{caption}% http://ctan.org/pkg/caption
...
\captionsetup[figure]{labelformat=empty}%

这些更改现在仅适用于 figure 环境。

Instead of defining the caption style when loading the caption package, set it up afterwards:

\usepackage{caption}% http://ctan.org/pkg/caption
...
\captionsetup[figure]{labelformat=empty}%

These changes will now only pertain to figure environments.

尾戒 2024-10-02 22:18:27

您可以使用

\captionsetup[figure]{labelformat=empty}

关闭标题文本,然后使用再次打开标题文本。

\captionsetup[figure]{labelformat=default}

如果您希望不同部分的标题文本有所不同,

You can use

\captionsetup[figure]{labelformat=empty}

to turn the caption text off and then use

\captionsetup[figure]{labelformat=default}

to turn the caption text on again if you want it to be different in different sections.

吹泡泡o 2024-10-02 22:18:27

如果您不想使用其他包,可以使用以下解决方法在图形下方添加标题(文本):

\includegraphics[width=1\linewidth]{figurename}\\[1mm]
  {---your caption---}

If you don't want to use additional packages, here is a work-around to put a caption (text) below the figures:

\includegraphics[width=1\linewidth]{figurename}\\[1mm]
  {---your caption---}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文