多列环境中的景观表

多列环境中的景观表

我面临一个非常奇怪的问题;请查看输出:输出

我正在尝试将表格置于双列布局的横向模式。因此使用了“multicol”包。表格不会出现在整个页面上,而只会出现在顶部(或左侧,取决于视角)。每当我删除 multicol 包时,表格都会填满整个页面;但不幸的是,其余纸张的布局被破坏了。有什么解决方法吗?提前致谢。:)

\documentclass[twoside]{article}

\linespread{1.08} 
\usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry}
\usepackage{multicol}
\usepackage{lscape,multirow,rotating,caption,tabularx,booktabs}
[...]
\begin{document}
[...]
\begin{landscape}
\begin{table*}[b]
\small
\label{tab:2}
\caption{bla}
\bgroup
\def\arraystretch{1.5}
\begin{tabularx}{\linewidth}{lXXXX}
\hline & Grow Bed & DWC & NFT & Soil \\ \hline
[...]
Nutrient uptake  
&- High &- High& - Lower because smaller root-water contact area& - Lower
\\ \hline
\end{tabularx}
}
\end{table*} 
\end{landscape}

\end{document}

答案1

在环境中无法使用横向模式multicols。请\rotatebox改用:

\documentclass[twoside]{article}

\linespread{1.08} 
\usepackage[hmarginratio=1:1,top=32mm,columnsep=20pt]{geometry}
\usepackage{multicol}
\usepackage{lscape,multirow,rotating,caption,tabularx,booktabs}
\usepackage{blindtext}
\begin{document}

\begin{multicols}{2}
\rotatebox{90}{%
\small
\minipage{0.9\textheight}
\captionof{table}{bla}\label{tab:2}
\def\arraystretch{1.5}
\begin{tabularx}{\linewidth}{lXXXX}\hline 
& Grow Bed & DWC & NFT & Soil \\ \hline
Nutrient uptake  
&- High &- High& - Lower because smaller root-water contact area& - Lower\\ \hline
Nutrient uptake  
&- High &- High& - Lower because smaller root-water contact area& - Lower\\ \hline
Nutrient uptake  
&- High &- High& - Lower because smaller root-water contact area& - Lower\\ \hline
\end{tabularx}
\endminipage}

\blindtext
\end{multicols}

\blindtext
\end{document}

在此处输入图片描述

相关内容