Longtable 旋轉文字的行高限制

Longtable 旋轉文字的行高限制

使用以下程式碼,我想創建一個在頁面上旋轉的表格,但頁面本身不會旋轉(它是為了在書中列印,所以pdf也不能旋轉頁面):

\documentclass[11pt]{book}
\usepackage{array}
\usepackage{adjustbox}
\usepackage{fancyhdr} 
\usepackage{longtable}
\usepackage{fancybox}

\newcolumntype{R}{>{\beginrotate}c<{\endrotate}}
\def\beginrotate{\begin{Sbox}}
\def\endrotate{\end{Sbox}\rotatebox{-90}{\TheSbox~~}}

\begin{document}
\pagestyle{fancy}
\fancyhead[L]{\thepage}

\begin{longtable}{|RR|R|}
\caption{Exemplary long vertical table. \label{tab:label}}\\
\hline
Caption 3 & Caption 2 which is much longer than the other captions & Caption 1\\
\hline
\endfirsthead
\caption[]{Exemplary long vertical table (Continued).}
\endhead
Here is content of a cell which should be limited to 4 cm in row height. & Content & Content\\
Here is content of a cell which should be limited to 5 cm in row height. & Content & Content\\
\end{longtable}

\end{document}

該表有很多列,並且跨越幾頁。第一列應在每一頁重複。此外,表格的每一頁都必須有標題,但只有第一頁有標籤,在接下來的頁面上它只是「繼續」。

我嘗試使用長表建立一個解決方法,在其中旋轉每個欄位中的文字。但是,我不知道如何限制每行的高度。

相關內容