I want to write this form of sentence,
text1 text2
in the same sentence in the first page of my report. I tried to use flushleft and I right, but I got every text in a different sentence, like this:
text1
text2
I used these instructions:
begin{flushleft}
\textbf{text1}
\begin{flushright}
\textbf{text2}
\end{flushright}
\end{flushleft}
How do I fix it?
Best Answer
Like this? (The
showframe
package is only to show the alignment, just remove it for production run)The
flushleft
orflushright
environments introduce some vertical spacing each time, this is cause for the two different lines!Use
\hfill
for easy cases, or a tabular, for more complicated setups, (i.e. line wrapping etc., which is quite likely if 'sentences' are to be used instead of short words)Update, with some wrapping for sentences