1

I made a standard frame. It should appears on all pages of my document.

\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}

enter image description here

How can I make it rounded corner? To get something like this: enter image description here

2

The \draw command has a rounded corners option which allows you to define the radius of the quarter circle. Here I used 1cm, but adjust to your needs.

\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}

enter image description here

  • Hi, Phelype Oleinik. It works excellent for me. Thanks a lot! – Alex Jan 30 '18 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.