aboutsummaryrefslogtreecommitdiff
path: root/latex_pgfornament/texmf/tex/latex/pgfornament
diff options
context:
space:
mode:
Diffstat (limited to 'latex_pgfornament/texmf/tex/latex/pgfornament')
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/examples/e01.tex34
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/examples/eo1.pdfbin0 -> 81492 bytes
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/examples/line1.pdfbin0 -> 34883 bytes
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/examples/line1.tex23
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/examples/poem.pdfbin0 -> 65472 bytes
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/examples/poem.tex51
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/ornaments.pdfbin0 -> 2471164 bytes
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/pgfornament.sty154
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/readme.txt13
-rw-r--r--latex_pgfornament/texmf/tex/latex/pgfornament/tikzrput.sty108
10 files changed, 383 insertions, 0 deletions
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/examples/e01.tex b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/e01.tex
new file mode 100644
index 0000000..0847d8f
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/e01.tex
@@ -0,0 +1,34 @@
+\documentclass[a4paper]{tufte-handout}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage[dvipsnames]{xcolor}
+\usepackage{pgfornament,tkzexample,tikzrput}
+
+
+\definecolor{fondpaille}{cmyk}{0,0,0.1,0}
+\begin{document}
+\null\vspace{5cm}
+
+
+ \begin{center}
+ \rput[r](-3pt,3pt){\pgfornament[scale=.5]{72}}
+ \huge{Motifs d'ornements}%
+ \rput[l](3pt,3pt){\pgfornament[scale=.5]{73}}\\
+ \rput(0,0){\pgfornament[scale=.5]{85}}
+ \end{center}
+
+
+
+\begin{tkzexample}[code only]
+ \rput[r](-3pt,3pt){\pgfornament[scale=.5]{72}}
+ \huge{Motifs d'ornements}%
+ \rput[l](3pt,3pt){\pgfornament[scale=.5]{73}}\\
+ \rput(0,0){\pgfornament[scale=.5]{85}}
+\end{tkzexample}
+
+\begin{center}
+\rput[r](-2pt,6pt){\pgfornament[color=black,height=1cm]{21}}
+\Large{Texte}%
+\rput[l](2pt,6pt){\pgfornament[color=black,height=1cm]{23}}
+\end{center}
+ \end{document} \ No newline at end of file
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/examples/eo1.pdf b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/eo1.pdf
new file mode 100644
index 0000000..6e83cc4
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/eo1.pdf
Binary files differ
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/examples/line1.pdf b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/line1.pdf
new file mode 100644
index 0000000..414307a
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/line1.pdf
Binary files differ
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/examples/line1.tex b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/line1.tex
new file mode 100644
index 0000000..ffde227
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/line1.tex
@@ -0,0 +1,23 @@
+\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}
+
+
+ \ No newline at end of file
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/examples/poem.pdf b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/poem.pdf
new file mode 100644
index 0000000..3a3588c
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/poem.pdf
Binary files differ
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/examples/poem.tex b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/poem.tex
new file mode 100644
index 0000000..48ab861
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/examples/poem.tex
@@ -0,0 +1,51 @@
+\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}
+
+ \ No newline at end of file
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/ornaments.pdf b/latex_pgfornament/texmf/tex/latex/pgfornament/ornaments.pdf
new file mode 100644
index 0000000..a2ad224
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/ornaments.pdf
Binary files differ
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/pgfornament.sty b/latex_pgfornament/texmf/tex/latex/pgfornament/pgfornament.sty
new file mode 100644
index 0000000..541b6f9
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/pgfornament.sty
@@ -0,0 +1,154 @@
+%% pgfornament.sty 0.1 du 01/03/2012 inspired from psvectorian P Fradin H Voss
+%% ------------------------------------------------
+%% Copyright (C) 2012 Alain Matthes
+%% ------------------------------------------------
+% Les options de \pgfornament sont:
+%
+% scale : nombre (échelle, 1 par défaut)
+% width : nombre + unité (largeur, naturelle par défaut)
+% height : nombre + unité (hauteur, naturelle par défaut)
+% color : couleur ( par défaut couleur courante )
+% symmetry=h : true/false (symétrie horizontale, false par défaut)
+% symmetry=v : true/false (symétrie verticale, false par défaut)
+% symmetry=c : true/false (symétrie centrale h+v,false par défaut)
+\NeedsTeXFormat{LaTeX2e}%
+\RequirePackage{tikz,pgfopts}%
+\ProvidesPackage{pgfornament}[2014/05/31 v0.11 vector ornaments]%
+\gdef\pgfOrnamentsObject{pgflibraryvectorian.code.tex}
+\gdef\OrnamentsFamily{vectorian}
+\pgfkeys{
+/pgfOrnaments/object/.cd,
+/pgfOrnaments/object/.code = \gdef\pgfOrnamentsObject{pgflibrary#1.code.tex}
+\gdef\OrnamentsFamily{#1}
+}
+\ProcessPgfOptions{/pgfOrnaments}
+\input{\pgfOrnamentsObject}%
+\makeatletter
+
+% appels des motifs
+\def\pgf@@ornament#1{%
+\begingroup
+\def\i{\pgfusepath{clip}}%
+\def\k{\pgfusepath{stroke}}%
+\let\o\pgfpathclose
+\let\s\pgfusepathqfillstroke
+\def\p ##1##2{\pgfqpoint{##1bp}{##2bp}}%
+\def\m ##1 ##2 {\pgfpathmoveto{\p{##1}{##2}}}%
+\def\l ##1 ##2 {\pgfpathlineto{\p{##1}{##2}}}%
+\def\r ##1 ##2 ##3 ##4 {\pgfpathrectangle{\p{##1}{##2}}{\p{##3}{##4}}}%
+\def\c ##1 ##2 ##3 ##4 ##5 ##6 {%
+\pgfpathcurveto{\p{##1}{##2}}{\p{##3}{##4}}{\p{##5}{##6}}}%
+\@@input \OrnamentsFamily#1.pgf%
+\endgroup}%
+
+\tikzset{pgfornamentstyle/.style={}}%
+\pgfkeys{%
+/ornament/.cd,
+scale/.code = {\def\pgfornamentscale{#1}},
+width/.code = {\def\pgfornamentwidth{#1}},
+height/.code = {\def\pgfornamentheight{#1}},
+color/.code = {\def\pgfornamentcolor{#1}},
+anchor/.code = {\def\pgfornamentanchor{#1}},
+ydelta/.code = {\def\pgfornamentydelta{#1}},
+symmetry/.is choice,
+symmetry/v/.code = {\tikzset{pgfornamentstyle/.append style={cm={-1,0,0,1,(0,0)}}}},
+symmetry/c/.code = {\tikzset{pgfornamentstyle/.append style={cm={-1,0,0,-1,(0,0)}}}},
+symmetry/h/.code = {\tikzset{pgfornamentstyle/.append style={cm={1,0,0,-1,(0,0)}}}},
+symmetry/none/.code = {\tikzset{pgfornamentstyle/.append style={cm={1,0,0,1,(0,0)}}}}}%
+\def\pgfornament{\pgfutil@ifnextchar[{\pgf@ornament}{\pgf@ornament[]}}%
+\def\pgf@ornament[#1]#2{%
+\pgfkeys{/ornament/.cd,
+ scale = 1,
+ width = {},
+ height = {},
+ color = {},
+ ydelta = 0 pt,
+ symmetry = none ,
+ anchor = center}%
+%
+\pgfqkeys{/ornament}{#1}%
+\ifx\pgfornamentcolor\empty
+ \tikzset{pgfornamentstyle/.append style={}}%
+\else
+ \tikzset{pgfornamentstyle/.append style={color=\pgfornamentcolor}}%
+\fi
+\ifx\pgfornamentwidth\empty
+ \else
+ \@pgfornamentDim{#2}%
+ \pgfmathsetmacro{\pgfornamentscale}{\pgfornamentwidth/\@pgfornamentX bp}%
+\fi
+\ifx\pgfornamentheight\empty
+ \else
+ \@pgfornamentDim{#2}%
+ \pgfmathsetmacro{\pgfornamentscale}{\pgfornamentheight/\@pgfornamentY bp}%
+\fi
+\begin{tikzpicture}[%
+ baseline={([yshift=\pgfornamentydelta]current bounding box.\pgfornamentanchor)},pgfornamentstyle]
+ \pgftransformscale{\pgfornamentscale}%
+ \pgf@@ornament{#2}%
+\end{tikzpicture}%
+\tikzset{pgfornamentstyle/.style={cm={1,0,0,1,(0,0)}}}%
+}%
+\gdef\ornamenttopos{.5}
+\gdef\ornamenttoanchor{center}
+\gdef\ornamenttosymmetry{none}
+\tikzset{options default/.style={anchor=center,sloped,allow upside down,inner sep=0pt}}
+\tikzset{%
+ornament/at/.code={\def\ornamenttopos{#1}},
+options/.style={options default,#1},
+ornament symmetry/.code={\def\ornamenttosymmetry{#1}},
+node anchor/.code={\def\ornamenttoanchor{#1}},
+ornament/.style={%
+to path={%
+\pgfextra{%
+ \tikz@scan@one@point\pgfutil@firstofone(\tikztostart)\relax
+ \pgf@xa=\pgf@x
+ \pgf@ya=\pgf@y
+ \tikz@scan@one@point\pgfutil@firstofone(\tikztotarget)\relax
+ \pgf@xb=\pgf@x
+ \pgf@yb=\pgf@y
+ \advance\pgf@xa by-\pgf@xb
+ \advance\pgf@ya by-\pgf@yb
+ \pgfmathveclen{\pgf@xa}{\pgf@ya}%
+ \global\let\ornamentlen\pgfmathresult
+ } -- node [pos=\ornamenttopos,options,anchor=\ornamenttoanchor]{%
+ \pgfornament[width = \ornamentlen,symmetry=\ornamenttosymmetry]{#1}}
+ (\tikztotarget)\tikztonodes %end pgfextra
+ }% end to path
+ }% end style
+}%
+\def\pgfornamenthline#1#2#3#4{%
+ \pgfextractx{\pgf@x}{\pgfpointanchor{#1}{#3 east}}
+ \pgf@xa=\pgf@x
+ \pgfextractx{\pgf@x}{\pgfpointanchor{#2}{#3 west}}
+ \pgf@xb=\pgf@x
+ \advance\pgf@xb by -\pgf@xa
+\node[inner sep=0pt] at ($(#1.#3 east)!.5!(#2.#3 west)$) {\pgfornament[width=\pgf@xb]{#4}} ;
+}
+\def\pgfornamentvline#1#2#3#4{%
+ \pgfextracty{\pgf@y}{\pgfpointanchor{#1}{south #3}}
+ \pgf@ya=\pgf@y
+ \pgfextracty{\pgf@y}{\pgfpointanchor{#2}{north #3}}
+ \pgf@yb=\pgf@y
+ \advance\pgf@yb by -\pgf@ya
+\node[inner sep=0pt,rotate=90] at ($(#1.south #3)!.5!(#2.north #3)$) {\pgfornament[width=\pgf@yb]{#4}} ;
+}%
+\def\getornamentlength#1#2#3#4{%
+ \pgfpointdiff{\pgfpointanchor{#1}{#2}}%
+ {\pgfpointanchor{#3}{#4}}%
+ \pgf@xa=\pgf@x
+ \pgf@ya=\pgf@y
+ \pgfmathveclen{\pgf@xa}{\pgf@ya}%
+ \global\let\ornamentlen\pgfmathresult
+}%
+\def\getornamentangle#1#2#3{%
+ \pgfpointdiff{\pgfpointanchor{#2}{center}}{\pgfpointanchor{#3}{center}}%
+ \pgfmathsetmacro{#1}{atan2(\pgf@x,\pgf@y)}%
+}%
+\makeatother
+
+\newcommand{\resetpgfornamentstyle}{\tikzset{pgfornamentstyle/.style={}}}
+
+
+\endinput
+% End
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/readme.txt b/latex_pgfornament/texmf/tex/latex/pgfornament/readme.txt
new file mode 100644
index 0000000..6813bab
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/readme.txt
@@ -0,0 +1,13 @@
+2012/03/01
+
+This archive contains :
+
+-- this document;
+-- the documentation beta (0.1) of pgfornament (0.1);
+-- the package pgfornament.sty;
+-- the package tikzrput.sty;
+-- the folder vectorian; (with 89 elements)
+-- the folder am; (with 2 elements)
+-- the folder examples;
+-- the file pgflibraryvectorian.code.tex;
+-- the file pgflibraryam.code.tex. \ No newline at end of file
diff --git a/latex_pgfornament/texmf/tex/latex/pgfornament/tikzrput.sty b/latex_pgfornament/texmf/tex/latex/pgfornament/tikzrput.sty
new file mode 100644
index 0000000..c2f7c8f
--- /dev/null
+++ b/latex_pgfornament/texmf/tex/latex/pgfornament/tikzrput.sty
@@ -0,0 +1,108 @@
+% utf8
+% tikzrput.sty 0.2 du 05/03/2012 inspired from rput (pstricks)
+% ------------------------------------------------
+% Créé par Alain Matthes le 2012-02-22.
+% Copyright (c) 2012 __AlterMundus__.
+%
+% This file may be distributed and/or modified
+%
+% 1. under the LaTeX Project Public License , either version 1.3
+% of this license or (at your option) any later version and/or
+% 2. under the GNU Public License.
+% ------------------------------------------------
+% Options are the same of /rput in pstricks
+%
+\NeedsTeXFormat{LaTeX2e}%
+\RequirePackage{tikz,ifpdf}%
+\ProvidesPackage{tikzrput}[2012/03/02 v0.2 rput for tikz]%
+\edef\tikzrputPtVirCode{\the\catcode`\;}
+\edef\tikzrputAtCode{\the\catcode`\@}
+\edef\tikzrputTwoPtCode{\the\catcode`\:}
+\catcode`\;=12\relax
+\catcode`\:=12\relax
+\catcode`\@=11\relax
+
+\newif\ifrput@polar\rput@polarfalse
+\def\rput@empty{}
+
+\def\rput@parsecoordinate#1{%
+\rput@getseparator#1,\@nil
+\ifrput@polar
+ \rput@getfrompolar#1\@nil
+\fi
+}%
+\def\rput@getseparator#1,#2\@nil{%
+\ifx\rput@empty#2\rput@empty%
+ \rput@polartrue
+\else
+ \rput@polarfalse
+\fi
+}%
+\def\rput@getfrompolar#1;#2\@nil{%
+ \def\pos@rput{#1:#2}%
+}%
+
+\def\rput@pos@ {\def\rput@anchor{center}}
+\def\rput@pos@B {\def\rput@anchor{base}}
+\def\rput@pos@Br {\def\rput@anchor{base east}}
+\def\rput@pos@Bl {\def\rput@anchor{base west}}
+\def\rput@pos@tr {\def\rput@anchor{north east}}
+\def\rput@pos@tl {\def\rput@anchor{north west}}
+\def\rput@pos@br {\def\rput@anchor{south east}}
+\def\rput@pos@bl {\def\rput@anchor{south west}}
+\def\rput@pos@t {\def\rput@anchor{north}}
+\def\rput@pos@b {\def\rput@anchor{south}}
+\def\rput@pos@r {\def\rput@anchor{east}}
+\def\rput@pos@l {\def\rput@anchor{west}}
+\let\rput@pos@rB\rput@pos@Br
+\let\rput@pos@lB\rput@pos@Bl
+\let\rput@pos@rt\rput@pos@tr
+\let\rput@pos@lt\rput@pos@tl
+\let\rput@pos@rb\rput@pos@br
+\let\rput@pos@lb\rput@pos@bl
+\newbox\mybox
+\ifpdf
+\pgfutil@ifundefined{rput}%
+ {%
+ \tikzset{rput style/.style={}}
+ \def\rput{\pgfutil@ifnextchar[{\rput@i}{\global\edef\opt@rput{}\rput@ii}}%
+ \def\rput@i[#1]{\global\edef\opt@rput{#1}\rput@ii}%
+ \def\rput@ii{\pgfutil@ifnextchar({\def\angle@rput{0}\rput@iv}{\rput@iii}}%
+ \def\rput@iii#1{%
+ \ifx\rput@empty#1\rput@empty\def\angle@rput{0}\else\def\angle@rput{#1}\fi%
+ \pgfutil@ifnextchar({\rput@iv}{\rput@iv(0,0)}}%,
+ \def\rput@iv(#1){\def\pos@rput{#1}%
+ \rput@parsecoordinate{#1}%
+ \rput@v}%
+ \def\rput@v#1{%
+ \sbox\mybox{\pgfinterruptpicture#1\endpgfinterruptpicture}%
+ \begingroup
+ \tikzifinpicture{%
+ \let\begin@my@tikz@env\scope
+ \let\end@my@tikz@env\endscope
+ }{%
+ \let\begin@my@tikz@env\tikzpicture
+ \let\end@my@tikz@env\endtikzpicture
+ }%
+ \@nameuse{rput@pos@\opt@rput}%
+ \begin{pgfinterruptboundingbox}%
+ \begin@my@tikz@env[overlay]
+ \path (0,0)--(\pos@rput);
+ \protected@edef\rput@temp{%
+ \noexpand\node[inner sep = 0pt,
+ anchor = \rput@anchor,
+ rotate = \angle@rput,
+ rput style]%
+ }\rput@temp at (\pos@rput) {\box\mybox};%{#1};%
+ \end@my@tikz@env
+ \end{pgfinterruptboundingbox}%
+ \endgroup
+ \ignorespaces
+ }%
+ }{%
+ }%
+\fi
+\catcode`\;=\tikzrputPtVirCode\relax
+\catcode`\@=\tikzrputAtCode\relax
+\catcode`\:=\tikzrputTwoPtCode\relax
+\endinput