我正在尝试在纵向文档的横向页面上添加一个制表符表。
因为我想让表格使用整个宽度,所以我尝试将其宽度设置为\textwidth
,但表格的宽度仅与纵向页面上的文本宽度一样宽。
如何制作具有正确宽度的表格?
由于我使用的是 XeLaTeX,所以 MWE 包含 Unicode 字符!
梅威瑟:
\documentclass[a4paper]{scrartcl}
\usepackage{tabulary}
\usepackage{lscape}
\title{MWE – tabulary rotate}
\subtitle{Textwidth is way to small}
\author{John Doe}
\begin{document}
\maketitle
\begin{landscape}
\begin{table}
\begin{tabulary}{\textwidth}{RJL}
\emph{Left} & \emph{Middle} & \emph{Right} \\
This is a text that shall be a litte bit longer, and longer!
& And even this text is meant to be not so short that it is just simple short…
& Also there is the last column, which shall not be just a handful of letters
but an full sentence instead, that doesn't not even to make sense!
\end{tabulary}
\end{table}
\end{landscape}
\end{document}
答案1
\linewidth
可以改用:
\begin{tabulary}{\linewidth}{RJL}
软件包lscape
确实轮换了\textheight
,但没有变化\textwidth
。可能是个 bug。
更新:这是一个设计上的妥协,请参阅 David Carlisle 的评论。