我试图将 4 个图形放在一起,使得左边的三个图形是子图形并属于图 1,而另一个独立图形作为最右边的图形。
我有两个问题:
首先,当我在文中引用图形时,编号从 0 开始,而实际上应该从 1 开始,如何让它从 1 开始?
其次,如果我没有给其中一个子图指定标题,我就无法在文本中引用它们。
以下是我的代码和我正在尝试做的事情的图像。
\documentclass{article}
\usepackage{amsmath}
\usepackage[demo]{graphicx}
\usepackage{caption}
\captionsetup[subfigure]{labelsep=space,font=small}
\usepackage{subfigure}
\begin{document}
\begin{figure*}[t]
\begin{minipage}[t]{.75\textwidth}
\begin{minipage}[t]{.29\textwidth}
\centering
\includegraphics[width=1.0\linewidth]{wu8_wedges}
\captionof{subfigure}{this is a caption}
\label{fig:a}
\end{minipage}
\hfill
\begin{minipage}[t]{.29\textwidth}
\includegraphics[width=1.0\linewidth]{wu8_wedges}
\label{fig:b}
\end{minipage}
\hfill
\begin{minipage}[t]{.29\textwidth}
\includegraphics[width=1.0\linewidth]{wu8_wedges}
\label{fig:c}
\end{minipage}%
\caption{Fig 1 caption this is}
\end{minipage}
\begin{minipage}[t]{.23\textwidth}
\centering
\includegraphics[width=1.0\linewidth]{wu8_wedges}
\caption{Fig 2 caption this is $\beta$}
\label{fig:nextfig}
\end{minipage}
\end{figure*}
Why is it Figure \ref{fig:a}, and how to make references to Figures \ref{fig:b} and \ref{fig:c} work. Reference to Figure \ref{fig:nextfig} works?
\end{document}
答案1
作为以上评论的补充:
\documentclass{article}
\usepackage{amsmath}
\usepackage[demo]{graphicx}
\usepackage{caption}
\usepackage{subfig}
\begin{document}
\begin{figure*}[t]
\begin{minipage}[t]{.75\linewidth}\centering
\subfloat[\label{fig:a}]{\includegraphics[width=0.3\linewidth]{wu8_wedges}}
\hfil
\subfloat[\label{fig:b}]{\includegraphics[width=0.3\linewidth]{wu8_wedges}}
\hfil
\subfloat[\label{fig:c}]{\includegraphics[width=0.3\linewidth]{wu8_wedges}}
\caption{Figure 1 has three subfigures}
\label{fig:1}
\end{minipage}%
\begin{minipage}[t]{.23\textwidth}\centering
\includegraphics[width=0.9\linewidth]{wu8_wedges}
\caption{Figure 2 has only one image}
\label{fig:2}
\end{minipage}
\end{figure*}
See references for figures \ref{fig:a}, \ref{fig:b} and \ref{fig:c} which are part of Figure \ref{fig:1} and for Figure \ref{fig:2}. References works!
\end{document}