\centering
The \centering
declaration corresponds to the center
environment. This declaration can be used inside an environment such
as quote
or in a parbox
. Thus, the text of a figure or
table can be centered on the page by putting a \centering
command at the beginning of the figure or table environment.
Unlike the center
environment, the \centering
command
does not start a new paragraph; it simply changes how LaTeX formats
paragraph units. To affect a paragraph unit's format, the scope of
the declaration must contain the blank line or \end
command (of
an environment such as quote) that ends the paragraph unit.
Here's an example:
\begin{quote} \centering first line \\ second line \\ \end{quote}