0

I want the height of a multi-line TikZ node to depend only on the number of lines it contains, not on whether the text on the first and last line is aaa or aAq (the famous height and depth problem).

I tried adding \strut (or \vphantom{Aq}) before and after the node text to ensure the first and last line have the full height, but this doesn't work well if the node text starts/ends with an empty line or a list environment and probably other things. Fixing the node height as proposed for many similar questions here doesn't work either because I don't know how many lines there will be.

So, how do I achieve this?

gTcV
  • 1,065

0 Answers0