你好,我想将子图(b)向右侧移动,与该图顶部的线完全对齐。
\begin{figure*}
\centering
\begin{subfigure}[t]{0.5\textwidth}
\centering
\includegraphics[scale=0.65]{a.pdf}
\caption{}
\end{subfigure}
~
\begin{subfigure}[t]{0.5\textwidth}
\centering
\includegraphics[height=1.8in, width=2.3in]{b.pdf}
\caption
\end{subfigure}
\end{figure*}
任何帮助都将非常感激。
答案1
如果您确定第二个数字应为 1.8 英寸高,那么这\subcaptionbox
就是您想要的:
\documentclass[twocolumn]{article}
\usepackage{subcaption}
\usepackage{graphicx}
% the following are just for the example
\usepackage{kantlipsum} % mock text
\usepackage{fancyhdr} % just to show the top rule
\pagestyle{fancy}
\begin{document}
\kant
\begin{figure*}
\centering
\subcaptionbox{}{\includegraphics[height=1.8in]{example-image-16x9.pdf}}%
\hfill
\subcaptionbox{}{\includegraphics[height=1.8in, width=2.3in]{example-image-9x16.pdf}}
\caption{Cumulative caption}
\end{figure*}
\kant
\end{document}