When putting a tikzpicture environment inside an itemize environment, the bullet point is not correctly aligned with the tikz picture. In this case, "correct" means that the bullet should be vertically centered with respect to the picture.
I've previously just tweaked the baseline manually to get what I want, but the tweak will depend on the font I'm using, etc. I'd like to avoid the use of a magic number in my baseline tweak, so that it will adjust automatically to the font I'm using. Any suggestions how to accomplish that?
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{itemize}
\item
\begin{tikzpicture}%[baseline = -2.5pt] % magic number tweak
\draw [very thick, ->] (0,0) -- (2,0);
\node[left] at (0,0) {XX};
\node[right] at (2,0) {YY};
\end{tikzpicture}
\end{itemize}
\end{document}



-0.5exwill work in the majority of the cases. – Claudio Fiandrino Sep 30 '14 at 12:58-0.5ex, the bullet aligns with the upper half of a x-height character rather than being centered with it. – Sverre Sep 30 '14 at 13:01