我尝试用点填充页面的剩余部分,但该\dotfill
命令还不够,因为它只用点填充到行末。
我想让我的文档中有两页只包含点。
那么我该怎么做呢?
答案1
以下是一个想法:
% My standard header for TeX.SX answers:
\documentclass[a4paper]{article} % To avoid confusion, let us explicitly
% declare the paper format.
\usepackage[T1]{fontenc} % Not always necessary, but recommended.
% End of standard header. What follows pertains to the problem at hand.
\usepackage{lipsum}
\makeatletter
\newcommand*\dotcolumnfill{%
\par
\null
\vskip -\ht\strutbox
\xleaders \hb@xt@ \hsize {%
\strut \cleaders \hb@xt@ .44em{\hss.\hss}\hfill
}\vfill
\vskip \ht\strutbox
\break
}
\makeatother
\begin{document}
With some text before.
\lipsum*[1]
\dotcolumnfill
\lipsum[2]
Whole pages of dots follow.
\newpage
\dotcolumnfill
\dotcolumnfill
Some more text.
\end{document}
但是也许 OP 更喜欢使用\leaders
而不是\xleaders
来进行垂直粘合……
答案2
\documentclass{article}
\usepackage[svgnames]{xcolor}
\usepackage{tikz}
\usepackage{tikzpagenodes}
\usepackage{lipsum}
\begin{document}
\begin{tikzpicture}[remember picture,overlay,shift={(current page.south west)},x=1in,y=1in]
\foreach \x in {0, ..., 85}
\foreach \y in {0, ..., 110} {
\draw[fill,LightGrey] (0.1*\x,0.1*\y) circle(0.01in);
}
\end{tikzpicture}
This is the coolest effect ever seen.
\lipsum[1-4]
\end{document}