I have two minipages and the problem that the height of a text line depends on the characters I am using. How can I always have the same height for a text line in a minipage?
I have used Tikz to demonstrate my problem. As you can see the baselines of each row are not aligned.
\documentclass{article}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node[anchor=north west, inner sep=0, rectangle, red, draw, minimum width=0.5cm](A) {%
\begin{minipage}{0.5cm}%
x\\
x%
\end{minipage}};
\node[inner sep=0, rectangle, blue, draw, minimum width=0.5cm, right=0.1cm of A.north east, anchor=north west](B) {%
\begin{minipage}{0.5cm}%
M\\
M%
\end{minipage}};
\end{tikzpicture}
\end{document}





minipages ortikzpictures? – Sigur Jan 07 '14 at 22:09\begin{minipage}[t]so they align on the baseline of the top row – David Carlisle Jan 07 '14 at 22:10minipageinside anodesince anodeworks like aminipageby itself? – Sigur Jan 07 '14 at 22:17\strutto all lines. – barbara beeton Jan 07 '14 at 22:19