TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am wondering as the title says whether it is possible to put a long table, especially for me a longtabu into a adjustbox? My code throws an error but I guess this is the same issue as is with putting a longtabu into a table environment. It's not allowed as the long table cannot flow otherwise. Is that correct?

share|improve this question
It simply doesn't make sense: In boxes like adjustbox or table there can't be a page break. So why are you trying to put a long table in such boxes? – Ulrike Fischer Feb 6 '13 at 18:00
Well, when I use the tabu environment I don't use X columns to expand the table to page width but rather manually add horizontal space between the columns. I find it much easier to organise the distance between my columns in that way than using the X column rules. You can actually pretty exactly fit the table width to page width using points as in @{\hskip 52pt}. However, to exactly fit it I wrap an adjustbox around it with \begin{adjustbox}{width=\textwidth, totalheight=\textheight, keepaspectratio}. Probably not the best solution but it works quite fine for me :-) – Josh Feb 6 '13 at 18:10
I wanted to use the same trick for my longtabu but it's apparently not possible. Well, it's ok, I think it is so close to the page width that no one will spot it anyhow :) – Josh Feb 6 '13 at 18:12
Scaling tabulars is horrible: You will have different fontsize for each tabular. – Ulrike Fischer Feb 6 '13 at 18:14
@Josh you can put strechable glue in the @ as in @{\extracolsep{53pt minus 5pt plus 20pt} so it pads the table exactly to the specified total width. Scaling tables is just wrong, the fact that it doesn't work for multi-page ones is a feature. – David Carlisle Feb 6 '13 at 22:16

To automatically adjust the intercolumn space specify the total table width using tabu or longtable syntax and then add stretchable glue between the columns via

share|improve this answer

Your Answer


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.