O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required