4

I had two different lines into a block flushright.it is so:

 Foo Hello Everyone 

I would align these two lines in this way:

Foo Hello Everyone 

Edit:

\begin{flushright} Foo Hello Everyone \end{flushright} 

I would align Foo to the second line

3
  • 2
    Please add a minimal working example (MWE) that illustrates your problem. It should include your existing code using the flushright environment. Have you tried flushleft? Commented Sep 7, 2012 at 22:17
  • Edited and insert an example Commented Sep 7, 2012 at 22:24
  • Use \begin{flushright} Foo \par Hello Everyone \end{flushright} or \begin{flushleft} Foo \par Hello Everyone \end{flushleft} or use \\ instead of \par. It depends on your usage/implementation. Commented Sep 7, 2012 at 22:27

1 Answer 1

6

Use a tabular:

\begin{flushright} \begin{tabular}{@{}l@{}} Foo \\ Hello everyone \end{tabular} \end{flushright} 

With @{} we remove the default space that's inserted also at the left and right of a tabular.

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.