[Tex/LaTex] Difference between flushright and raggedleft

horizontal alignment

What is the difference between flushright and raggedleft?

Best Answer

\begin{flushright}...\end{flushright} is the environment form of \raggedleft. They are the equivalent of \begin{center}...\end{center} and \centering, respectively. Here's an example using the two:

\documentclass[twocolumn]{article}
\usepackage{lipsum}
\listfiles\begin{document}
\lipsum[1]
\begin{flushright}\lipsum[2]\end{flushright}
\lipsum[3]

\newpage
\lipsum[4]
{\raggedleft\lipsum[5]\par}
\lipsum[6]
\end{document}

In particular, note the extra space around flushright.

Related Question