我有以下乳胶代码,它为我提供了横向模式的表格,并且还将页码从侧面更改为底部:
\begin{landscape}
\def\fillandplacepagenumber{%
\par\pagestyle{empty}%
\vbox to 0pt{\vss}\vfill
\vbox to 0pt{\baselineskip0pt
\hbox to\linewidth{\hss}%
\baselineskip\footskip
\hbox to\linewidth{%
\hfil\thepage\hfil}\vss}}
\begin{table}[]\centering
\begin{tabular}{lllllll}
\hline
Monitoring & Thickness & \begin{tabular}[c]{@{}l@{}}Channel Dimensions \\ (W\texttimes{} L) \textmu m\end{tabular} & Fabrication Technique & Array size & Transconductance & Reference \\ \hline
Heart ECG recordings & 2.6 \textmu m & 10\texttimes{}10 & \begin{tabular}[c]{@{}l@{}}Photolithography \\ RIE \\ lift-off\\ {} \end{tabular} & 4 \texttimes{}4 & 1 mS & \textbf{x} \\
ECoG & $\sim$ 1.3 \textmu m & 1600\texttimes{}8 & \begin{tabular}[c]{@{}l@{}}Photolithography \\ lift-off \\ RIE \\ {} \end{tabular} & 4\texttimes{}4 & 139 mS & x \\
EEG rat signals & 3 \textmu m & 70\texttimes{}20 & \begin{tabular}[c]{@{}l@{}}Photolithography \\ RIE\\ lift-off\\ {} \end{tabular} & 3\texttimes{}5 & 1.1 mS & x \\
ECG & $\sim$ 4 \textmu m & 8\texttimes{}2 & \begin{tabular}[c]{@{}l@{}}Photolithography \\ RIE\\ lift-off\\ {} \end{tabular} & 5\texttimes{}5 & 0.26 mS & x \\
EEG action potential & $\sim$ 1 \textmu m & 20\texttimes{}25 & \begin{tabular}[c]{@{}l@{}}Photolithography \\ RIE\\ lift-off\\ {}\end{tabular} & 4\texttimes{}4 & 2 mS & x \\
ECoG & $\sim$ 4 \textmu m & 15\texttimes{}6 & \begin{tabular}[c]{@{}l@{}}Photolithography \\ RIE\\ lift-off\\ {}\end{tabular} & N/A & & \\
EMG & 2 \textmu m & 5\texttimes{} 2 & \begin{tabular}[c]{@{}l@{}}Photolithography \\ RIE\\ lift-off\\ {}\end{tabular} & 5\texttimes{}5 & 1.6 mS & x \\ \hline
\end{tabular}
\end{table}
\fillandplacepagenumber
\end{landscape}
但是,当表格对于一页来说太大时,它不会继续进入下一页,而是再次旋转 90 度。有人知道如何在保持表格横向的情况下继续进入下一页吗?
谢谢
答案1
一个简单的例子:
\documentclass{article}%[margin=3mm,varwidth]{standalone}
\usepackage{pdflscape}
\usepackage{booktabs, longtable, makecell}
\begin{document}
\begin{landscape}
\begin{longtable}{lllllll}
\toprule
Monitoring & Thickness & \makecell[c]{Channel\\ Dimensions\\
(W\texttimes{} L) \textmu m}
& Fabrication Technique & Array size
& Transconductance & Reference \\
\midrule
Heart ECG recordings
& 2.6 \textmu m & 10\texttimes{}10
& \makecell[l]{Photolithography \\ RIE\\ lift-off}
& 4 \texttimes{}4
& 1 mS & \textbf{x} \\
\addlinespace
ECoG & $\sim$ 1.3 \textmu m & 1600\texttimes{}8
& \makecell[l]{Photolithography \\ RIE\\ lift-off}
& 4\texttimes{}4
& 139 mS & x \\
\addlinespace
EEG rat signals
& 3 \textmu m & 70\texttimes{}20
& \makecell[l]{Photolithography \\ RIE\\ lift-off}
& 3\texttimes{}5
& 1.1 mS & x \\
\addlinespace
ECG & $\sim$ 4 \textmu m & 8\texttimes{}2
& \makecell[l]{Photolithography \\ RIE\\ lift-off}
& 5\texttimes{}5
& 0.26 mS & x \\
\addlinespace
EEG action potential
& $\sim$ 1 \textmu m & 20\texttimes{}25
& \makecell[l]{Photolithography \\ RIE\\ lift-off}
& 4\texttimes{}4
& 2 mS & x \\
\addlinespace
ECoG & $\sim$ 4 \textmu m & 15\texttimes{}6
& \makecell[l]{Photolithography \\ RIE\\ lift-off}
& N/A
& & \\
\addlinespace
EMG & 2 \textmu m & 5\texttimes{} 2
& \makecell[l]{Photolithography \\ RIE\\ lift-off}
& 5\texttimes{}5
& 1.6 mS & x \\
\bottomrule
\end{longtable}%
\end{landscape}
\end{document}
附录:
- 一个更复杂的解决方案是使用
tabularray
包及其库booktabs
和siunitx
。两个库都加载同名的包。 - 在这两个建议中,我都省略了页面布局的代码(因为这不是表格写入问题,我坚持使用 MWE(最小工作示例),而您的代码示例不是);所需的页面布局应该是您实际文档的一部分
- 您的表格现在可以适合肖像页面,同时请考虑:
booktabs
表格水平线规则siunitx
编写单位和数量的包- 单位仅写在列标题中:
- 如果表格长度超过一页,则会自动在表格脚注中添加“下页继续”和标题“(续)”
- 你可能喜欢这个解决方案
\documentclass{article}
\usepackage{geometry}
\usepackage{tabularray}
\UseTblrLibrary{booktabs, siunitx}
\sisetup{table-align-text-before=false,
explicit-sign={\sim}
}
\begin{document}
\begin{longtblr}[
caption = {caption text},
label = {tab:long}
]{colspec = {X[l]
Q[c, si={table-format={$\sim$}1.1}]
Q[c, mode=math]
X[1.2, l]
X[0.6,c, mode=math]
X[0.8, si={table-format=3.2}] l},
row{1} = {guard, mode=text, c, b}
}
\toprule
Monitoring & {Thickness\\ (\unit{\micro\meter})}
& {Channel\\ Dimensions\\ (W$\times$L) \unit{\micro\meter}}
& {Fabrication\\ Technique} & Array size
& Transcon\-duc\-tance (\unit{\milli\siemens})
& Reference \\
\midrule
Heart ECG recordings
& 2.6 & 10\times 10
& {Photolithography \\ RIE \\ lift-off}
& 4 \times 4
& 1 & x \\
ECoG & \sim 1.3 & 1600\times 8
& {Photolithography \\ RIE \\ lift-off}
& 4\times 4
& 139 & x \\
EEG rat signals
& 3 & 70\times 20
& {Photolithography \\ RIE \\ lift-off}
& 3\times 5
& 1.1 & x \\
ECG & \sim 4 & 8\times 2
& {Photolithography \\ RIE \\ lift-off}
& 5\times 5
& 0.26 & x \\
EEG action potential
& \sim 1 & 20\times 25
& {Photolithography \\ RIE \\ lift-off}
& 4\times 4
& 2 & x \\
ECoG & \sim 4 & 15\times 6
& {Photolithography \\ RIE \\ lift-off}
& N/A
& & \\
EMG & 2 & 5\times 2
& {Photolithography \\ RIE \\ lift-off}
& 5\times 5
& 1.6 & x \\
\bottomrule
\end{longtblr}%
\end{document}