left right center alignment in latex code example
Example: centering text latex
\documentclass{article}
\begin{document}
This is a really long sentence as an example. The second have of this\\
\centerline{sentence should be centered.}
\end{document}