Access Keys:
Skip to content (Access Key - 0)

How can I center text?

To center portions of text, you use the "center" environment. Double backslashes (\ \ ) are used to break up lines within the environment. Here's an example:

	\begin{center}
	This is a line of centered text.\\
	Here's another one.\\
	LaTeX is really useful.
	\end{center}

This would produce:

		      This is a line of centered text.
			    Here's another one.
			  LaTeX is really useful.

You can also center inside of other environments, by using the \centering
declaration at the beginning of the environment:

	\begin{quotation}
	\centering
	This is a quotation\\
	whose lines\\
	are centered.
	\end{quotation}

IS&T Contributions

Documentation and information provided by IS&T staff members


Last Modified:

February 11, 2009

Get Help

Request help
from the Help Desk
Report a security incident
to the Security Team
Labels:
olc-formatting olc-formatting Delete
center center Delete
text text Delete
latex latex Delete
format format Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
Feedback
This product/service is:
Easy to use
Average
Difficult to use

This article is:
Helpful
Inaccurate
Obsolete
Adaptavist Theme Builder (4.2.3) Powered by Atlassian Confluence 3.5.13, the Enterprise Wiki