TikZ:非常高的文档给出“尺寸太大”

TikZ:非常高的文档给出“尺寸太大”


below=7cm of \N.north我有一个问题,如果我使用--->设置 N=118 个节点,我的文档就会变得太高

! Dimension too large.

--->我能做什么?'

\documentclass{article}
%\documentclass[border=5mm, varwidth]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}

\begin{tikzpicture}[nodes={draw, fill=yellow}]
\node[](0){}; % seems to be needed
\foreach[
count=\n from 0, evaluate={\N={\n>0 ? int(\n-1) : \n}}
] \tablerow in {1,2,...,117}{
\node[anchor=north, 
below=7cm of \N.north, % works not, but wanted
%below=1cm of \N.north, % works
](\n){\n};
}
\end{tikzpicture}

\end{document}

相关内容