是否可以自动用某些内容填充第二列?

是否可以自动用某些内容填充第二列?

是否有可能在不手动重复的情况下达到以下结果\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}

相关内容