[texhax] plain tex: Center all text in a paragraph?

jw jwdevel at gmail.com
Mon Feb 23 06:44:13 CET 2009


Feels like a dumb question, but I have searched around, and can't
figure out how to center an entire paragraph (or ideally several
paragraphs) of text.

LaTeX has the \center environment, but I'm restricted to plain TeX.
\centerline works for a single line, but I want TeX to do
line-breaking over an entire paragraph, and center the final text.
It seems like what I really want is to add a \hfil to both ends of
each line, but I haven't found the right incantation yet...

Anyone know how to do this?

-John


More information about the texhax mailing list