我正在尝试对齐子图和子表,我找到了以下解决方案。仅当标题具有相同的行数时,它们才会对齐。表格标题在图标题的底部对齐,更改[b]
为[t]
并不能解决问题。我怎样才能让标题在顶部对齐?
\documentclass[twocolumn]{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure*}[!h]
\centering
\begin{subfigure}[b]{0.48\textwidth}
\includegraphics[width=1.0\linewidth]{figure.png}
\caption{Caption 1 : this one is a very long two lines caption and is misaligned}
\label{fig:fig1}
\end{subfigure}
%
\begin{subtable}[b]{0.48\textwidth}
\centering
\begin{tabular}{|c|c|}
1 & 2\\ \hline
11 & 22\\ \hline
\end{tabular}
\caption{Caption 2}
\label{table:table}
\end{subtable}
\caption{Caption 3}
\label{fig:mainfigure}
\end{figure*}
\end{document}