答案1
加载geometry
包来设置边距。可以使用包插入文本区域的边框scrlayer-scrpage
。
\documentclass{book}
\usepackage[margin=5mm,inner=15mm]{geometry}
\usepackage{scrlayer-scrpage}
\DeclareNewLayer[
background,
textarea,
addhoffset=-\fboxrule,
addvoffset=-\fboxrule,
addwidth=2\fboxrule,
addheight=2\fboxrule,
contents={%
\fbox{\parbox[c][\dimexpr\layerheight-2\fboxsep-2\fboxrule\relax]
{\dimexpr\layerwidth-2\fboxsep-2\fboxrule\relax}{\strut}}%
}
]{border}
\AddLayersToPageStyle{@everystyle@}{border}
\usepackage{blindtext}% only for dummy text
\begin{document}
\blinddocument
\end{document}