Time for action – creating a narrow text column

We would like to explain the acronym TUG in a text column of only 3 cm width:

  1. Create a new document containing these four lines:
    \documentclass{article}
    \begin{document}
    \parbox{3cm}{TUG is an acronym. It means \TeX\ Users Group.}
    \end{document}
  2. Typeset and take a critical look at the output:
    Time for action – creating a narrow text column

What just happened?

We used the command \parbox to create a column. We stated the width of 3 cm in the first argument and the contained text in the second argument to \parbox.

\parbox takes the argument text and formats the output to fit the specified width. We see that the text is fully justified. Our example shows ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.