当我有一个垂直子图排列时,如何将子标题移动到左侧。例如:
\begin{figure}[h!]
\centering
\begin{subfigure}[b]{0.6\textwidth}
\centering
\subcaption[]{}
\includegraphics[trim={0 2cm 0 2cm},clip,width=\textwidth]{img/MeltPoolPack115.eps}
\label{fig:115}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.6\textwidth}
\centering
\subcaption[]{}
\includegraphics[trim={0 2cm 0 2cm},clip,width=\textwidth]{img/MeltPoolPack95.eps}
\label{fig:95}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.6\textwidth}
\centering
\subcaption[]{}
\includegraphics[trim={0 2cm 0 2cm},clip,width=\textwidth]{img/MeltPoolPack75.eps}
\label{fig:five over x}
\end{subfigure}
\caption{Three plots}
\label{fig:75}
\end{figure}
看起来像这样(我正在尝试用红色表示):
答案1
此版本每行使用两个子图。子图基本上只是一个小页面,尽管它也会影响\caption
。
\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}[h!]
\centering
\setlength{\parskip}{\floatsep}% add spacing between images
\begin{subfigure}[c]{1cm}
\caption[]{}
\label{fig:115}
\end{subfigure}
\begin{subfigure}[c]{0.6\textwidth}
\includegraphics[width=\textwidth]{example-image-a}
\end{subfigure}
\begin{subfigure}[c]{1cm}
\caption[]{}
\label{fig:95}
\end{subfigure}
\begin{subfigure}[c]{0.6\textwidth}
\includegraphics[width=\textwidth]{example-image-b}
\end{subfigure}
\begin{subfigure}[c]{1cm}
\caption[]{}
\label{fig:five over x}
\end{subfigure}
\begin{subfigure}[c]{0.6\textwidth}
\includegraphics[width=\textwidth]{example-image-c}
\end{subfigure}
\caption{Three plots}
\label{fig:75}
\end{figure}
\end{document}