![垂直对齐小页面标题(未使用子图)](https://linux22.com/image/293227/%E5%9E%82%E7%9B%B4%E5%AF%B9%E9%BD%90%E5%B0%8F%E9%A1%B5%E9%9D%A2%E6%A0%87%E9%A2%98%EF%BC%88%E6%9C%AA%E4%BD%BF%E7%94%A8%E5%AD%90%E5%9B%BE%EF%BC%89.png)
在水平对齐表格和图表后,我希望它们在标题顶部垂直对齐(见最后一张图片)。我找到了使用 subfigures 或 floatrow 包的解决方案,但这两种方法似乎都不合适。这是我目前的设置
\documentclass{article}
\usepackage[labelfont=bf]{caption}
\usepackage[demo]{graphicx}
\begin{document}
\begin{minipage}[b]{.4\linewidth}
\centering
\includegraphics[width=140pt]{test}
\captionof{figure}{First image with very very very very very very very very long caption}
\end{minipage}
\hfill
\begin{minipage}[b]{.5\linewidth}
\centering
\begin{tabular}[b]{cc}\hline
Table head & Table head \\ \hline
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\ \hline
\end{tabular}
\captionof{table}{table with short caption}
\end{minipage}
\end{document}
我希望它们像这样对齐,但使用不同长度的标题:
答案1
\documentclass{article}
\usepackage[labelfont=bf]{caption}
\usepackage[demo]{graphicx}
\begin{document}
\begin{minipage}[b]{.4\linewidth}
\centering
\includegraphics[width=140pt]{test}
\captionof{figure}{First image with very very very very very very very very long caption}
\end{minipage}
\hfill
\begin{minipage}[b]{.5\linewidth}
\centering
\begin{tabular}[b]{cc}\hline
Table head & Table head \\ \hline
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\
Some values & Some values \\ \hline
\end{tabular}
\captionof{table}[table with short caption]{table with short caption\\\mbox{}\\\mbox{}}
\end{minipage}
\end{document}