\documentclass[a4paper]{article}
\usepackage{tikz}
\usepackage[margin=1.0in]{geometry}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}[font=\small]
\foreach \line in {1,2,...,40} {
\begin{scope}[yshift=-5mm]
\foreach \letter/\position in {1/1, 2/2, 3/3, 4/4, 5/5} {
\node at (0,0) {\normalsize{\line}};
\node[draw,circle,inner sep=0.2mm] at ({\position * 0.5},0) {\letter};
}
\end{scope}
}
\end{tikzpicture}
\end{document}
输出未按预期展开 5 毫米。我不确定应该把yshift
代码放在哪里。