如何使表格中旋转的文本在底部对齐?

如何使表格中旋转的文本在底部对齐?

我有一个生成表格的代码。最后三列有旋转的文本。我想将它们对齐到底部(而不是像下面的代码那样对齐到顶部)。此外,我想将“nr”和“NAME”列在它们所在的单元格中垂直和水平居中。有人能帮我实现这个吗?

\documentclass[a4paper]{article}
\usepackage{rotating}
\usepackage{multirow}
\usepackage{array}
\usepackage{makecell}
\usepackage{booktabs}

\begin{document}

\thispagestyle{empty}

\begin{sidewaystable}

\begin{tabular}{|l|m{10cm}|l|l|l|l|l|l|l|l|l|l|l|l|l|l|r|r|r|}
\hline
nr. & NAME & DATE: & & & & & & & & &
& & & & & \multirow{2}{*}{\rotatebox{90}{POINTS}} & \multirow{2}{*}{\rotatebox{90}{QUALITY}} & \multirow{2}{*}{\rotatebox{90}{PLACE}} \\ [0.6cm]
\cline{3-16}
& & ROUND: & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & & & \\ [0.6cm]
\hline
1 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
2 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
3 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
4 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
5 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
6 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
7 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
8 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
9 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
10 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
11 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
12 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
13 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
14 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\hline
\end{tabular}

\end{sidewaystable}

\end{document}

答案1

您可以使用第二个可选参数来\multirow微调位置:

\documentclass[a4paper]{article}
\usepackage{rotating}
\usepackage{multirow}
\usepackage{array}
\usepackage{makecell}
\usepackage{booktabs}

\begin{document}

\thispagestyle{empty}

\begin{sidewaystable}

\begin{tabular}{|l|m{10cm}|l|l|l|l|l|l|l|l|l|l|l|l|l|l|r|r|r|}
\hline
\multirow{5}{*}{nr.} & \multicolumn{1}{c|}{\multirow{5}{*}{NAME}} & DATE: & & & & & & & & &
& & & & & 
\multirow{2}{*}[-17.5pt]{\rotatebox{90}{POINTS}} 
& \multirow{2}{*}[-9pt]{\rotatebox{90}{QUALITY}} & \multirow{2}{*}[-21pt]{\rotatebox{90}{PLACE}} \\ [0.6cm]
\cline{3-16}
& & ROUND: & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & & & \\ [0.6cm]
\hline
1 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
2 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
3 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
4 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
5 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
6 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
7 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
8 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
9 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
10 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
11 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
12 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
13 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
14 & \multicolumn{2}{c|}{} & & & & & & & & & & & & & & & & \\
\hline
\end{tabular}

\end{sidewaystable}

\end{document}

在此处输入图片描述

相关内容