1

I would like to start a report by juxtaposing two contrasting quotations opposite each other: one left justified on the top-left part of the page, the other right-justified on the top-right part, both starting on the same vertical position, i.e. directly opposite one other.

I'm having terrible difficulty getting this to work, and I haven't been able to find a way to do it with e.g. the epigraph package.

Can anyone think of a way to achieve this?

Thank you very much in advance.

2
  • Can you add a minimal example of what you've tried?
    – Alan Munn
    Oct 15, 2016 at 20:09
  • No, I never managed to even get close. But the solution using parbox, suggested by gernot, works perfectly.
    – James
    Oct 15, 2016 at 21:33

1 Answer 1

3

You can achieve this effect with ordinary \parboxes, their [t] option and the commands \raggedleft and \raggedright, like this.

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\noindent
\parbox[t]{3cm}{\raggedright
   The sentence to the right is true.%
}%
\hfill
\parbox[t]{2cm}{\raggedleft
   The sentence to the left is false.%
}
\bigskip

\lipsum
\end{document}

enter image description here

If you need it more than once, hide it in a new command (adapt 2cm and 3cm suitably).

\documentclass{article}
\usepackage{lipsum}
\newcommand\juxtaposed[2]%
  {\par\noindent
   \parbox[t]{3cm}{\raggedright#1}%
   \hfill
   \parbox[t]{2cm}{\raggedleft#2}%
   \bigskip\par
  }
\begin{document}
\juxtaposed
  {The sentence to the right is true}%
  {The sentence to the left is false.}
\lipsum
\end{document}
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .