[Tex/LaTex] Fancy Styled Borders in LaTeX

tikz-pgftikz-styles

How to draw attractive Borders in LaTeX. A Sample image like this:
enter image description here

Best Answer

Remarks

I traced the bitmap provided using Inkscape and exported the vector paths to TikZ using the inkscape2tikz plugin.

Then I adjusted the shift of coordinates, to have a specified origin (here in the top right corner of the ornament). And wrapped everything into a macro \ornament.

To place it on the page I used a tikzpicture with the remember picture and overlay options. For more on these options review section 16.13 "Referencing Nodes Outside the Current Pictures" on page 199 of the TikZ 2.10 manual.

Implementation

You need at least two passes of typesetting. See this GitHub Gist for the inkscape.tex file.

\documentclass{article}
\usepackage{tikz,blindtext}
\input{inkscape.tex}
\title{Ornaments}
\author{Subham Soni}
\begin{document}
\maketitle
\begin{tikzpicture}[remember picture,overlay]
    \node[below left] at ([xshift=-1cm,yshift=-1cm]current page.north east) {\ornament{scale=1}};
\end{tikzpicture}
\blindtext
\end{document}

Output

enter image description here

Related Question