| 1 |
% tkz-doc.cls |
| 2 |
% encoding: utf8 |
| 3 |
% Copyright 2022 Alain Matthes |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License, either version 1.3 |
| 6 |
% of this license or (at your option) any later version. |
| 7 |
% The latest version of this license is in |
| 8 |
% http://www.latex-project.org/lppl.txt |
| 9 |
% and version 1.3 or later is part of all distributions of LaTeX |
| 10 |
% version 2005/12/01 or later. |
| 11 |
% |
| 12 |
% This work has the LPPL maintenance status “maintained”. |
| 13 |
% |
| 14 |
% The Current Maintainer of this work is Alain Matthes. |
| 15 |
% |
| 16 |
% tkz-doc class for use with the tkz documentation |
| 17 |
% ( AlterMundus Collection ). |
| 18 |
% |
| 19 |
%% Objet : Classe LaTeX and Styles to create documentation. |
| 20 |
%<-------------- Définitions relatives au package ---------------------------> |
| 21 |
\newcommand*{\PackageName}{tkz-doc} |
| 22 |
\newcommand*{\PackageVersion}{1.45c} |
| 23 |
\newcommand*{\filedate}{2022/07/14} |
| 24 |
|
| 25 |
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} |
| 26 |
|
| 27 |
%<-------------------- Identification Part --------------------------------> |
| 28 |
\NeedsTeXFormat{LaTeX2e}[1995/12/01] |
| 29 |
\ProvidesClass{\PackageName}[% |
| 30 |
\filedate\space Version:\space\PackageVersion\space % |
| 31 |
tkz documentation class based on scrartcl] |
| 32 |
\newif\if@tkzcadre |
| 33 |
\@tkzcadrefalse |
| 34 |
\DeclareOption{cadre}{\@tkzcadretrue} |
| 35 |
\ProcessOptions\relax |
| 36 |
\LoadClass[titlepage,a4paper]{scrartcl} |
| 37 |
%<----------------- loading some packages ----------------------------------> |
| 38 |
% dvipsnames loads a set of 68 cmyk colors as defined in the dvips driver. |
| 39 |
% svgnames loads a set of 151 rgb color names |
| 40 |
% obsolete usenames |
| 41 |
\PassOptionsToPackage{dvipsnames,svgnames}{xcolor} |
| 42 |
%<--------------------------------------------------------------------------> |
| 43 |
\KOMAoptions{twoside=false} |
| 44 |
%<--------------------------------------------------------------------------> |
| 45 |
\RequirePackage{tikz} |
| 46 |
\usetikzlibrary{decorations.shapes, |
| 47 |
decorations.text, |
| 48 |
decorations.pathreplacing, |
| 49 |
decorations.pathmorphing, |
| 50 |
decorations.markings, |
| 51 |
shadows} |
| 52 |
\RequirePackage{ragged2e} |
| 53 |
\RequirePackage[bottom,stable,ragged]{footmisc} |
| 54 |
\raggedbottom |
| 55 |
\RequirePackage{framed,eso-pic} |
| 56 |
\RequirePackage[automark,markcase=ignoreuppercase]{scrlayer-scrpage} |
| 57 |
\RequirePackage[yyyymmdd]{datetime} |
| 58 |
\RequirePackage{booktabs,cellspace,multicol} |
| 59 |
%<------------- define important words -------------------------------------> |
| 60 |
\InputIfFileExists{tkz-doc.cfg}{\typeout{Local configuration file tkz-doc.cfg found and used}}{\typeout{tkz-doc.cfg not found}} %<--------------------------------------------------------------------------> |
| 61 |
\pagestyle{scrheadings} |
| 62 |
\clearscrheadings |
| 63 |
\clearscrplain |
| 64 |
\ohead{\textcolor{sectioncolor}{\pagemark}} |
| 65 |
\ihead{\textcolor{sectioncolor}{\headmark}} |
| 66 |
\rofoot{\textcolor{sectioncolor}{\tkznamecollection}} |
| 67 |
\lofoot{\textcolor{sectioncolor}{\tkznameofpack}} |
| 68 |
|
| 69 |
\automark[subsection]{section} |
| 70 |
\KOMAoptions{headsepline=.4pt} |
| 71 |
\addtokomafont{headsepline}{\color{sectioncolor}} |
| 72 |
\setheadwidth[0pt]{text} |
| 73 |
\KOMAoptions{footsepline=.4pt} |
| 74 |
\addtokomafont{footsepline}{\color{sectioncolor}} |
| 75 |
\setfootwidth[0pt]{text} |
| 76 |
\renewcommand{\footnoterule}{\vspace*{-3pt}{% |
| 77 |
\color{sectioncolor}\hrule width 2in height 0.4pt}\vspace*{2.6pt}} |
| 78 |
\deffootnote{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark}} |
| 79 |
\addtolength{\skip\footins}{\baselineskip}% |
| 80 |
%<------------------– En-tête et pied de page ------------------------------ |
| 81 |
\pagenumbering{arabic} |
| 82 |
\newcommand\SectionFontStyle{\ttfamily} |
| 83 |
\setkomafont{sectioning}{\bfseries\SectionFontStyle} |
| 84 |
\setkomafont{pagenumber}{\bfseries\SectionFontStyle} |
| 85 |
\setkomafont{pagehead}{\small\ttfamily} |
| 86 |
\setkomafont{pagefoot}{\small\ttfamily} |
| 87 |
\setkomafont{descriptionlabel}{\itshape} |
| 88 |
\addtokomafont{sectioning}{\color{sectioncolor}} |
| 89 |
\renewcommand*{\raggedsection}{\raggedright} |
| 90 |
%<--------------------------------------------------------------------------- |
| 91 |
\newcounter{cnt}\setcounter{cnt}{1} |
| 92 |
\setcounter{secnumdepth}{3}% |
| 93 |
\setcounter{tocdepth}{3} |
| 94 |
%<------------------ Éxécution et chargement ----------------------------- |
| 95 |
|
| 96 |
|
| 97 |
%<--------------- some macros -------------------------------------------- |
| 98 |
\newbox\tkzbox |
| 99 |
\def\nodeshadowedone(#1,#2)#3{% |
| 100 |
\node[myblue,above,inner sep=0pt]{\global\setbox\tkzbox=\hbox{#3}\copy\tkzbox}; |
| 101 |
\node[above,yscale=#2,inner sep=0pt,xslant=#1,myblue!60]{\box\tkzbox}; |
| 102 |
}% |
| 103 |
% some of the macros below are absolete |
| 104 |
\def\nameoffile#1{\gdef\@nameoffile{#1}} |
| 105 |
\def\@nameoffile{\@latex@warning@no@line{No \noexpand\nameoffile given}} |
| 106 |
\long\def\defoffile#1{\protected@xdef\@defoffile{\@defoffile{#1}}} |
| 107 |
\let\@defoffile\@empty |
| 108 |
%<------------------------------------------------------------------------- |
| 109 |
\newcommand*{\addbs}[1]{\texttt{\textbackslash#1}} %\cs parfois ?? |
| 110 |
|
| 111 |
%<-------------------------- NewMacroBox -----------------------------------> |
| 112 |
\newcommand*{\ActivBoxName}{} |
| 113 |
\newenvironment{NewMacroBox}[2]{% |
| 114 |
\parindent=0pt |
| 115 |
\renewcommand*{\ActivBoxName}{#1} |
| 116 |
\def\FrameCommand{\color{MidnightBlue}{\vrule width 1pt\hspace{3pt}}}% |
| 117 |
\MakeFramed{\advance\hsize-\width}% |
| 118 |
\noindent |
| 119 |
\makebox[0pt][l]{% |
| 120 |
\hspace{-4pt}% |
| 121 |
\setlength{\fboxrule}{1pt}% |
| 122 |
\setlength{\fboxsep}{3pt}% |
| 123 |
\fcolorbox{sectioncolor}{titlecolorbox}{% |
| 124 |
\rule{6pt}{0pt}% |
| 125 |
\makebox[\width+6pt][l]{\tkzcname{#1#2}}% |
| 126 |
}% |
| 127 |
}\\*[.5\baselineskip]% |
| 128 |
\noindent |
| 129 |
% \ignorespaces\tkzcname{#1#3} |
| 130 |
\Imacro{#1}% |
| 131 |
}% |
| 132 |
{% |
| 133 |
\par\noindent% |
| 134 |
\makebox[0pt][l]{% |
| 135 |
\hspace{-6pt}% |
| 136 |
\rule{6pt}{1pt}% |
| 137 |
\rule{\textwidth}{1pt}% |
| 138 |
\hspace{-1pt}% |
| 139 |
\rule{1pt}{10pt}% |
| 140 |
}% |
| 141 |
\endMakeFramed |
| 142 |
\noindent |
| 143 |
\ignorespacesafterend |
| 144 |
\par\medskip |
| 145 |
}% |
| 146 |
%<----------------- end NewMacroBox -----------------------------------------> |
| 147 |
|
| 148 |
|
| 149 |
%<----------------------------- NewEnvBox -----------------------------------> |
| 150 |
\let\fram@d=\MakeFramed \let\endfram@d=\endMakeFramed |
| 151 |
\newenvironment{NewEnvBox}[1]{% |
| 152 |
\parindent=0pt |
| 153 |
\renewcommand*{\ActivBoxName}{#1} |
| 154 |
%\gdef\tkzEnvMacro{#1} |
| 155 |
\def\FrameCommand{\color{sectioncolor}{\vrule width 1pt\hspace{3pt}}}% |
| 156 |
\MakeFramed{\advance\hsize-\width}% |
| 157 |
\noindent |
| 158 |
\makebox[0pt][l]{% |
| 159 |
\hspace{-4pt}% |
| 160 |
\setlength{\fboxrule}{1pt}% |
| 161 |
\setlength{\fboxsep}{3pt}% |
| 162 |
\fcolorbox{sectioncolor}{titlecolorbox}{% |
| 163 |
\rule{6pt}{0pt}% |
| 164 |
\makebox[\width+6pt][l]{% |
| 165 |
\tkzcname{\textcolor{sectioncolor}{begin}\{\ActivBoxName\}}{\oarg{options}}% |
| 166 |
\hspace*{.25cm}\meta{environment contents}\hspace*{.25cm}% |
| 167 |
\tkzcname{\textcolor{sectioncolor}{end}\{\ActivBoxName\}}}% |
| 168 |
}% |
| 169 |
}\\*[.5\baselineskip]% |
| 170 |
\noindent |
| 171 |
% \ignorespaces\tkzcname{#1#3} |
| 172 |
\Ienv{#1} |
| 173 |
\color{MidnightBlue}}{% |
| 174 |
\par\noindent% |
| 175 |
\makebox[0pt][l]{% |
| 176 |
\hspace{-6pt}% |
| 177 |
\rule{6pt}{1pt}% |
| 178 |
\rule{\textwidth}{1pt}% |
| 179 |
\hspace{-1pt}% |
| 180 |
\rule{1pt}{10pt}% |
| 181 |
}% |
| 182 |
\endMakeFramed |
| 183 |
\noindent |
| 184 |
\ignorespacesafterend |
| 185 |
\par\medskip |
| 186 |
} |
| 187 |
%<------------------- end NewEnvBox -----------------------------------------> |
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
%<--------------% Define mybox and box title style-----------------------------> |
| 192 |
% We need to save the node |
| 193 |
% Every append after command might be useful to have this code |
| 194 |
|
| 195 |
\def\savelastnode{\pgfextra\edef\tmpA{\tikzlastnode}\endpgfextra} |
| 196 |
\def\restorelastnode{\pgfextra\edef\tikzlastnode{\tmpA}\endpgfextra} |
| 197 |
|
| 198 |
\tikzstyle{mybox} = [draw=blue!50!black, very thick, |
| 199 |
rectangle, rounded corners, inner sep=10pt, inner ysep=20pt,text=darkgray] |
| 200 |
\tikzstyle{fancytitle} =[fill=MidnightBlue!20, text=blue!50!black,rounded corners] |
| 201 |
\tikzstyle{title} = [append after command={% |
| 202 |
\savelastnode node[fancytitle,right=10pt] at (\tikzlastnode.north west)% |
| 203 |
{#1}\restorelastnode}] |
| 204 |
%<------------------- end mybox -----------------------------------------> |
| 205 |
|
| 206 |
|
| 207 |
%--------------- mots importants et macros --------------------------------- |
| 208 |
\providecommand*{\BS}{\texttt{\char92}} |
| 209 |
\providecommand*{\tkz}{T{\em k}Z} |
| 210 |
\providecommand*{\PGF}{\tkzname{PGF}} |
| 211 |
\providecommand*{\TIKZ}{Ti\textsl{k}Z} |
| 212 |
\providecommand*{\tikzname}{Ti{\em k}Z} |
| 213 |
\providecommand*{\pgfname}{\textsc{pgf}} |
| 214 |
\providecommand*{\tkzdft}[1]{{\texttt{#1}}} |
| 215 |
\providecommand*{\tkzAttention}[3]{\ \\\llap{\textcolor{#3}{#1\hskip #2}}} |
| 216 |
\providecommand*{\tkzHand}{\ \\\llap{\textcolor{red}{\lefthand\hskip1em}}} |
| 217 |
\providecommand*{\tkzBomb}{\ \\\llap{\textcolor{red}{\bomb\hskip1em}}} |
| 218 |
\providecommand*{\tkzTwoBomb}{\ \\\llap{\textcolor{red}{\bomb\ \bomb\hskip1em}}} |
| 219 |
\providecommand*{\tkzname}[1]{\textbf{\texttt{\textcolor{black}{#1}}}} |
| 220 |
\providecommand*{\tkzimp}[1]{\textbf{#1}} |
| 221 |
\providecommand*{\tkzHandBomb}{\ \\\llap{\textcolor{red}{\lefthand\ \bomb\hskip1em}}} |
| 222 |
\providecommand\LaTeX{L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX} |
| 223 |
\renewcommand\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\spacefactor1000} |
| 224 |
\providecommand\LATEX{\LaTeX} |
| 225 |
\providecommand\TEX{\TeX} |
| 226 |
|
| 227 |
%<----------------------------- def macro arg opt----------------------------> |
| 228 |
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} |
| 229 |
\def\cmd@to@cs#1#2{\char\number`#2\relax} |
| 230 |
\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} |
| 231 |
|
| 232 |
\providecommand\marg[1]{{\ttfamily\char`\{}\opt{\meta{#1}}{\ttfamily\char`\}}} |
| 233 |
\providecommand\parg[1]{{\ttfamily(}\opt{\meta{#1}}{\ttfamily)}} |
| 234 |
\providecommand\oarg[1]{{\ttfamily[}\opt{\meta{#1}}{\ttfamily]}} |
| 235 |
\providecommand\ooarg[1]{{\ttfamily[}\meta{#1}{\ttfamily]}} |
| 236 |
\providecommand\opt[1]{{\color{myblue}#1}} |
| 237 |
\providecommand*{\var}[1]{\{\opt{\meta{#1}}\}} |
| 238 |
\providecommand*{\varp}[1]{\big(\opt{\meta{#1}}\big)} |
| 239 |
\providecommand*{\vara}[1]{\{#1\}} |
| 240 |
|
| 241 |
% -- Macros pour indexation ------------------------------------------------- |
| 242 |
% It is necessary to think about \protect |
| 243 |
\newcommand*{\tkzNamePack}[1]{\NamePack{#1}} |
| 244 |
\newcommand*{\tkzNameMacro}[1]{\tkzcname{#1}\Imacro{#1}} |
| 245 |
\newcommand*{\tkzNameEnv}[1]{\tkzname{#1}\Ienv{#1}} |
| 246 |
\newcommand*{\Ilib}[1]{\index{Library_1@\texttt{Library}!\texttt{#1}}} |
| 247 |
\newcommand*{\Ienv}[1]{\index{Environment_1@\texttt{Environment}!\texttt{#1}}} |
| 248 |
\newcommand*{\IargEnv}[2]{\index{#1_2@\texttt{#1: arguments}!\texttt{#2}}} |
| 249 |
\newcommand*{\IstyleEnv}[2]{\index{#1_3@\texttt{#1: styles}!\texttt{#2}}} |
| 250 |
\newcommand*{\Iaccent}[2]{\index{#1@\texttt{#2}}} |
| 251 |
\newcommand*{\IargNameEnv}[2]{\texttt{#2}\index{#1_2@\texttt{#1: arguments}!\texttt{#2}}} |
| 252 |
\newcommand*{\IoptEnv}[2]{\index{#1_3@\texttt{#1: options}!\texttt{#2}}} |
| 253 |
\newcommand*{\IoptNameEnv}[2]{\texttt{#2}\index{#1_3@\texttt{#1: options}!\texttt{#2}}} |
| 254 |
\newcommand*{\Imacro}[1]{\index{#1_1@\texttt{\textbackslash#1}}}%n |
| 255 |
\newcommand*{\Iarg}[2]{\index{#1_2@\texttt{\textbackslash#1: arguments}!\texttt{#2}}} |
| 256 |
\newcommand*{\IargName}[2]{\texttt{#2}\index{#1_2@\texttt{\textbackslash#1: arguments}!\texttt{#2}}} |
| 257 |
\newcommand*{\IoptName}[2]{\texttt{#2}\index{#1_3@\texttt{\textbackslash#1: options}!\texttt{#2}}} |
| 258 |
\newcommand*{\Iopt}[2]{\index{#1_3@\texttt{\textbackslash#1: options}!\texttt{#2}}} |
| 259 |
\newcommand*{\Istyle}[2]{\index{#1_3@\texttt{\textbackslash#1: styles}!\texttt{#2}}} |
| 260 |
\newcommand*{\NameLib}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{Ti\emph{k}Z Library !#1@\texttt{#1}}} |
| 261 |
\newcommand*{\NameSys}[1]{\texttt{#1}\index{Operating System !#1@\texttt{#1}}} |
| 262 |
\newcommand*{\NameDist}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{TeX Distributions !#1@\texttt{#1}}} |
| 263 |
\newcommand*{\NameFonct}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{Functions !#1@\texttt{#1}}} |
| 264 |
\newcommand*{\NamePack}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{Package !#1@\texttt{#1}}} |
| 265 |
\newcommand*{\TOenvline}[3]{\IoptNameEnv{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\} |
| 266 |
\newcommand*{\TOline}[3]{\IoptName{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\} |
| 267 |
\newcommand*{\TAline}[3]{\IargName{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\} |
| 268 |
\newcommand*{\TMline}[3]{\tkzcname{#1}\index{#1_1@\texttt{\textbackslash#1}}&\tkzdft{#2}&\ttfamily #3\\} |
| 269 |
|
| 270 |
\newcommand*{\tkzhname}[1]{\textbf{\texttt{\textcolor{MidnightBlue}{% |
| 271 |
\textbackslash#1}}}} |
| 272 |
\newcommand*{\tkzNameSys}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{Operating System !#1@\texttt{#1}}} |
| 273 |
\newcommand*{\tkzNameDist}[1]{\texttt{\textcolor{MidnightBlue}{#1}}\index{TeX Distributions !#1@\texttt{#1}}} \newcommand{\red}{\color{BrickRed}} |
| 274 |
% print #1 but add index |
| 275 |
\newcommand*{\tkzcname}[1]{\Imacro{#1}\textbf{\texttt{\textcolor{MidnightBlue}{% |
| 276 |
\textbackslash#1}}}} |
| 277 |
\renewcommand\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX% |
| 278 |
\spacefactor1000 } |
| 279 |
\providecommand\LaTeX{% |
| 280 |
L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX} |
| 281 |
\providecommand\LATEX{\LaTeX} |
| 282 |
% Some definitions useful in producing this sort of documentation: |
| 283 |
\chardef\bslash=`\\ % p. 424, TeXbook |
| 284 |
% Normalized (nonbold, nonitalic) tt font, to avoid font |
| 285 |
% substitution warning messages if tt is used inside section |
| 286 |
% headings and other places where odd font combinations might |
| 287 |
% result. |
| 288 |
\newcommand{\ntt}{\normalfont\ttfamily} |
| 289 |
% command name |
| 290 |
\newcommand{\cn}[1]{{\protect\ntt\bslash#1}} |
| 291 |
% LaTeX package name |
| 292 |
\newcommand{\pkg}[1]{{\protect\ntt#1}} |
| 293 |
% File name |
| 294 |
\newcommand{\fn}[1]{{\protect\ntt#1}} |
| 295 |
% environment name |
| 296 |
\newcommand{\env}[1]{{\protect\ntt#1}} |
| 297 |
\hfuzz1pc % Don't bother to report overfull boxes if overage is < 1pc |
| 298 |
|
| 299 |
|
| 300 |
\DeclareRobustCommand\meta[1]{% |
| 301 |
\ensuremath\langle |
| 302 |
\ifmmode \expandafter \nfss@text \fi |
| 303 |
{% |
| 304 |
\meta@font@select |
| 305 |
\edef\meta@hyphen@restore |
| 306 |
{\hyphenchar\the\font\the\hyphenchar\font}% |
| 307 |
\hyphenchar\font\m@ne |
| 308 |
\language\l@nohyphenation |
| 309 |
\/#1\/% |
| 310 |
\meta@hyphen@restore |
| 311 |
}\ensuremath\rangle |
| 312 |
} |
| 313 |
\def\meta@font@select{} |
| 314 |
|
| 315 |
\renewcommand*{\idx@heading}{% |
| 316 |
\idx@@heading{\indexname}% |
| 317 |
} |
| 318 |
\renewenvironment{theindex}{% |
| 319 |
\@restonecoltrue |
| 320 |
\columnseprule \z@ |
| 321 |
\columnsep 35\p@ |
| 322 |
\idx@heading% |
| 323 |
\index@preamble\par\nobreak |
| 324 |
\thispagestyle{\indexpagestyle}\parindent\z@ |
| 325 |
\setlength{\parskip}{\z@ \@plus .3\p@}% |
| 326 |
\setlength{\parfillskip}{\z@ \@plus 1fil}% |
| 327 |
\let\item\@idxitem |
| 328 |
}{% |
| 329 |
\if@restonecol\onecolumn\else\clearpage\fi |
| 330 |
} |
| 331 |
%<----------- set colors of the document -------------------------- |
| 332 |
\pgfkeys{/tkzsetupcolor/.cd, |
| 333 |
background/.code = {\global\edef\tkz@suc@bkc{#1}}, |
| 334 |
text/.code = {\global\edef\tkz@suc@txt{#1}}} |
| 335 |
\def\tkzSetUpColors{\pgfutil@ifnextchar[{\tkz@SetUpColors}{% |
| 336 |
\tkz@SetUpColors[]}} |
| 337 |
\def\tkz@SetUpColors[#1]{% |
| 338 |
\begingroup |
| 339 |
\pgfkeys{tkzsetupcolor/.cd, |
| 340 |
background = \tkz@background@color, |
| 341 |
text = \tkz@text@color} |
| 342 |
\pgfqkeys{/tkzsetupcolor}{#1} |
| 343 |
\pagecolor{\tkz@suc@bkc} |
| 344 |
\color{\tkz@suc@txt} |
| 345 |
\endgroup} |
| 346 |
|
| 347 |
%<--------------------------------------------------------------------- |
| 348 |
%<------------------ couverture. ------------------------------------ |
| 349 |
\renewcommand\maketitle{% |
| 350 |
\null |
| 351 |
\AddToShipoutPicture*{% |
| 352 |
\setlength\unitlength{1mm} |
| 353 |
\put(0,0){% |
| 354 |
\makebox(0,0)[lb]{% |
| 355 |
\color{myblue!10}\rule{\paperwidth}{\paperheight}% |
| 356 |
}% |
| 357 |
}% |
| 358 |
\put(0,0){% |
| 359 |
\makebox(0,0)[lb]{% |
| 360 |
\color{myblue}\rule{40mm}{\paperheight}% |
| 361 |
}% |
| 362 |
}% |
| 363 |
\put(20,180){% 270 en portrait 180 en landscape |
| 364 |
\rotatebox{90}{% |
| 365 |
\makebox(0,0)[r]{% |
| 366 |
\fontsize{30}{30}\color{myblue!50!white}% |
| 367 |
\bfseries |
| 368 |
\selectfont{\@title\ \tkzversionofpack}\hfill% |
| 369 |
}% |
| 370 |
}% |
| 371 |
}% |
| 372 |
\put(60,60){% |
| 373 |
\begin{pgfpicture} |
| 374 |
\pgfsys@transformxyscale{.5}{.5} |
| 375 |
\pgfmathdeclarerandomlist{color}{{myblue}{DarkBlue}{SteelBlue}{blue}{MidnightBlue}} |
| 376 |
\foreach \a in {1,...,5}{% |
| 377 |
\pgfmathrandominteger{\x}{1}{300}% |
| 378 |
\pgfmathrandominteger{\y}{1}{200}% |
| 379 |
\pgfmathrandominteger{\r}{20}{100}% |
| 380 |
\pgfmathrandominteger{\s}{5}{95}% |
| 381 |
\pgfmathrandominteger{\o}{50}{80}% |
| 382 |
\pgfmathrandomitem{\c}{color}% |
| 383 |
\pgfdeclareradialshading{ballshading}{% |
| 384 |
\pgfpoint{-10bp}{10bp}}% |
| 385 |
{% |
| 386 |
color(0bp)=(\c!15!white); |
| 387 |
color(9bp)=(\c!75!white); |
| 388 |
color(18bp)=(\c!70!black); |
| 389 |
color(25bp)=(\c!50!black); |
| 390 |
color(50bp)=(black)% |
| 391 |
}% |
| 392 |
\pgfsetfillopacity{\o/100}% |
| 393 |
\pgfpathcircle{\pgfpoint{+\x pt}{+\y pt}}{+\r pt} |
| 394 |
\pgfshadepath{ballshading}{\s}% |
| 395 |
\pgfusepath{}% |
| 396 |
}% |
| 397 |
\end{pgfpicture}} |
| 398 |
|
| 399 |
\put(60,250){% 60,250 en portait 120,180 |
| 400 |
\makebox(0,0)[l]{% |
| 401 |
\begin{tikzpicture} |
| 402 |
\nodeshadowedone(2,-1.25){\fontsize{60}{60} |
| 403 |
\selectfont{\tkznamecollection}} |
| 404 |
\end{tikzpicture} |
| 405 |
}% |
| 406 |
}% |
| 407 |
\put(120,40){% |
| 408 |
\makebox(0,0)[l]{% |
| 409 |
\fontsize{17}{21} |
| 410 |
\textcolor{sectioncolor}{\selectfont{\tkzauthorofpack}}% |
| 411 |
}% |
| 412 |
}% |
| 413 |
\put(120,20){% |
| 414 |
\makebox(0,0)[l]{% |
| 415 |
\textcolor{sectioncolor}{\url{\tkzurlauthorcom}}% |
| 416 |
}% |
| 417 |
}% |
| 418 |
\put(120,30){% |
| 419 |
\makebox(0,0)[l]{% |
| 420 |
\textcolor{sectioncolor}{\today \ \ Documentation V.\tkzversionofdoc}}% |
| 421 |
}% |
| 422 |
}% |
| 423 |
\setcounter{footnote}{0}% |
| 424 |
}% |
| 425 |
%<----------------------- End cover ----------------------------> |
| 426 |
%<--------- presentation first page ---------------------------------> |
| 427 |
\newcommand\presentation{% |
| 428 |
\thispagestyle{empty}% |
| 429 |
\par\vspace*{3 cm} |
| 430 |
\begin{center} |
| 431 |
{\textcolor{myblue}{\Huge \@nameoffile}} |
| 432 |
\end{center} |
| 433 |
\par\vspace*{3 cm} |
| 434 |
\noindent |
| 435 |
\newlength{\tkz@lx}\settowidth{\tkz@lx}{\huge \tkznamecollection}% |
| 436 |
\advance\tkz@lx3em\quad |
| 437 |
\href{\tkzurlauthor}{% |
| 438 |
\rotatebox{90}{\hspace*{1.5em}{% |
| 439 |
\textcolor{sectioncolor}{\Huge \tkznamecollection}}}} |
| 440 |
\textcolor{sectioncolor}{\rule{2pt}{\tkz@lx}}\quad% |
| 441 |
\begin{minipage}[b]{.70\textwidth} |
| 442 |
{% |
| 443 |
\noindent\hfill |
| 444 |
\raggedleft\Large |
| 445 |
\href{mailto:[email protected]}{\textcolor{sectioncolor}{\tkzauthorofpack}}\par |
| 446 |
}% |
| 447 |
{\@defoffile} |
| 448 |
\par |
| 449 |
\end{minipage} |
| 450 |
} |
| 451 |
%<----------------------- Spc. Table ----------------------------> |
| 452 |
\newcommand{\tkzsubf}[2]{% |
| 453 |
{\small\begin{tabular}[t]{@{}c@{}} |
| 454 |
#1\\#2 |
| 455 |
\end{tabular}}% |
| 456 |
} |
| 457 |
|
| 458 |
\renewcommand{\labelitemi}{--} |
| 459 |
\setlength\parindent{0pt} |
| 460 |
\RedeclareSectionCommand[tocnumwidth=3.5em]{part} |
| 461 |
\RedeclareSectionCommand[tocnumwidth=3.5em]{section} |
| 462 |
\RedeclareSectionCommand[tocnumwidth=3.5em]{subsection} |
| 463 |
\RedeclareSectionCommand[tocnumwidth=3.5em]{subsubsection} |
| 464 |
\renewcommand\partheadstartvskip{\clearpage\null\vfil} |
| 465 |
\renewcommand\partheadmidvskip{\par\nobreak\vskip 20pt\thispagestyle{empty}} |
| 466 |
\renewcommand\partheadendvskip{\vfil\clearpage} |
| 467 |
\renewcommand\raggedpart{\centering} |
| 468 |
|
| 469 |
%<------------------------------------------------------------------------- |
| 470 |
% code for booktab font change command see jos-astuces.rtfd |
| 471 |
\newcommand*{\@CellCode}[1]{} |
| 472 |
\newcommand*{\thead}{\noalign{\iffalse}\fi\@thead} |
| 473 |
\newcommand*{\@thead}[1][\em\ttfamily]{\gdef\@CellCode{#1}\iffalse{\fi}} |
| 474 |
\newcommand*{\tbody}{\noalign{\gdef\@CellCode{}}} |
| 475 |
\newcolumntype{I}{>{\@CellCode}}% |
| 476 |
|
| 477 |
% table inside the cover ----------------------------> |
| 478 |
|
| 479 |
\def\tkzTitleFrame#1{% |
| 480 |
\edef\titleinframe{#1} |
| 481 |
\author{\tkzauthorofpack} |
| 482 |
\title{\tkznameofpack} |
| 483 |
\date{\today} |
| 484 |
\clearpage |
| 485 |
\thispagestyle{empty} |
| 486 |
\maketitle |
| 487 |
\null |
| 488 |
\if@tkzcadre |
| 489 |
\AddToShipoutPicture*{% |
| 490 |
\setlength\unitlength{1mm} |
| 491 |
\if@landscape\def\tkz@posy{90}\def\tkz@posx{160}% |
| 492 |
\else\def\tkz@posx{70}\def\tkz@posy{140} |
| 493 |
\fi |
| 494 |
\put(\tkz@posx,\tkz@posy){% |
| 495 |
\begin{tikzpicture}[color=framecolor, |
| 496 |
every node/.style={inner sep=0pt}] |
| 497 |
\node[draw,line width=2pt,double,color=framecolor, |
| 498 |
fill=myblue!10,opacity=.5,minimum width=300pt,minimum height=240pt] (vecbox) {}; |
| 499 |
\node[text width=240pt] at (vecbox.center){% |
| 500 |
\begin{center} |
| 501 |
\color{MidnightBlue} |
| 502 |
\fontsize{24}{48} |
| 503 |
\selectfont\titleinframe% |
| 504 |
\end{center}}; |
| 505 |
\node[anchor=north west] at (vecbox.north west) |
| 506 |
{\pgfornament[width=2cm]{61}}; |
| 507 |
\node[anchor=north east] at (vecbox.north east) |
| 508 |
{\pgfornament[width=2cm,symmetry=v]{61}}; |
| 509 |
\node[anchor=south west] at (vecbox.south west) |
| 510 |
{\pgfornament[width=2cm,symmetry=h]{61}}; |
| 511 |
\node[anchor=south east] at (vecbox.south east) {\pgfornament[width=2cm,symmetry=c]{61}}; |
| 512 |
\end{tikzpicture} |
| 513 |
} |
| 514 |
}\fi} |
| 515 |
\endinput |