flushright

\begin{flushright}
  line1 \\
  line2 \\
  ...
\end{flushright}

An environment that creates a paragraph whose lines are flush to the right-hand margin and ragged left. If you have lines that are too long to fit the margins then LaTeX will linebreak them in a way that avoids hyphenation and stretching or shrinking inter-word spaces. To force a new line use a double backslash, \\. For the declaration form see \raggedleft.

For an example related to this environment, see flushleft, where one just have mutatis mutandis to replace flushleft by flushright.

© 2007–2018 Karl Berry
Public Domain Software
http://latexref.xyz/flushright.html