I want to create two columns next to each other. The left side contains a text in two columns using the multicol package. On the left side is some other content.
I've tried minipage, but in combination with multicol it fails in vertical aligning both minipages correctly.
Minimal working example:
\documentclass{article}
\usepackage{multicol}
\usepackage{blindtext}
\begin{document}
\begin{minipage}[t]{0.5\linewidth}
\noindent
\begin{multicols}{2}
\blindtext
\end{multicols}
\end{minipage}
\begin{minipage}[t]{0.5\linewidth}
\blindtext
\end{minipage}
\end{document}
The result, with a vertical misalignment of the top of both texts:
Am I doing something wrong here?
Best Answer
You have to set an anchor at the top for
[t]
to take effect, because the top line inside themulticols
environment is not the top line in the envelopingminipage
:\vspace{0pt}
is sufficient. Also you need to countermand the insertion of a glob of glue (we need to back up by the difference between\topskip
and the height of a strut) and to set an initial\strut
to ensure good alignment between the baselines.The rule shows the alignment. Thanks to Frank Mittelbach for spotting a mistake.