
コード :
\documentclass{book}
\usepackage{tikz}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}
\draw (-3,0)--(3,0) node [below] {\scriptsize $\Omega$} ;
\draw (0,0) node[below]{0} node [below=3mm]{(a)}--(0,3) node[right]{\scriptsize $X_s(j\Omega)$};
\draw [-latex](2,0) node [below, rotate=-90] {\scriptsize $16000\pi$} --(2,1.5) node [right]{$\frac{\pi}{T}$};
\end{tikzpicture}
\end{figure}
\end{document}
縦書きのテキストを縦線の真下に配置しようとします。テキストは、中央が行の下部に揃った状態で、少し左に表示されます。縦書きのテキストを縦線の真下に配置するにはどうすればよいでしょうか。
答え1
west
この場合、適切なアンカーを選択する必要があります。
\documentclass{book}
\usepackage{tikz}
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}[nodes={font=\scriptsize}]
\draw (-3,0)--(3,0) node [below] {$\Omega$} ;
\draw (0,0) node[below]{0} node [below=3mm]{(a)}--(0,3) node[right]{$X_s(j\Omega)$};
\draw [-latex](2,0) node [ rotate=-90,anchor=west] {$16000\pi$} --(2,1.5) node [right]{$\frac{\pi}{T}$};
\end{tikzpicture}
\end{figure}
\end{document}
また、ノードの内容を入力するfont=\scriptsize
代わりにを使用する方が有利であることにも注意してください。これをすべてのノードに適用する場合は を使用します。\scriptsize
nodes={font=\scriptsize}