我正在寻找在页面中添加双线边框的选项;边框的左上角如下所示(边框将连续整个页面的宽度和高度)。
答案1
你是指这样的吗?
代码:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{eso-pic}
\usepackage{lipsum}
\AddToShipoutPictureBG{%
\begin{tikzpicture}[overlay,remember picture]
\draw[line width=4pt]
($ (current page.north west) + (1cm,-1cm) $)
rectangle
($ (current page.south east) + (-1cm,1cm) $);
\draw[line width=1.5pt]
($ (current page.north west) + (1.2cm,-1.2cm) $)
rectangle
($ (current page.south east) + (-1.2cm,1.2cm) $);
\end{tikzpicture}
}
\begin{document}
\lipsum[1-16]
\end{document}
如果您只需要一个页面,请使用\AddToShipoutPictureBG
( )的星号版本,并将该代码放在所需页面中。\AddToShipoutPictureBG*