我想创建一个包含子图和侧面标题的图,如下所示。
我拥有如图所示的所有内容,只是标题位于子图下方而不是左侧。我正在使用 subcaption 包和 subfigure 命令。我尝试使用 sidecap 包,但子标题似乎无法在 SCFigure 中工作。
如果相关的话,我会使用 overleaf。
我目前的标记:
\begin{figure}[]
\centering
\begin{subfigure}[]{0.15\linewidth}
\caption{}
\label{figure:my figure 1}
\includegraphics[width=\linewidth]{my figure 1.png}
\end{subfigure}
\hspace{0.1em}
\begin{subfigure}[]{0.15\linewidth}
\caption{}
\label{figure:my figure 2}
\includegraphics[width=\linewidth]{my figure 2.png}
\end{subfigure}
\\
\vspace{0.5em}
\begin{subfigure}[]{0.15\linewidth}
\label{figure:my figure 3}
\includegraphics[width=\linewidth]{my figure 3.png}
\caption{}
\end{subfigure}
\hspace{0.1em}
\begin{subfigure}[]{0.15\linewidth}
\label{figure:my figure 4}
\includegraphics[width=\linewidth]{my figure 4.png}
\caption{}
\end{subfigure}
\caption{A collection of related images}
\label{figure:my figure}
\end{figure}
相关问题:
答案1
以下minipage
基于的方法怎么样?(垂直线表示边距。)
\documentclass{article}
\usepackage{subcaption}
\usepackage[demo]{graphicx} % remove the demo option in your real document.
\begin{document}
\begin{figure}[]
\centering
\begin{minipage}{0.3\linewidth}
\caption{A collection of related images}
\label{figure:my figure}
\end{minipage}
\qquad
\begin{minipage}{0.45\linewidth}
\begin{subfigure}[]{0.3\linewidth}
\caption{}
\label{figure:my figure 1}
\includegraphics[width=\linewidth]{my figure 1.png}
\end{subfigure}
\hspace{0.1em}
\begin{subfigure}[]{0.3\linewidth}
\caption{}
\label{figure:my figure 2}
\includegraphics[width=\linewidth]{my figure 2.png}
\end{subfigure}
\hspace{0.1em}
\begin{subfigure}[]{0.3\linewidth}
\caption{}
\label{figure:my figure 2}
\includegraphics[width=\linewidth]{my figure 2.png}
\end{subfigure}
\vspace{0.5em}
\begin{subfigure}[]{0.3\linewidth}
\label{figure:my figure 3}
\includegraphics[width=\linewidth]{my figure 3.png}
\caption{}
\end{subfigure}
\hspace{0.1em}
\begin{subfigure}[]{0.3\linewidth}
\label{figure:my figure 4}
\includegraphics[width=\linewidth]{my figure 4.png}
\caption{}
\end{subfigure}
\hspace{0.1em}
\begin{subfigure}[]{0.3\linewidth}
\label{figure:my figure 4}
\includegraphics[width=\linewidth]{my figure 4.png}
\caption{}
\end{subfigure}
\end{minipage}
\end{figure}
\end{document}