页面周围有多个边框

页面周围有多个边框

border我当时想在简历中添加黑色的文字,为简历画龙点睛。我尝试使用\fancybox,但效果并不令人满意。

\documentclass[a4paper]{article}

\usepackage[a4paper,vmargin={20mm,20mm},hmargin={20mm,20mm}, includehead,%
 includefoot]{geometry}
 \usepackage{fancybox}

\begin{document}

\fancypage{\setlength{\fboxsep}{0pt}\fbox}{}

Document text goes here...

\end{document}

我尝试获取的输出与此类似。

在此处输入图片描述

如何获得覆盖整个页面的多个凹陷矩形?

答案1

tikz

\documentclass[12pt]{scrartcl}
\usepackage{lipsum}
\usepackage[a4paper,margin=1in,heightrounded]{geometry}
%
\usepackage{tikz}
%
\usetikzlibrary{calc}
%
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}[overlay,remember picture]
    \draw [line width=1pt,rounded corners=7pt,
        ]
        ($ (current page.north west) + (1cm,-1cm) $)
        rectangle
        ($ (current page.south east) + (-1cm,1cm) $);
        \draw [xshift=4mm,dashed,line width=1pt,rounded corners=7pt]
        ($ (current page.north west) + (.5cm,-.5cm) $)
        rectangle
        ($ (current page.south east) + (-.5cm,.5cm) $);
    \draw [line width=1pt,rounded corners=7pt]
        ($ (current page.north west) + (1.5cm,-1.5cm) $)
        rectangle
        ($ (current page.south east) + (-1.5cm,1.5cm) $);
\end{tikzpicture}
%
\lipsum[1-6]
\end{document}

background

\documentclass[12pt]{scrartcl}
\usepackage{xcolor,lipsum}
\usepackage[a4paper,margin=1in,heightrounded]{geometry}
%
\usepackage{background}
%
\usetikzlibrary{calc}
\SetBgScale{1}
\SetBgAngle{0}
\SetBgColor{black}
\SetBgContents{
\begin{tikzpicture}[overlay,remember picture]
    \draw [line width=1pt,rounded corners=7pt,
        ]
        ($ (current page.north west) + (1cm,-1cm) $)
        rectangle
        ($ (current page.south east) + (-1cm,1cm) $);
        \draw [xshift=4mm,dashed,line width=1pt,rounded corners=7pt]
        ($ (current page.north west) + (.5cm,-.5cm) $)
        rectangle
        ($ (current page.south east) + (-.5cm,.5cm) $);
    \draw [line width=1pt,rounded corners=7pt]
        ($ (current page.north west) + (1.5cm,-1.5cm) $)
        rectangle
        ($ (current page.south east) + (-1.5cm,1.5cm) $);
\end{tikzpicture}
}
%
\begin{document}
\pagestyle{empty}
\lipsum[1-6]
\end{document}

在此处输入图片描述

答案2

这是我在使用的代码,在多个页面上创建行resume后粘贴代码。\newpage

\usepackage[a4,frame]{crop}
\usepackage{tikz}
\usetikzlibrary{calc}

%%%
%%%The code below will help us draw borders.
%%%
\pagestyle{empty}
\begin{tikzpicture}[overlay,remember picture]
\draw [line width=3pt,rounded corners=1pt,]
    ($ (current page.north west) + (1cm,-1cm) $)
    rectangle
    ($ (current page.south east) + (-1cm,1cm) $);       
\end{tikzpicture}

%%%Till here 
%%%
%%%

感谢所有帮助我完成简历的人。

在此处输入图片描述

相关内容