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}\\

  • 1
    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. Dec 1, 2012 at 16:15

1 Answer 1


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}


  • 5
    presumably adjustbox defaults to being a horizontal (LR) box like mbox or fbox, which would similarly be single line. Nov 30, 2012 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. Nov 30, 2012 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. Dec 1, 2012 at 16:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .