Pgfornament

Ce paquet (package) permet l'utilisation de motifs d'ornements, comme les exemples ci-dessous le montrent dans un format que peut manipuler PGF-TIKZ. L'idée provient de psvectorian paquet de Patrick Fradin et je me suis inspiré d'une partie de ce travail. Je remercie Vincent Le Moign pour nous avoir autorisé à travailler avec ses ornements au format PGF-TIKZ. Les ornements ont été extraits du fichier EPS du site: vectorian.net . L'auteur du fichier nous autorise à exploiter les ornements au format PGF, visitez s'il vous plait son site.

Vous trouverez la dernère version de ce package sur le site CTAN

This new package produces vector ornaments, like the examples shown below. The idea comes from the psvectorian package of Patrick Fradin and a lot of things are inpired from it. I am grateful to Vincent Le Moign for allowing me to distribute the ornaments in the format PGF-TIKZ. The archive contains 89 vector ornaments. These are defined in a format usable by TikZ, they were extracted from the EPS file from the site: vectorian.net . You can find the Free Sample of Vector ornaments on this site. The author of this package allows us to provide these ornaments in the pgf format, please visit his website.

I would like to thank P. Fradin for allowing me to use its work and also Enrico Gregorio for some great and useful ideas.

You can download a version of this package on the CTAN website

Exemple 1

Exemple 1.


[PDF] [TEX]

\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\PassOptionsToPackage{dvipsnames,svgnames}{xcolor}
\usepackage[object=vectorian]{pgfornament}
\usetikzlibrary{shapes.geometric,calc}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}

\begin{document}
\pagecolor{fondpaille}
\color{Maroon} 

\begin{center}
  \begin{tikzpicture}[color=Maroon,transform shape,scale=1.5,
                     every node/.style={inner sep=0pt}]
  \node[minimum size=10cm,fill=Maroon!20,inner sep=0pt](vecbox){}; 
  \node[anchor=north west] at (vecbox.north west){\pgfornament[width=2cm]{63}};
  \node[anchor=north east] at (vecbox.north east){\pgfornament[width=2cm,symmetry=v]{63}};
  \node[anchor=south west] at (vecbox.south west){\pgfornament[width=2cm,symmetry=h]{63}};
  \node[anchor=south east] at (vecbox.south east){\pgfornament[width=2cm,symmetry=c]{63}};
  \node[anchor=north] at (vecbox.north){\pgfornament[width=6cm,symmetry=h]{46}};
  \node[anchor=south] at (vecbox.south){\pgfornament[width=6cm]{46}};
  \node[anchor=north,rotate=90] at (vecbox.west){\pgfornament[width=6cm,symmetry=h]{46}};
  \node[anchor=north,rotate=-90] at (vecbox.east){\pgfornament[width=6cm,symmetry=h]{46}};
  \node[inner sep=6pt] (text) at (vecbox.center){\Huge Ornaments};
  \node[anchor=north] at (text.south){\pgfornament[width=5cm]{75}};
  \node[anchor=south] at (text.north){\pgfornament[width=5cm,symmetry=h]{75}};
  \end{tikzpicture} 
\end{center}

\end{document}
                       


Exemple 2

Exemple 2.


[PDF] [TEX]

