![如何在乳胶中插入页面框架?](https://linux22.com/image/383337/%E5%A6%82%E4%BD%95%E5%9C%A8%E4%B9%B3%E8%83%B6%E4%B8%AD%E6%8F%92%E5%85%A5%E9%A1%B5%E9%9D%A2%E6%A1%86%E6%9E%B6%EF%BC%9F.png)
答案1
不含额外软件包:
\documentclass{article}
\usepackage[margin=3cm]{geometry}
\begin{document}
\fboxsep1em
\fboxrule2pt
\noindent\fbox{\begin{minipage}
[c][\dimexpr\textheight-2\fboxsep-2\fboxrule]
[c]{\dimexpr\linewidth-2\fboxsep-2\fboxrule}
Text
\vfill
Text
\vfill
Text
\end{minipage}}
\end{document}
答案2
你可以用 TikZ 覆盖一个矩形(需要运行两次 LaTeX):
\documentclass{article}
\usepackage[margin=3cm]{geometry}
\usepackage{tikz}
\begin{document}
\tikz[overlay, remember picture] \draw ([xshift=3cm,yshift=-3cm]current page.north west) rectangle ([xshift=-3cm,yshift=3cm]current page.south east);
Text
\vfill
Text
\vfill
Text
\end{document}