I'd like to center (also left-align and right-align) a piece of sentence within one paragraph, which can be easily done in Word by [newline] + [center this line] + [newline]
. In LaTeX, however, the centering
command affects the whole paragraph, and to affect only groups, it requires a \par
at the start and the end of that group. Meanwhile, the center
environment adds additional vertical space. I know there's a centerline
command that fits my need, but it seems there isn't any counterparts in terms of "left-align" or "right-align". Here's the MWE:
\documentclass{article}
\begin{document}
I want to center\\
"This piece of text"\\
within this paragraph.
I don't want to break the
{\par\centering paragraph like\par}
this.
How to achieve the effect\\
\centerline{without \texttt{centerline}}\\
or \begin{center}
the \texttt{center} environment?
\end{center}
\end{document}