
答案1
如果我們假設您正在使用不平衡列並希望有列邊框全部文件的頁面,然後您可以使用以下命令將它們作為覆蓋的一部分插入背景中eso-pic
(或其他一些包;有多個選項):
\documentclass{article}
\usepackage{lipsum,multicol}
\usepackage[paper=a3paper,margin=1in]{geometry}
\usepackage{xcolor,eso-pic}
\newlength{\columnwidths}
\AtBeginDocument{\setlength{\columnwidths}{\dimexpr.25\textwidth-.75\columnsep}}
\AddToShipoutPictureBG{% Add to *all* pages in the BackGround
\AtTextLowerLeft{%
\hspace{\dimexpr-\fboxsep-\fboxrule}%
\fcolorbox{red}{white}{\rule{\columnwidths}{0pt}\rule{0pt}{\textheight}}% First column
\hspace{\dimexpr\columnsep-2\fboxsep-2\fboxrule}%
\fcolorbox{red}{white}{\rule{\columnwidths}{0pt}\rule{0pt}{\textheight}}% Second column
\hspace{\dimexpr\columnsep-2\fboxsep-2\fboxrule}%
\fcolorbox{red}{white}{\rule{\columnwidths}{0pt}\rule{0pt}{\textheight}}% Third column
\hspace{\dimexpr\columnsep-2\fboxsep-2\fboxrule}%
\fcolorbox{red}{white}{\rule{\columnwidths}{0pt}\rule{0pt}{\textheight}}% Fourth column
}%
}
\begin{document}
\sloppy% Just for this example
\begin{multicols*}{4}
\lipsum[1-50]
\lipsum[1-9]
\end{multicols*}
\end{document}