答案1
如果数字与线条无关,这基本上就是背景图像。例如,使用 Ti 的快速而粗糙的钾Z 和eso-pic
:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{eso-pic}
\AddToShipoutPictureBG{%
\begin{tikzpicture}[remember picture, overlay]
\foreach \i in {1,...,65}
\node[font=\small, color=cyan, text width=3em, align=right]
at ([yshift=-4.1*\i mm]current page.north west) {\i};
\end{tikzpicture}%
}
\begin{document}
\lipsum
\end{document}
您显然可以对其进行改进,以便 65 行自动适应页面高度,而无需借助魔法-4.1\i mm
或类似的东西......
如果你想活出差距,很容易从另一个点开始:
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{tikz}
\usepackage{lipsum}
\usepackage{eso-pic}
\AddToShipoutPictureBG{%
\begin{tikzpicture}[remember picture, overlay]
\coordinate (start-numbers) at ([yshift=-2cm]current page.north west);
\foreach \i in {1,...,65}
\node[font=\small, color=cyan, text width=3em, align=right]
at ([yshift=-3.8*\i mm]start-numbers) {\i};
\end{tikzpicture}%
}
\begin{document}
\lipsum
\end{document}