
저는 이 코드를 사용하여 그림 옆에 큰 테이블을 배치합니다.
\begin{figure}%[t!]
\centering
\begin{minipage}[c]{0.95\textwidth}
\begin{tabular}{cc}
\resizebox{0.45\textwidth}{!}{
\begin{tabular}{c c c c c c}
% ... all the lines and stuff
\end{tabular} } & \includegraphics[width=0.45\textwidth]{./image.pdf}\\
(a) & (b) \\
\end{tabular}
\end{minipage}
\end{figure}
그러나 아래에서 볼 수 있듯이 코드로 인해 테이블과 그림이 올바르게 정렬되지 않습니다.
문제는 무엇입니까?
답변1
와 이미지의 높이가 대략 같은 경우 tabular
기준선에 정렬합니다. 기본적으로는 \includegraphics
베이스에 정렬되지만 tabular
수직 중앙에 정렬됩니다. \begin{tabular}[b]
마지막 줄의 기준선에 맞춰 수직 중앙 정렬을 변경하므로 사용하면 충분합니다.
다른 옵션에는 추가가 포함됩니다.
\usepackage[export]{adjustbox}
당신의 서문과 사용
\includegraphics[valign=c,...]{<image>}
이렇게 하면 이미지가 tabular
s(기본값) 수직 중앙에 정렬됩니다.