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

Apologies for the long MWE. Wanted to understand what I was doing wrong here. Trying to shrink this as part of a longer exercise in producing some slides. (This is the legend for a graphic referenced elsewhere on the site). Why is adjustbox doing this? How can I stop it.







{\Mgt} {\scriptsize Msldfk} \par 
{\Bzd} {\scriptsize Bsadlfsj} \newline
{\Rsk} {\scriptsize Rwelj} \tabularnewline
{\Rem} {\scriptsize Rweld} \\
{\Adm} {\scriptsize Afddsf} \\
{\Rel} {\scriptsize Refsdfd} \\
{\Invfi} {\scriptsize Fikjlkjklj} \\
{\Inveq} {\scriptsize Ejknsdfd}\\
{\Sup} {\scriptsize Support}\\

share|improve this question
The \adjustbox and the basically identical adjustbox environment enfore the so called restricted horizontal mode for the content. In this mode you can't have line breaks. You need to wrap the content into a paragraph building element, like \parbox, minipage or varwidth. The last two are also provided as options to \adjustbox and {adjustbox}. See the manual for more details. – Martin Scharrer Dec 1 '12 at 16:15
up vote 7 down vote accepted

I cannot answer why it ignores newline commands (there must be a good reason!) but I can tell you how to avoid it.

Give adjustbox the minipage option. EDIT and in this case you can omit the outer minipage you used, and give all the options to adjustbox option. In your example:

{\Mgt} {\scriptsize Msldfk} \\
{\Bzd} {\scriptsize Bsadlfsj} \\
{\Rsk} {\scriptsize Rwelj} \\
{\Rem} {\scriptsize Rweld} \\
{\Adm} {\scriptsize Afddsf} \\
{\Rel} {\scriptsize Refsdfd} \\
{\Invfi} {\scriptsize Fikjlkjklj} \\
{\Inveq} {\scriptsize Ejknsdfd}\\
{\Sup} {\scriptsize Support}


share|improve this answer
presumably adjustbox defaults to being a horizontal (LR) box like mbox or fbox, which would similarly be single line. – David Carlisle Nov 30 '12 at 11:24
@JLDiaz that was worth it just for the time it will save me typing the minipage thing in over and over again.. Thank you. – Tahnoon Pasha Nov 30 '12 at 11:38
@DavidCarlisle: Indeed, it uses restricted horizontal mode and therefore no line breaks work. You need to use the minipage option as shown here or the similar, but easier varwidth=<max width> option. – Martin Scharrer Dec 1 '12 at 16:12

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.