是否有可能在不手动重复的情况下达到以下结果\hrulefill
?
在实际文档中,只有\hrulefill
一个 TikZ 网格。
\documentclass{book}
\usepackage{geometry}
\usepackage{multicol}
\usepackage{mwe}
\begin{document}
Some text in one column \blindtext
\begin{multicols}{2}
Some text in two columns \blindtext
\vfill\null
\columnbreak
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\end{multicols}
\newpage
Some other text in one column \blindtext
\begin{multicols}{2}
Some other text in two columns \blindtext[2]
\vfill\null
\columnbreak
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\hrulefill
\end{multicols}
\end{document}
答案1
真正的问题是,你能接受这个答案吗?
\documentclass{book}
\usepackage{geometry}
\usepackage{multicol}
\usepackage{mwe}
\begin{document}
Some text in one column \blindtext
\begin{multicols}{2}
Some text in two columns \blindtext
\vfill\null
\columnbreak
\null
\vskip-\baselineskip
\leaders
\hbox to \columnwidth{\hrulefill Pineapple Pizza\hrulefill}
\vfill
\null
\end{multicols}
\newpage
Some other text in one column \blindtext
\begin{multicols}{2}
Some other text in two columns \blindtext[2]
\vfill\null
\columnbreak
\null
\vskip-\baselineskip
\leaders
\hbox to \columnwidth{\hrulefill Pineapple Pizza\hrulefill}
\vfill
\null
\end{multicols}
\end{document}