1

I would like this:

enter image description here

With the Tex code at the bottom I obtain this:

enter image description here

Tex code:

\documentclass{article}
\usepackage[utf8]{inputenc}

\begin{document}

Text1  \> \parbox{0.8\textwidth}{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla}

\end{document}

I need some assistance, with a task which should be trivial, namely to have "Text1" and "bla bla bla [...]" to begin in the same line level.

NB. I already used a lot of time to figure out the parbox could wrap the text in the "tab-enviroment" - even though this should also be relatively simple.

2
  • 2
    try \parbox[t]{0.8\textwidth}{...} (observe [t])
    – Zarko
    Feb 4, 2021 at 18:04
  • Thank you, this was the quickfix I needed. Feb 4, 2021 at 18:53

1 Answer 1

2

Anchor the \parbox at the [t]op:

enter image description here

\documentclass{article}

\begin{document}

Text1  \> \parbox{0.8\textwidth}{\strut bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla\strut}

Text1  \> \parbox[t]{0.8\textwidth}{\strut bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla\strut}

\end{document}

Adding a \strut to the start/end of a \parbox ensures proper alignment with the baselines for surrounding structures.

1
  • Thanks, this was the solution I was seeking. Feb 4, 2021 at 18:54

You must log in to answer this question.

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