Re: Zeilenabstände zwischen Boxen

Ulrike Fischer <[email protected]>
Newsgroups gmane.comp.tex.german
Message-ID <[email protected]>
Am Thu, 28 Jul 2022 14:48:21 +0200 schrieb Ulrich Goebel:

> Hallo zusammen,
> 
> der vertikale Abstand zweier Boxen (\parbox) variiert je nach Inhalt. 
> Das irritiert und lässt mich gerade verzweifeln. Minimalbeispiel:

> 
> Kann mir jemand dieses Verhalten erklären? Und hat jemand eine Idee, wie 
> ich dafür sorgen kann, dass der vertikale Abstand in jedem Fall den 
> "normalen" Wert hat, also wie in den ersten beiden Fällen?

https://tex.stackexchange.com/a/430606/2388

Benutze [t] und \strut:

\documentclass[10pt]{article}

\begin{document}
\noindent%
Eins zwei\\
Eins zwei

\vspace{2cm}
\noindent%
\parbox{30mm}{Eins zwei}\\
\parbox{30mm}{Eins zwei}

\vspace{2cm}
\noindent%
\parbox[t]{30mm}{Eins zwei drei vier fünf sechs sieben\strut}\\
\parbox[t]{30mm}{Eins zwei drei vier fünf sechs sieben}

\vspace{2cm}
\noindent%
\parbox[t]{30mm}{Eins zwei}\\
\parbox[t]{30mm}{Eins zwei drei vier fünf sechs sieben\strut}

\vspace{2cm}
\noindent%
\parbox[t]{30mm}{Eins zwei drei vier fünf sechs sieben\strut}\\
\parbox[t]{30mm}{Eins zwei}

\end{document}

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

-- 
FAQ: http://texfragen.de/
Durchsuchbares Archiv: https://www.listserv.dfn.de/sympa/arc/tex-d-l 
Unsubscribe/Verwaltung: https://www.listserv.dfn.de/sympa/info/tex-d-l
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.