I have the following problem with Tikz/Latex:
I have some nodes that contain text. Most text doesn't have letters that reach below the baseline. But for those nodes where it happens, the ratio and placement of node height and text/baseline is off. Have a look at the example image.
Solutions I know of:
There's a property for nodes: text depth
One can simply set it to 0pt
for the offending (or all) nodes.
Of course this is well documented in the pgfmanual
.
This is more of a pointer (can't get TikZ at the moment), but since you are not getting anything else, there are two things to try:
1) There is the $\smash[b]{\text{my text y}}$
(you need amsmath
for this).
2) Maybe \raisebox{0pt}[0pt]{my text y}
is what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With