Latex 如何在不使用标题的情况下引用子图
我使用以下代码在正文中添加数字。我需要参考主体中的图,如图1a、图2a。但是我不想在latex代码中添加图1a的标题Latex 如何在不使用标题的情况下引用子图,latex,latex-environment,Latex,Latex Environment,我使用以下代码在正文中添加数字。我需要参考主体中的图,如图1a、图2a。但是我不想在latex代码中添加图1a的标题 \usepackage{graphicx} \usepackage{float} \usepackage{caption} \usepackage{subcaption} \begin{figure}[!h] \begin{subfigure}{0.5\textwidth} \caption{``Conversation Starter'' of March} \l
\usepackage{graphicx}
\usepackage{float}
\usepackage{caption}
\usepackage{subcaption}
\begin{figure}[!h]
\begin{subfigure}{0.5\textwidth}
\caption{``Conversation Starter'' of March}
\label{fig:csmarch}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\caption{``Conversation Starter'' of April}
\label{fig:csapril}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\caption{``Conversation Starter'' of May}
\label{fig:csmay}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\caption{``Conversation Starter'' of June}
\label{fig:csjune}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\caption{``Conversation Starter'' of July}
\label{fig:csjuly}
\end{subfigure}
\begin{subfigure}{.5\textwidth}
\caption{``Conversation Starter'' of the \#NigeriaDecides}
\label{fig:csds}
\end{subfigure}
问题解决了。我已经用以下内容更改了子图形代码
\captionsetup[subfigure]{labelformat=empty}
\begin{subfigure}{0pt}
\caption{\label{fig:csmarch}}
\end{subfigure}
问题解决了。我已经用以下内容更改了子图形代码
\captionsetup[subfigure]{labelformat=empty}
\begin{subfigure}{0pt}
\caption{\label{fig:csmarch}}
\end{subfigure}
子选项
包为此类问题提供了\phantomsuboption
。从手册中:
如果由于图片本身已经包含标题,或者出于其他原因,您不想给子图形添加标题,则可以使用该命令
\phantomsuboption
而不是\suboption
,或–在子图形
或子表
环境中
–\phantomcaption
而不是\caption
<代码>\phantomsuboption和
\phantomcaption
没有任何参数,也不会生成任何输出,
但是为\label
命令提供一个锚,该命令可以在以后放置。此外
它分别增加了子图形。子表计数器
MWE:
子选项
包为此类问题提供了\phantomsuboption
。从手册中:
如果由于图片本身已经包含标题,或者出于其他原因,您不想给子图形添加标题,则可以使用该命令
\phantomsuboption
而不是\suboption
,或–在子图形
或子表
环境中
–\phantomcaption
而不是\caption
<代码>\phantomsuboption
和
\phantomcaption
没有任何参数,也不会生成任何输出,
但是为\label
命令提供一个锚,该命令可以在以后放置。此外
它分别增加了子图形。子表计数器
MWE: