| 1 |
\makeatletter |
| 2 |
\AddToShipoutPicture{% |
| 3 |
\begingroup |
| 4 |
\setlength{\@tempdima}{2mm}% |
| 5 |
\setlength{\@tempdimb}{\paperwidth-\@tempdima-1cm}% |
| 6 |
\setlength{\@tempdimc}{\paperheight-\@tempdima}% |
| 7 |
\put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdimc}){% |
| 8 |
\pgfornament[color=Maroon,anchor=north west,width=1cm]{39}} |
| 9 |
\put(\LenToUnit{\@tempdimb},\LenToUnit{\@tempdimc}){% |
| 10 |
\pgfornament[color=Maroon,anchor=north east,width=1cm,symmetry=v]{39}} |
| 11 |
\put(\LenToUnit{\@tempdima},\LenToUnit{\@tempdima}){% |
| 12 |
\pgfornament[color=Maroon,anchor=south west,width=1cm,symmetry=h]{39}} |
| 13 |
\put(\LenToUnit{\@tempdimb},\LenToUnit{\@tempdima}){% |
| 14 |
\pgfornament[color=Maroon,anchor=south east,width=1cm,symmetry=c]{39}} |
| 15 |
\endgroup |
| 16 |
} |
| 17 |
\let\strippt\strip@pt |
| 18 |
\makeatother |
| 19 |
|
| 20 |
\newcommand{\eachpageornament}{% |
| 21 |
\begin{picture}(0,0) |
| 22 |
\put(0,0){\pgfornament[width=1cm]{41}}; |
| 23 |
\put(\strippt\textwidth,0){\pgfornament[width=1cm,symmetry=v]{41}}; |
| 24 |
\put(0,-\strippt\textheight){\pgfornament[width=1cm,symmetry=h]{41}}; |
| 25 |
\put(\strippt\textwidth,-\strippt\textheight){\pgfornament[width=1cm,symmetry=c]{41}}; % |
| 26 |
\end{picture}} |
| 27 |
|
| 28 |
|
| 29 |
% Standardize command font styles and environments |
| 30 |
\newcommand{\docparen}[1]{\ensuremath{(#1)}}% optional command argument |
| 31 |
\definecolor{fondpaille}{cmyk}{0,0,0.1,0} |
| 32 |
\pagecolor{fondpaille} |
| 33 |
\color{Maroon} |
| 34 |
\colorlet{graphicbackground}{fondpaille} |
| 35 |
\colorlet{numbackground}{fondpaille} |
| 36 |
\colorlet{codebackground}{Periwinkle!10} |
| 37 |
\colorlet{codeonlybackground}{Periwinkle!10} |
| 38 |
\colorlet{textcodecolor}{MidnightBlue} % Maroon |
| 39 |
\colorlet{numcolor}{gray} |
| 40 |
\newcommand*{\tkzname}[1]{\textbf{\texttt{\textcolor{Maroon}{#1}}}} |
| 41 |
\newcommand*{\PGF}{\tkzname{PGF}} |
| 42 |
\newcommand*{\TIKZ}{\tkzname{Ti\emph{k}Z}} |
| 43 |
\newcommand*{\pdf}{\textsc{pdf}} |
| 44 |
\newcommand*{\pgfname}{\textsc{pgf}} |
| 45 |
\newcommand*{\tikzname}{Ti\emph{k}Z} |
| 46 |
\newcommand*{\pstricks}{\textsc{pstricks}} % |
| 47 |
\newcommand*{\tkzAttention}[3]{\ \\\llap{\textcolor{#3}{#1\hskip #2}}} |
| 48 |
\newcommand*{\tkzHand}{\ \\\llap{\textcolor{red}{\lefthand\hskip1em}}} |
| 49 |
\newcommand*{\tkzHandBomb}{\ \\\llap{\textcolor{red}{\lefthand\ \bomb\hskip1em}}} |
| 50 |
\newcommand*{\tkzBomb}{\ \\\llap{\textcolor{red}{\bomb\hskip1em}}} |
| 51 |
\newcommand*{\tkzTwoBomb}{\ \\\llap{\textcolor{red}{\bomb\ \bomb\hskip1em}}} |
| 52 |
\newcommand*{\tkzimp}[1]{\textbf{#1}} |
| 53 |
\newcommand*{\tkzcname}[1]{\textbf{\texttt{\textcolor{Maroon}{\textbackslash#1}}}} |
| 54 |
\newcommand*{\tkzhname}[1]{\textbf{\texttt{\textcolor{Maroon}{\textbackslash#1}}}} |
| 55 |
% Macros for typesetting the documentation |
| 56 |
\newcommand{\hlred}[1]{\textcolor{Maroon}{#1}}% prints in red |
| 57 |
\newcommand{\hangleft}[1]{\makebox[0pt][r]{#1}} |
| 58 |
\newcommand{\hairsp}{\hspace{1pt}}% hair space |
| 59 |
\newcommand{\hquad}{\hskip0.5em\relax}% half quad space |
| 60 |
\newcommand{\TODO}{\textcolor{red}{\bf TODO!}\xspace} |
| 61 |
\newcommand{\tuftebs}{\symbol{'134}}% a backslash in tt type in OT1/T1 |
| 62 |
\newcommand{\doccmdnoindex}[2][]{\texttt{\tuftebs#2}}% command name -- adds backslash automatically (and doesn't add cmd to the index) |
| 63 |
\newcommand{\doccmddef}[2][]{% |
| 64 |
\hlred{\texttt{\tuftebs#2}}\label{cmd:#2}% |
| 65 |
\ifthenelse{\isempty{#1}}% |
| 66 |
{% add the command to the index |
| 67 |
\index{#2 command@\protect\hangleft{\texttt{\tuftebs}}\texttt{#2}}% command name |
| 68 |
}% |
| 69 |
{% add the command and package to the index |
| 70 |
\index{#2 command@\protect\hangleft{\texttt{\tuftebs}}\texttt{#2} (\texttt{#1} package)}% command name |
| 71 |
\index{#1 package@\texttt{#1} package}\index{packages!#1@\texttt{#1}}% package name |
| 72 |
}% |
| 73 |
}% command name -- adds backslash automatically |
| 74 |
|
| 75 |
\newcommand{\doccmd}[2][]{% |
| 76 |
\texttt{\tuftebs#2}% |
| 77 |
\ifthenelse{\isempty{#1}}% |
| 78 |
{% add the command to the index |
| 79 |
\index{#2 command@\protect\hangleft{\texttt{\tuftebs}}\texttt{#2}}% command name |
| 80 |
}% |
| 81 |
{% add the command and package to the index |
| 82 |
\index{#2 command@\protect\hangleft{\texttt{\tuftebs}}\texttt{#2} (\texttt{#1} package)}% command name |
| 83 |
\index{#1 package@\texttt{#1} package}\index{packages!#1@\texttt{#1}}% package name |
| 84 |
}% |
| 85 |
}% command name -- adds backslash automatically |
| 86 |
\newcommand{\docopt}[1]{\ensuremath{\protect\langle}\textrm{\textit{#1}}\ensuremath{\protect\rangle}}% optional command argument |
| 87 |
\newcommand{\docarg}[1]{\textrm{\textit{#1}}}% (required) command argument |
| 88 |
\newenvironment{docspec}{\begin{quotation}\ttfamily\parskip0pt\parindent0pt\ignorespaces}{\end{quotation}}% command specification environment |
| 89 |
\newcommand{\docdist}[1]{\texttt{#1}\index{#1 distribution@\texttt{#1} distribution}\index{distributions!#1@\texttt{#1}}}% environment name |
| 90 |
\newcommand{\docenv}[1]{\texttt{#1}\index{#1 environment@\texttt{#1} environment}\index{environments!#1@\texttt{#1}}}% environment name |
| 91 |
\newcommand{\docenvdef}[1]{\hlred{\texttt{#1}}\label{env:#1}\index{#1 environment@\texttt{#1} environment}\index{environments!#1@\texttt{#1}}}% environment name |
| 92 |
\newcommand{\docoption}[2]{\texttt{#1}\index{#1 option@\texttt{#1} option}\index{options(#2)!#1@\texttt{#1}}}% package name |
| 93 |
\newcommand{\docpkg}[1]{\texttt{#1}\index{#1 package@\texttt{#1} package}\index{packages!#1@\texttt{#1}}}% package name |
| 94 |
\newcommand{\doclib}[1]{\texttt{#1}\index{#1 tikz library@\texttt{#1} library}\index{library!#1@\texttt{#1}}}% libray name |
| 95 |
\newcommand{\doccls}[1]{\texttt{#1}}% document class name |
| 96 |
\newcommand{\docclsopt}[1]{\texttt{#1}\index{#1 class option@\texttt{#1} class option}\index{class options!#1@\texttt{#1}}}% document class option name |
| 97 |
\newcommand{\docclsoptdef}[1]{\hlred{\texttt{#1}}\label{clsopt:#1}\index{#1 class option@\texttt{#1} class option}\index{class options!#1@\texttt{#1}}}% document class option name defined |
| 98 |
\newcommand{\docmsg}[2]{\bigskip\begin{fullwidth} |
| 99 |
\noindent\ttfamily#1\end{fullwidth}\medskip\par\noindent#2} |
| 100 |
\newcommand{\docfilehook}[2]{\texttt{#1}\index{file hooks!#2}\index{#1@\texttt{#1}}} |
| 101 |
\newcommand{\doccounter}[1]{\texttt{#1}\index{#1 counter@\texttt{#1} counter}} |
| 102 |
\newcommand{\docStyle}[1]{\texttt{#1}\index{#1 style(\TIKZ)@\texttt{#1} style(\TIKZ)}\index{styles(\TIKZ)!#1@\texttt{#1}}}% package name |
| 103 |
\newcommand*{\Imacro}[1]{\index{#1_1@\texttt{\textbackslash#1}}}%n |
| 104 |
\newcommand{\docfamily}[1]{\texttt{#1}\index{#1 family@\texttt{#1} family}\index{families!#1@\texttt{#1}}}% package name |
| 105 |
\newcommand{\docvo}[1]{\texttt{#1}\index{#1 vector ornament@\texttt{#1} vector ornament}\index{vector ornaments!#1@\texttt{#1}}}% package name |
| 106 |
% |
| 107 |
|
| 108 |
|
| 109 |
\endinput |