I have three nodes of equal size which contain text of different lengths. This causes line breaks in two of the nodes.
I would like all of the text to be aligned with the last line of text in the third node. I have fiddled with text depth but because LaTeX reads the text in the third node as one line I don't think it's working the way I want it to.
Is there a simple solution to this problem? Any guidance is appreciated!
\documentclass{minimal}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node [draw, text width=5em, minimum height = 5em, align = center] (node1) {One line};
\node [draw, right = 1cm of node1, text width=5em, minimum height = 5em, align = center] (node2) {One linebreak};
\node [draw, right = 1cm of node2, text width=5em, minimum height = 5em, align = center] (node3) {This text has two linebreaks};
\end{tikzpicture}
\end{document}
Best Answer
You could place the text separately from the boxes: