
저는 현재 제한 값을 가리키는 TikZ 플롯에 대한 주석을 실현하려고 노력하고 있습니다(아래 그림 참조).
\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}
내가 가진 문제는 노드에 연결되는 선을 그릴 때 서쪽 앵커가 텍스트 중앙에 깔끔하게 배치되지 않고 전체 노드에 배치된다는 것입니다.
질문: 화살표가 전체 노드가 아닌 텍스트 중앙에 위치하도록 앵커를 정렬하려면 어떻게 해야 합니까?
답변1
\smash
한 가지 방법은 노드 배치에 영향을 주지 않으려는 텍스트에 사용하는 것입니다 . 또는 다음 두 단계로 노드를 배치할 수 있습니다.
암호:
\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}