\documentclass{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\PassOptionsToPackage{dvipsnames,svgnames}{xcolor}  
\usepackage[object=vectorian]{pgfornament}   
\usetikzlibrary{shapes.geometric,calc}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\begin{document}
\pagecolor{fondpaille}
\color{Maroon}   

\begin{tikzpicture}
\node[regular polygon, regular polygon sides=5, 
      minimum size=8cm,inner sep=0pt](h)  {}; 
\foreach \i [count=\next from 2] in {1,...,5}
  {% 
   \draw (h.corner \i) to [ornament=84] (h.corner \next);
   \pgfmathtruncatemacro{\next}{mod(\next,5)} }
\end{tikzpicture}     
\end{document}          


Exemple 3

>Exemple3.
[PDF] [TEX]
\documentclass{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[dvipsnames]{xcolor} 
\usepackage[object=vectorian]{pgfornament}
\usetikzlibrary{calc}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}

\begin{document}
\pagecolor{fondpaille}
\color{Maroon} 
\begin{tikzpicture}[every node/.style={inner sep=0pt}]   
\node[text width=8cm,align=center](Text){%
In visions of the dark night\\
I have dreamed of joy departed-\\
But a waking dream of life and light\
Hath left me broken-hearted.\\
\bigskip
Ah! what is not a dream by day\\
To him whose eyes are cast \\
On things around him with a ray \\
Turned back upon the past? \\
\bigskip        
That holy dream- that holy dream,\\
While all the world were chiding,\\
Hath cheered me as a lovely beam\\
A lonely spirit guiding.\\
\bigskip        
What though that light, thro' storm and night,\\
So trembled from afar- \\
What could there be more purely bright \\
In Truth's day-star? \\
\vspace{24pt}
 A Dream  (1827) by Edgar Allan Poe 
} ;
\node[shift={(-1cm,1cm)},anchor=north west](CNW)  at (Text.north west)
               {\pgfornament[width=2cm]{61}};
\node[shift={(1cm,1cm)},anchor=north east](CNE)   at (Text.north east)
               {\pgfornament[width=2cm,symmetry=v]{61}}; 
\node[shift={(-1cm,-1cm)},anchor=south west](CSW) at (Text.south west)
               {\pgfornament[width=2cm,symmetry=h]{61}}; 
\node[shift={(1cm,-1cm)},anchor=south east](CSE)  at (Text.south east)   
               {\pgfornament[width=2cm,symmetry=c]{61}};  
\pgfornamenthline{CNW}{CNE}{north}{87}
\pgfornamenthline{CSW}{CSE}{south}{87}
\pgfornamentvline{CNW}{CSW}{west}{87}
\pgfornamentvline{CNE}{CSE}{east}{87} 
\end{tikzpicture}
\end{document}


Exemple 2

Exemple 4.


[PDF] [TEX]

\documentclass{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[dvipsnames]{xcolor} 
\usepackage{graphicx,pgfornament}    
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\usepackage{tikz}
\usetikzlibrary{matrix,arrows}   

\begin{document} 
\pagecolor{fondpaille} 
\color{Maroon}%
\setlength{\fboxsep}{0pt}
\begin{enumerate}
  \item Symmetry  vertical axis  
  \fbox{\pgfornament[width=4cm]{2}}%  
  \pgfornament[width=4cm,symmetry=v]{2} 
  
 \item Symmetry  horizontal  axis   
  \fbox{\pgfornament[width=4cm]{2}}%
  \pgfornament[width=4cm,symmetry=h]{2} 
   
 \item Origin Symmetry    
  \fbox{\pgfornament[width=4cm]{2}}% 

  \hspace*{4cm}\pgfornament[width=4cm,symmetry=c]{2}   
\end{enumerate}
\end{document}


Exemple 5

Exemple 5.


[PDF] [TEX]

\documentclass{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[dvipsnames]{xcolor} 
\usepackage[object=vectorian]{pgfornament}   
\usetikzlibrary{shapes.geometric,calc}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\begin{document}
\pagecolor{fondpaille}
\color{Maroon} 
  
\begin{tikzpicture}
\node (A) at (0,0) {};  
\node (B) at (7,5) {}; 
\draw [help lines,color=Maroon!40]  (0,0) grid (7,5);
\draw [fill=Maroon!20]  (A) circle (2pt) (B) circle (2pt);    
\path  (A.center) to [ornament=84,
                      options/.append style={yshift=1pt}] (B.center);
\end{tikzpicture}      
\end{document}  
 


Exemple 6

Exemple 6.


[PDF] [TEX]

\documentclass{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[dvipsnames]{xcolor} 
\usepackage[object=vectorian]{pgfornament}   
\usetikzlibrary{shapes.geometric,calc}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\begin{document}
\pagecolor{fondpaille}
\color{Maroon}         
      
\begin{tikzpicture}
\node (A) at (0,0) {};  
\node (B) at (9,6) {}; 
\draw [help lines,color=Maroon!60]  (0,0) grid (9,6);
\draw [fill=Maroon!30]  (A) circle (2pt) (B) circle (2pt);
\path (A)--(B) coordinate[pos=.333] (c1) coordinate[pos=.666] (c2);   
\draw [orange] (A)  to [ornament=84]  (c1) to [ornament=84]  
               (c2) to [ornament=84]  (B);
\end{tikzpicture}  
\end{document}   


Exemple 7

Exemple 2.


[PDF] [TEX]

\documentclass{scrartcl}
\usepackage[utf8]{inputenc} 
\usepackage[T1]{fontenc} 
\usepackage[dvipsnames]{xcolor} 
\usepackage[object=vectorian]{pgfornament}   
\usetikzlibrary{shapes.geometric,calc}
\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
\begin{document}
\pagecolor{fondpaille}
\color{Maroon}   

\begin{tikzpicture}
\node (A) at (0,0) {};  
\node (B) at (0:6) {};  
\node (C) at (60:6) {}; 
\path [fill=Maroon!10,fill opacity=.4,text opacity=1]     
 (A.center) to [ornament=87] (B.center) to [ornament=87] 
 (C.center) to [ornament=87] (A.center);
\end{tikzpicture}      
\end{document}