center the content (text!) of a box
2008-07-01 07:40:25 GMT
Hi,
I'd like to center (horizontally and vertically) the content of the box
in the following example with respect to the parentheses. This means
that the exponent should be ignored. I tried to achieve this with some
\vphantom-commands (as I usually do outside of pgf/tikz) but irritatingly
with no effect. What do I have to do?
\documentclass[12pt]{scrartcl}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (-0.5,-0.5) rectangle (0.5,0.5);
\path (0,0) node {$\vphantom{_2}\left(\cdot\right)^2\vphantom{_2}$};
\end{tikzpicture}
\end{document}
Regards,
Juergen
------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php
_______________________________________________ pgf-users mailing list pgf-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgf-users
RSS Feed