强制将子图标题置于图的右中位置

强制将子图标题置于图的右中位置

我想绘制两个图形,并在图形的右中侧显示各自的子标题。有什么帮助吗?

答案1

平均能量损失

\documentclass{article}
\usepackage{graphicx}
\usepackage{subcaption}
\def\LW{\dimexpr.25\linewidth-.5em}
\begin{document}
\begin{figure}
\parbox{\LW}{\includegraphics[width=\linewidth]{example-image-a}}\hfill%
\parbox{\LW}{\subcaption{This is the A example image}}\hfill%
\parbox{\LW}{\includegraphics[width=\linewidth]{example-image-b}}\hfill%
\parbox{\LW}{\subcaption{The B example image.}}
\caption{Example figures A \& B from the \texttt{mwe} package. Use a full
width caption here, because a centered-little caption with side 
subcaptions look awful.}
\end{figure}
\end{document}

答案2

在此处输入图片描述

\documentclass{article}

\usepackage{graphicx}
\usepackage[export]{adjustbox}

\begin{document}

\begin{figure}

\includegraphics[width=.2\textwidth,valign=m]{example-image-a}
\begin{minipage}{.2\textwidth}
\caption{an image}
\end{minipage}
\hfill
\includegraphics[width=.2\textwidth,valign=m]{example-image-b}
\begin{minipage}{.2\textwidth}
\caption{another image}
\end{minipage}


\end{figure}

\end{document}

答案3

A simple modification to Frank's answer

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\def\LW{\dimexpr.9\linewidth-.5em}
\def\LWW{\dimexpr.1\linewidth-.5em}
\begin{figure}
\graphicspath{ {./images/} }
\centering 
\parbox{\LW}{\includegraphics[width=\linewidth,height=3cm]  {1.eps}}
\parbox{\LWW}{(a)}\\
\parbox{\LW}{\includegraphics[width=\linewidth,height=3cm]{2.eps}}
\parbox{\LWW}{(b)}\\
\parbox{\LW}{\includegraphics[width=\linewidth,height=3cm]{mdct_d1.eps}}
\parbox{\LWW}{(c)}
\caption{Example figures A \& B from the package.}
\end{figure}
\end{document}

相关内容