我制作了一个标准框架。它应该出现在我的文档的所有页面上。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{eso-pic}
\AddToShipoutPictureBG{%
\begin{tikzpicture}[overlay,remember picture]
\draw[line width=0.1pt]
($ (current page.north west) + (1.2cm,-1.2cm) $)
rectangle
($ (current page.south east) + (-1.2cm,1.2cm) $);
\end{tikzpicture}
}
\begin{document}
(Type your content here.)
\end{document}
答案1
该\draw
命令有一个rounded corners
选项,允许您定义四分之一圆的半径。这里我使用了1cm
,但请根据您的需要进行调整。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
% \usepackage{background}
\usetikzlibrary{calc}
\usepackage{eso-pic}
\AddToShipoutPictureBG{%
\begin{tikzpicture}[overlay,remember picture]
% V-----------------V
\draw[line width=0.1pt,rounded corners=1cm]
($ (current page.north west) + (1.2cm,-1.2cm) $)
rectangle
($ (current page.south east) + (-1.2cm,1.2cm) $);
\end{tikzpicture}
}
\begin{document}
(Type your content here.)
\end{document}