![旋转页面上的制表符未使用正确的 \textwidth](https://linux22.com/image/267353/%E6%97%8B%E8%BD%AC%E9%A1%B5%E9%9D%A2%E4%B8%8A%E7%9A%84%E5%88%B6%E8%A1%A8%E7%AC%A6%E6%9C%AA%E4%BD%BF%E7%94%A8%E6%AD%A3%E7%A1%AE%E7%9A%84%20%5Ctextwidth.png)
我正在尝试在纵向文档的横向页面上添加一个制表符表。
因为我想让表格使用整个宽度,所以我尝试将其宽度设置为\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 的评论。