TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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'm using this 3-column layout.

[.. a lot of text ..]

I want to left-align the text in the left column, center the text in the middle column, and right-align the text in the right column. (Before you ask why anyone would want that: it's for a rather long list of names)

Of course, I can check which part of the text goes into which column, and justify the parts accordingly. But that's ugly. Can I tell LaTeX to do this for me?

share|improve this question
Are single names split across the columns? It may be that the parcolumns package is more in line with what you want. – Werner May 18 '12 at 16:03
Just to make it easier for people to answer, could you provide the source of a complete, compilable, but minimal dummy document to build upon? This is what we call a minimal working example (MWE), which is an essential part of most good questions. – doncherry May 18 '12 at 16:12
basically the answer to your question is "no" but it seems better to give that as a comment rather than an answer. As (almost) always in TeX page and column breaking you can not change the typesetting at a page break as TeX first typesets more than needed then later chops up the scroll into the correct height and adds header and footer. Any renaming text is put back for consideration on the next page/column but it is put back as typeset boxes, not re-typeset. – David Carlisle May 18 '12 at 16:13
Why don't you use a table with alignment {lcr}? Or you can use three minipages. – Sigur May 18 '12 at 23:29

enter image description here

The following code repackages the columns as set by multicols, centre aligning the middle columns and aligning the right hand column flush right. It works for paragraphs as well as single lines, but would fail if there is any extra inter-line material (such as floats or specials).





\rejustifybox{\hskip 0pt \@plus 1filll\unhbox\z@\unskip}%
\rejustifybox{\hskip 0pt \@plus 1filll\unhbox\z@\unskip\hskip 0pt \@plus 1filll}%

\setbox\z@\vbox{\hbox{\vrule depth 123sp} \unvbox\count@
   \hbox to \wd\z@{#1}%


\def\a{One two three four five six seven. }
\def\b{\a Red green blue yellow. }
\def\x{Oxford\par London\par Manchester\par Birmingham\par Nottingham\par Liverpool\par Cambridge\par}


2 Text goes here. \c\a\c\par
3 \x\x\x\x\x\x\x\x\x

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.