In TeX, one can center a single line of text with \centerline. How would one implement a center justification environment for a single long line of text in plain TeX without the addition of any packages. That is, the first line of TeX should justify to the center. Any wrapping text should also justify to the center.


1 Answer 1

  \leftskip=0pt plus 1fil

You can now choose between

Some text to be centered


\centerpars{Some text to be centered}

An empty line in the text will end the line.


You must log in to answer this question.

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