1

I have this document:

\documentclass{article}
\begin{document}
$\rightarrow$ \parbox{6cm}{The quick brown fox jumped over the lazy dog. You've eaten pepper? Now drink juice!}
\end{document}

which produces the following:

enter image description here

I want the arrow to be aligned with "The quick brown fox", as though the parbox' first line was just continuing the outer paragraph right after the \rightarrow. What's the idiomatic way to do that?

2
  • 2
    Use \parbox[t]. Aug 17 '17 at 9:39
  • @PeterGrill: Doh! Make this an answer please.
    – einpoklum
    Aug 17 '17 at 9:40
2

You can use \parbox[t] option to achieve the desired effect. There is also [c] (which is the default) and [b] options.

enter image description here

Code:

\documentclass{article}
\begin{document}
$\rightarrow$ \parbox[t]{6cm}{The quick brown fox jumped over the lazy dog. You've eaten pepper? Now drink juice!}

\bigskip
$\rightarrow$ \parbox[c]{6cm}{The quick brown fox jumped over the lazy dog. You've eaten pepper? Now drink juice!}

\bigskip
$\rightarrow$ \parbox[b]{6cm}{The quick brown fox jumped over the lazy dog. You've eaten pepper? Now drink juice!}
\end{document}
1

Just add [t] after \parbox and you'll get what you want.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.