带图片的表格:旋转标题(行)

带图片的表格:旋转标题(行)

我正在尝试在横向页面上制作带有图片的表格,但遇到了一些问题。首先,我想旋转第一列的标题(图片中的“行”)并将其与行居中。之后,我会在每个标题(“行”和“列”)下方添加一条小线。你认为更好的方法是使用下划线命令吗?提前谢谢。

\documentclass{article}
\usepackage{graphicx}
\usepackage{lscape}

\begin{document}
\begin{landscape}
\begin{figure*}
\begin{tabular}{cccc}
& column & column & column\\
row &
\includegraphics[width=6.5cm]{image}&
\includegraphics[width=6.5cm]{image}&
\includegraphics[width=6.5cm]{image}\\
row &
\includegraphics[width=6.5cm]{image}&
\includegraphics[width=6.5cm]{image}&
\includegraphics[width=6.5cm]{image}\\
row &
\includegraphics[width=6.5cm]{image}&
\includegraphics[width=6.5cm]{image}&
\includegraphics[width=6.5cm]{image}\\
\end{tabular}

\caption{Caption for the whole figure}
\label{fig:fig1}
\end{figure*}
\end{landscape}
\end{document}

一张简单的图片来说明我想要什么

答案1

像这样?

在此处输入图片描述

\documentclass{article}
\usepackage[export]{adjustbox}
\usepackage{pdflscape}
\usepackage{booktabs}


\begin{document}
\begin{landscape}
\begin{figure*}
\begin{tabular}{cccc}
    & column & column & column\\
\rotatebox[origin=c]{90}{row} &
\includegraphics[width=6.5cm,valign=c]{example-image-a}&
\includegraphics[width=6.5cm,valign=c]{example-image-b}&
\includegraphics[width=6.5cm,valign=c]{example-image-c}\\
    \addlinespace
\rotatebox[origin=c]{90}{row} &
\includegraphics[width=6.5cm,valign=c]{example-image-a}&
\includegraphics[width=6.5cm,valign=c]{example-image-b}&
\includegraphics[width=6.5cm,valign=c]{example-image-c}\\
    \addlinespace
\rotatebox[origin=c]{90}{row} &
\includegraphics[width=6.5cm,valign=c]{example-image-a}&
\includegraphics[width=6.5cm,valign=c]{example-image-b}&
\includegraphics[width=6.5cm,valign=c]{example-image-c}
\end{tabular}

\caption{Caption for the whole figure}
\label{fig:fig1}
\end{figure*}
\end{landscape}
\end{document}

相关内容