答案1
geometry
如果您需要在文本周围添加边框,我建议您在边框和文本之间留出一些空间。对于您的页面模板,您可以将包、包和一些 TikZ组合fancyhdr
用于框架:
\documentclass[a4paper]{article}
\usepackage[
top=8mm,
bottom=8mm,
left=27mm,
right=44mm,
marginparwidth=31mm,
marginparsep=4mm
]{geometry}
\usepackage{tikz}
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\fancyhead[L]{\tikz[overlay, remember picture] {
\draw ([shift={(25mm,-7mm)}]current page.north west) rectangle ++(178mm,-283mm);
\draw ([shift={(168mm,-7mm)}]current page.north west) -- ++(0,-283mm);
\draw ([shift={(168mm,-13mm)}]current page.north west) -- ++(35mm,0);
\node[minimum width=31mm] at ([shift={(185.5mm,-10mm)}]current page.north west) {Page \thepage};
} }
\usepackage{lipsum}
\begin{document}
\lipsum[1-3]\marginpar{This is an annotation in the margin.}
\lipsum
\end{document}