三个子图的垂直居中标签 我想在左侧放置一个与 3 个图像对应的标签;它位于左下角,并且我希望它垂直居中。
这是我的代码:
\begin{figure}[th]
{(a)} \subfigure{\includegraphics[width=1cm,height=1cm] {capture1}
\label{}
\includegraphics[width=1cm,height=1cm] {capture2}
\label{}
\includegraphics[width=1cm,height=1cm] {capture3}
\label{}
}
\caption{$(a-c)$ Phase portraits corresponding to attractors for $\protect%
\beta=-1.275$.}
\label{fig7}
\end{figure}
答案1
需要一些手动操作,但这似乎就是您想要的。请注意,这subfigure
已经过时好几年了,而且subfig
要好得多,如果不是subcaption
这样,那么语法就完全不同了。
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}[htp]
\centering
\captionsetup[subfigure]{farskip=0pt}
\begin{tabular}{@{}c@{}ccc@{}}
\raisebox{.8cm}{\subfloat[\label{testA}]{\qquad}} &
\includegraphics[width=1cm,height=1cm]{example-image} &
\includegraphics[width=1cm,height=1cm]{example-image} &
\includegraphics[width=1cm,height=1cm]{example-image} \\
\raisebox{.8cm}{\subfloat[\label{testB}]{\qquad}} &
\includegraphics[width=1cm,height=1cm]{example-image} &
\includegraphics[width=1cm,height=1cm]{example-image} &
\includegraphics[width=1cm,height=1cm]{example-image} \\
\raisebox{.8cm}{\subfloat[\label{testC}]{\qquad}} &
\includegraphics[width=1cm,height=1cm]{example-image} &
\includegraphics[width=1cm,height=1cm]{example-image} &
\includegraphics[width=1cm,height=1cm]{example-image} \\
\end{tabular}
\caption{(a-c) Phase portraits corresponding to attractors for $\beta=-1.275$.}
\label{fig7}
\end{figure}
References to \ref{testA}, \ref{testB} and \ref{testC}
\end{document}
答案2
您可以定义一个\centerbox
命令,将所有要包含的图像环绕起来。从技术上讲,不是标签“(a)”关闭了,而是图像只能以零偏移量放置。这就是您可以使用 进行更改的\raisebox
。
\documentclass{article}
\usepackage{graphicx}
\usepackage{subfigure}
\newcommand{\centerbox}[1]{\raisebox{1ex}{\raisebox{-0.5\height}{#1}}}
\begin{document}
\begin{figure}[th]
{(a)}
\subfigure{
\centerbox{\includegraphics[width=1cm,height=1cm]{Black}}
\centerbox{\includegraphics[width=3cm,height=3cm]{Black}}
\centerbox{\includegraphics[width=4cm,height=4cm]{Black}}
}
\label{fig7}
\caption{$(a-c)$ Phase portraits corresponding to attractors for $\protect%
\beta=-1.275$.}
\end{figure}
\end{document}