
Atualmente estou tentando realizar uma anotação em um gráfico TikZ, onde aponto um valor limite (veja imagem abaixo).
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\draw [stealth-,thin] (0,0.9)-- +(16pt,0pt) node[right,font=\footnotesize]
{Limiting value: $\lim\limits_{x\rightarrow 0}\omega=0$};
\end{tikzpicture}
\end{document}
O problema que tenho é que quando desenho uma linha que se conecta ao nó, minha âncora oeste não fica perfeitamente centralizada no texto, mas em todo o nó.
Pergunta: Como posso obter o alinhamento da minha âncora de forma que a seta fique bem centralizada no texto, e não no nó inteiro?
Responder1
Uma maneira é usar \smash
no texto que você não deseja que afete a localização do nó. Alternativamente, você poderia colocar o nó em duas etapas:
Código:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw [stealth-,thin] (0,0.9)-- +(16pt,0pt) node[right,font=\footnotesize]
{Limiting value: \smash{$\lim\limits_{x\rightarrow 0}\omega=0$}};
\end{tikzpicture}
\medskip
\begin{tikzpicture}
\draw [stealth-,thin] (0,0.9)-- +(16pt,0pt) node[right,font=\footnotesize] (A) {Limiting value:};
\node [anchor=west,font=\footnotesize, inner sep=0pt] at (A.east) {$\lim\limits_{x\rightarrow 0}\omega=0$};
\end{tikzpicture}
\end{document}