Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to have a tabulary-table on a landscape page in a portrait document.

Because I want to have the table use the full width, I tried to set it width to \textwidth, but the width of the table is only as wide as the textwidth is on a portrait page.

How can I make the table using the correct width?

Since I am using XeLaTeX the MWE contains Unicode-Characters!

MWE:

\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 handfull of letters
but an full sentence instead, that doesn't not even to make sense!
\end{tabulary}
\end{table}
\end{landscape}
\end{document}
share|improve this question

1 Answer 1

up vote 9 down vote accepted

\linewidth can be used instead:

\begin{tabulary}{\linewidth}{RJL}

Package lscape does rotate \textheight, but does not change \textwidth. Probably a bug.

Update: It is a design compromise, see David Carlisle's comment.

share|improve this answer
1  
not a bug, just a design compromise. lscape doesn't rotate the page head/foot and if you change \textwidth many settings of the page head went wrong. \linewidth is normally used within the page so it was safer to set that. –  David Carlisle Apr 26 '13 at 20:14
    
@DavidCarlisle Thanks for the clarification. –  Heiko Oberdiek Apr 26 '13 at 20:21
    
Oh +1 for giving the right answer:-) –  David Carlisle Apr 26 '13 at 20:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.