
私はこの投稿の背後にあるアイデアに従っています
\baselineskip
ドキュメント内のフォント ファミリやその他の測定値を変更してもすべてが適切に収まるように、ノードを互いに正確に 1 つずつ配置したいと思います。
私がしたのは
\node [font=\Large] (top) at (5,$0 + \baselineskip * 1$) {$\bullet$ [0]};
\node [font=\Large] (middle) at (5,$0 + \baselineskip * 2$) {$\bullet$ [1]};
\node [font=\Large] (bottom) at (5,$0 + \baselineskip * 3$) {$\bullet$ [2]};
これは基本的に tikz の「数学/計算モード」ですが、期待どおりに動作せず、アイデアが尽きています。
答え1
なぜライブラリを使用してそれを実行したいのですかcalc
? ところで、ライブラリを使用しようとした方法は間違っています。簡単な解決策は次のとおりです。
\documentclass[12pt]{article}
\usepackage{tikz}
\begin{document}
\foreach \i in {12,24,36}
{
\setlength{\baselineskip}{\i pt}
\begin{tikzpicture}
\node [font=\Large] (top) at (5,1*\baselineskip) {$\bullet$ [0]};
\node [font=\Large] (middle) at (5,2*\baselineskip) {$\bullet$ [1]};
\node [font=\Large] (bottom) at (5,3*\baselineskip) {$\bullet$ [2]};
\end{tikzpicture}
\bigskip
}
\end{document}