diff options
author | Karl Berry <karl@freefriends.org> | 2020-02-06 20:54:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-02-06 20:54:06 +0000 |
commit | 2298366a350fef08543538b6cd2f5c181b8f2ff9 (patch) | |
tree | c56605f761408feda266fffc266addd53d27728f /Master/texmf-dist | |
parent | 7d7952eb1c3270d347364879697e3905729337d7 (diff) |
tkz-doc (6feb20)
git-svn-id: svn://tug.org/texlive/trunk@53701 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/tkz-doc/couverture.tex | 92 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tkz-doc/tkz-doc.cfg | 82 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tkz-doc/tkz-doc.cls | 511 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/tkz-doc/tkzexample.sty | 4 |
4 files changed, 348 insertions, 341 deletions
diff --git a/Master/texmf-dist/doc/latex/tkz-doc/couverture.tex b/Master/texmf-dist/doc/latex/tkz-doc/couverture.tex new file mode 100644 index 00000000000..25092db22d0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tkz-doc/couverture.tex @@ -0,0 +1,92 @@ +%<--------- Couverture des documentations -------------------------------- + +%<------------------ Make Title ------------------------------------------ + +\renewcommand\maketitle{% +\null +\AddToShipoutPicture*{% +\setlength\unitlength{1mm} +\put(0,0){% + \makebox(0,0)[lb]{% + \color{myblue!10}\rule{\paperwidth}{\paperheight}% + }% + }% +\put(0,0){% + \makebox(0,0)[lb]{% + \color{myblue}\rule{40mm}{\paperheight}% + }% + }% +\put(20,270){% 270 en portrait 180 + \rotatebox{90}{% + \makebox(0,0)[r]{% + \fontsize{30}{30}\color{myblue!50!white}% + \bfseries + \selectfont{\@title\ \tkzversionofpack}\hfill% + }% + }% + }% +\put(60,60){% +\begin{pgfpicture} +\pgfsys@transformxyscale{.5}{.5} +\pgfmathdeclarerandomlist{color}{{myblue}{DarkBlue}{SteelBlue}{blue}{MidnightBlue}} + \foreach \a in {1,...,5}{% + \pgfmathrandominteger{\x}{1}{300}% + \pgfmathrandominteger{\y}{1}{200}% + \pgfmathrandominteger{\r}{20}{100}% + \pgfmathrandominteger{\s}{5}{95}% + \pgfmathrandominteger{\o}{50}{80}% + \pgfmathrandomitem{\c}{color}% + \pgfdeclareradialshading{ballshading}{% + \pgfpoint{-10bp}{10bp}}% + {% + color(0bp)=(\c!15!white); + color(9bp)=(\c!75!white); + color(18bp)=(\c!70!black); + color(25bp)=(\c!50!black); + color(50bp)=(black)% + }% + \pgfsetfillopacity{\o/100}% + \pgfpathcircle{\pgfpoint{+\x pt}{+\y pt}}{+\r pt} + \pgfshadepath{ballshading}{\s}% + \pgfusepath{}% + }% + \end{pgfpicture}} +\put(80,150){ +\begin{tikzpicture}[scale=.75,rotate=60] +\tkzDefPoints{00/0/A,12/0/B,6/12*sind(60)/C} +\foreach \density in {20,30,...,240}{% + \tkzDrawPolygon[fill=teal!\density](A,B,C) + \pgfnodealias{X}{A} + \tkzDefPointWith[linear,K=.15](A,B) \tkzGetPoint{A} + \tkzDefPointWith[linear,K=.15](B,C) \tkzGetPoint{B} + \tkzDefPointWith[linear,K=.15](C,X) \tkzGetPoint{C} + } +\end{tikzpicture}% +} +\put(60,250){% 60,250 en portait 120,180 + \makebox(0,0)[l]{% + \begin{tikzpicture} + \nodeshadowedone(2,-1.25){\fontsize{60}{60} + \selectfont{\tkznamecollection}} + \end{tikzpicture} + }% + }% +\put(120,40){% + \makebox(0,0)[l]{% + \fontsize{17}{21} + \textcolor{sectioncolor}{\selectfont{\tkzauthorofpack}}% + }% + }% +\put(120,20){% + \makebox(0,0)[l]{% + \textcolor{sectioncolor}{\url{\tkzurlauthorcom}}% + }% + }% +\put(120,30){% + \makebox(0,0)[l]{% + \textcolor{sectioncolor}{\today \ \ Documentation V.\tkzversionofdoc}}% + }% + }% +\setcounter{footnote}{0}% +}% +%<----------------------- End Couverture ----------------------------> diff --git a/Master/texmf-dist/doc/latex/tkz-doc/tkz-doc.cfg b/Master/texmf-dist/doc/latex/tkz-doc/tkz-doc.cfg new file mode 100644 index 00000000000..7c09cefcc32 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tkz-doc/tkz-doc.cfg @@ -0,0 +1,82 @@ +% Copyright 2011 by Alain Matthes +% +% This file may be distributed and/or modified +% +% 1. under the LaTeX Project Public License and/or +% 2. under the GNU Public License. + +% original tkz-doc.cfg +% +% If you modify this original file, YOUR CHANGES WILL BE LOST when it is +% updated. Instead, put your changes in the entire copy of tkz-base.cfg +% and save the file in a directory part of your TEXINPUTS environment +% variable. +%=============================================================================== + +\def\fileversion{1.2c} +\def\filedate{2020/02/03} + +% ============= colors ========================================================= + +% \definecolor [⟨type⟩]{⟨name⟩}{⟨model-list⟩}{⟨spec-list⟩} +% \providecolor [⟨type⟩]{⟨name⟩}{⟨model-list⟩}{⟨spec-list⟩} +% \colorlet [⟨type⟩]{⟨name⟩}[⟨num model⟩]{⟨color⟩} +\definecolor{myblue}{RGB}{020,120,180} +\definecolor{fondpaille}{cmyk}{0,0,0.1,0} +\definecolor{bistre}{rgb}{.75,.50,.30} +\definecolor{textcolor}{RGB}{0, 0, 0} +\providecolor{bistre}{rgb}{.75,.50,.30} +\definecolor{mygray}{gray}{0.1} + +\colorlet{sectioncolor}{MidnightBlue} +\colorlet{titlecolorbox}{gray!10} +\colorlet{pdflinkcolor}{myblue} +\colorlet{pdfurlcolor}{MidnightBlue} +\colorlet{pdffilecolor}{Peach} +\colorlet{stringcolor}{myblue!40!black!100} +\colorlet{commencolor}{blue!0!black!100} + +\colorlet{graphicbackground}{white} +\colorlet{codebackground}{lightgray!30} +\colorlet{codeonlybackground}{lightgray!30} +\colorlet{numbackground}{white} +\colorlet{textcodecolor}{darkgray} +\colorlet{numcolor}{MidnightBlue} + +\definecolor{Salmon}{RGB}{178,51,51} +\definecolor{BrickRed}{RGB}{233,49,16} +\definecolor{TealBlue}{RGB}{16,83,165} +\definecolor{ForestGreen}{RGB}{10,112,43} +\definecolor{Tangerine}{RGB}{244,176,108} +\definecolor{DarkBrown}{RGB}{130,65,0} +\definecolor{blueGrey}{rgb}{0.4,0.48,0.53} +\def\tkzred{\color{red}} +\def\tkzblue{\color{blue}} +%--------------- mots importants et macros --------------------------------- +\newcommand*{\BS}{\texttt{\char92}} +\newcommand*{\tkz}{T{\em k}Z} +\newcommand*{\PGF}{\tkzname{PGF}} +\newcommand*{\TIKZ}{TikZ} +\newcommand*{\pdf}{\textsc{pdf}} +\newcommand*{\pgfname}{\textsc{pgf}} +\newcommand*{\tikzname}{Ti{\em k}Z} +\newcommand*{\tkzdft}[1]{{\texttt{#1}}} +\newcommand*{\tkzAttention}[3]{\ \\\llap{\textcolor{#3}{#1\hskip #2}}} +\newcommand*{\tkzHand}{\ \\\llap{\textcolor{red}{\lefthand\hskip1em}}} +\newcommand*{\tkzBomb}{\ \\\llap{\textcolor{red}{\bomb\hskip1em}}} +\newcommand*{\tkzTwoBomb}{\ \\\llap{\textcolor{red}{\bomb\ \bomb\hskip1em}}} +\newcommand*{\tkzname}[1]{\textbf{\texttt{\textcolor{MidnightBlue}{#1}}}} +\newcommand*{\tkzimp}[1]{\textbf{#1}} +\newcommand*{\tkzHandBomb}{\ \\\llap{\textcolor{red}{\lefthand\ \bomb\hskip1em}}} +\providecommand\LaTeX{L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX} +\providecommand\LATEX{\LaTeX} +\renewcommand\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX\spacefactor1000} +\providecommand\TEX{\TeX} +%------------------------------------------------------------------------------- +\def\tkz@background@color{white} +\def\tkz@text@color{black} +\global\edef\tkz@suc@bkc{\tkz@background@color} +\global\edef\tkz@suc@txt{\tkz@text@color} +%------------------------------------------------------------------------------- +\endinput + diff --git a/Master/texmf-dist/tex/latex/tkz-doc/tkz-doc.cls b/Master/texmf-dist/tex/latex/tkz-doc/tkz-doc.cls index 0cd1e5ce280..0e1eb6ade7b 100644 --- a/Master/texmf-dist/tex/latex/tkz-doc/tkz-doc.cls +++ b/Master/texmf-dist/tex/latex/tkz-doc/tkz-doc.cls @@ -1,6 +1,7 @@ -% Copyright (C) 2009 Alain Matthes +% tkz-doc.cls +% Copyright (C) 2020 Alain Matthes % encoding : utf8 -% engine : pdflatex +% engine : lualatex % H I G H L Y E X P E R I M E N T A L % This file may be distributed and/or modified % @@ -11,302 +12,126 @@ % See the file doc/generic/pgf/licenses/LICENSE for more details.% % See http://www.latex-project.org/lppl.txt for details. % +% tkz-doc class for use with the tkz documentation +% ( AlterMundus Collection ). % -% ``tkz-doc'' class for use with the tkz documentation ( AlterMundus Collection ). -% -% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% % -% tkz-doc.cls encodage : utf8 % -% % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% % -% Créé par Alain Matthes le 2009-02-22. % -% % -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %% Objet : Classe LaTeX et Styles pour créer des documentations. -%<---------------------------------------------------------------------------> %<-------------- Définitions relatives au package ---------------------------> \newcommand*{\PackageName}{tkz-doc} -\newcommand*{\PackageVersion}{1.1 d} -\newcommand*{\filedate}{2018/09/19} +\newcommand*{\PackageVersion}{1.2c} +\newcommand*{\filedate}{2020/02/03} %<---------------------- Identification Part --------------------------------> -% -%<---------------------------------------------------------------------------> \NeedsTeXFormat{LaTeX2e}[1995/12/01] -\ProvidesClass{\PackageName}% -[\filedate\space Version:\space\PackageVersion\space tkz documentation class] +\ProvidesClass{\PackageName}[% + \filedate\space Version:\space\PackageVersion\space % + tkz documentation class based on scrartcl] \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}} \ProcessOptions\relax -\LoadClass[titlepage,oneside]{scrartcl} -\PassOptionsToPackage{usenames,dvipsnames,svgnames}{xcolor} -\ifx\e@alloc\@undefined - \RequirePackage{etex} -\fi -\RequirePackage[utf8]{inputenc} -\RequirePackage{xkeyval}[2005/11/25] +\LoadClass[titlepage,a4paper]{scrartcl} +%<----------------- loading some packages ----------------------------------> +% dvipsnames loads a set of 68 cmyk colors as defined in the dvips driver. +% svgnames loads a set of 151 rgb color names +% obsolete usenames +\PassOptionsToPackage{dvipsnames,svgnames}{xcolor} +%<-------------------------------------------------------------------------->- +\KOMAoptions{twoside=false} +%<-------------------------------------------------------------------------->- \RequirePackage{framed,eso-pic} -\RequirePackage{amsmath,amssymb} -\RequirePackage{textcomp} -\RequirePackage[upright]{fourier} -\RequirePackage[scaled=0.85]{berasans} -\RequirePackage[scaled=0.85]{beramono} \RequirePackage[bottom,stable,ragged]{footmisc} -\RequirePackage[automark,nouppercase]{scrpage2} - - +\RequirePackage[automark,markcase=ignoreuppercase]{scrlayer-scrpage} +%<------------- define important words ----------------------------------> +\InputIfFileExists{tkz-doc.cfg}{\typeout{Local configuration file tkz-doc.cfg found and used}}{\typeout{tkz-doc.cfg not found}} + %<-------------------------------------------------------------------------->- \pagestyle{scrheadings} \clearscrheadings \clearscrplain -\ohead{\textcolor{Peach}{\pagemark}} -\ihead{\textcolor{Peach}{\headmark}} -\rofoot{\textcolor{Peach}{\namecollection}} -\lofoot{\textcolor{Peach}{\nameofpack}} +\ohead{\textcolor{sectioncolor}{\pagemark}} +\ihead{\textcolor{sectioncolor}{\headmark}} +\rofoot{\textcolor{sectioncolor}{\tkznamecollection}} +\lofoot{\textcolor{sectioncolor}{\tkznameofpack}} + \automark[subsection]{section} -\setheadsepline{.4pt}[\color{Peach}] -\setfootsepline{.4pt}[\color{Peach}] +\KOMAoptions{headsepline=.4pt} +\addtokomafont{headsepline}{\color{sectioncolor}} + +\KOMAoptions{footsepline=.4pt} +\addtokomafont{footsepline}{\color{sectioncolor}} + \setheadwidth[0pt]{text} \setfootwidth[0pt]{text} \renewcommand{\footnoterule}{\vspace*{-3pt}{% - \color{Peach}\hrule width 2in height 0.4pt} - \vspace*{2.6pt}} -\deffootnote{1.5em}{1em}{\makebox[1.5em][l]{% - \thefootnotemark}} + \color{sectioncolor}\hrule width 2in height 0.4pt}\vspace*{2.6pt}} +\deffootnote{1.5em}{1em}{\makebox[1.5em][l]{\thefootnotemark}} \addtolength{\skip\footins}{\baselineskip}% -%<------------------– En-tête et pied de page ------------------------------> -% -%<---------------------------------------------------------------------------> +%<------------------– En-tête et pied de page ------------------------------ \pagenumbering{arabic} -\newcommand\SectionFontStyle{\sffamily} +\newcommand\SectionFontStyle{\ttfamily} \setkomafont{sectioning}{\bfseries\SectionFontStyle} \setkomafont{pagenumber}{\bfseries\SectionFontStyle} -\setkomafont{pagehead}{\small\sffamily} -\setkomafont{pagefoot}{\small\sffamily} +\setkomafont{pagehead}{\small\ttfamily} +\setkomafont{pagefoot}{\small\ttfamily} \setkomafont{descriptionlabel}{\itshape} \addtokomafont{sectioning}{\color{sectioncolor}} \renewcommand*{\raggedsection}{\raggedright} -%<---------------------------------------------------------------------------> -% -%<---------------------------------------------------------------------------> +%<--------------------------------------------------------------------------- \newcounter{cnt}\setcounter{cnt}{1} \setcounter{secnumdepth}{3}% \setcounter{tocdepth}{3} +\color{blue} +%<------------------ Éxécution et chargement ----------------------------- -\color{Maroon} -\usepackage{titlesec} -\titleformat{\section}[frame] -{\normalfont} -{\filright\footnotesize\enspace SECTION \thesection\enspace} -{8pt} -{\Large\bfseries\filcenter} -\titleformat{\subsection}[block] {\large\bfseries\filright}{\fbox{\thesubsection}}{2em}{}% -%<------------------ Éxécution et chargement -------------------------------> -% -%<---------------------------------------------------------------------------> -% ------------------–Fin Taille des fontes -------------------------------> -\RequirePackage{makeidx} -\@twocolumnfalse -\makeindex -\RequirePackage{calc} \RequirePackage{tikz} -% We need lots of libraries... -\usetikzlibrary{% - arrows,% - calc,% - fit,% - patterns,% - plotmarks,% - shapes.geometric,% - shapes.misc,% - shapes.symbols,% - shapes.arrows,% - backgrounds,% - topaths,% - trees,% - matrix,% - folding,% - fadings,% - through,% - positioning,% - scopes,% - decorations.shapes,% - decorations.text,% - decorations.pathreplacing,% - decorations.pathmorphing,% - decorations.markings,% - shadows} - -\RequirePackage{multido} -\RequirePackage{lscape} -\RequirePackage{graphicx} -\RequirePackage{array} -\RequirePackage{multicol} -\RequirePackage{multirow} +\usetikzlibrary{babel, + decorations.shapes, + decorations.text, + decorations.pathreplacing, + decorations.pathmorphing, + decorations.markings, + shadows} \RequirePackage{tabularx,ragged2e} -\RequirePackage{booktabs} \RequirePackage[bottom,stable,ragged]{footmisc} - - \raggedbottom -% colors -\definecolor{fondpaille}{cmyk}{0,0,0.1,0} -\definecolor{bistre}{rgb}{.75,.50,.30} -\providecolor{bistre}{rgb}{.75,.50,.30} -\colorlet{graphicbackground}{fondpaille} -\colorlet{codebackground}{fondpaille!92!Maroon} -\colorlet{sectioncolor}{Maroon} -\definecolor{textcolor}{RGB}{0, 0, 0} -\colorlet{titlecolorbox}{fondpaille!92!Maroon} -\colorlet{pdflinkcolor}{blue} -\colorlet{pdfurlcolor}{blue} -\colorlet{pdffilecolor}{Peach} -\colorlet{stringcolor}{green!40!black!100} -\colorlet{commencolor}{blue!0!black!100} - \newbox\tkzbox - +%<--------------- some macros -------------------------------------------- \def\nodeshadowedone(#1,#2)#3{% -\node[Mahogany,above,inner sep=0pt]{\global\setbox\tkzbox=\hbox{#3}\copy\tkzbox}; -\node[above,yscale=#2,inner sep=0pt,xslant=#1,Peach!60]{\box\tkzbox}; +\node[myblue,above,inner sep=0pt]{\global\setbox\tkzbox=\hbox{#3}\copy\tkzbox}; +\node[above,yscale=#2,inner sep=0pt,xslant=#1,myblue!60]{\box\tkzbox}; }% -%<--------------------------- Indexation ------------------------------------> -\newcommand*{\Ilib}[1]{\index{Library_1@\texttt{Library}!\texttt{#1}}} -\newcommand*{\Ienv}[1]{\index{Environment_1@\texttt{Environment}!\texttt{#1}}} -\newcommand*{\IargEnv}[2]{\index{#1_2@\texttt{#1: arguments}!\texttt{#2}}} -\newcommand*{\IargNameEnv}[2]{\tkzname{#2}\index{#1_2@\texttt{#1: arguments}!\texttt{#2}}} -\newcommand*{\IoptEnv}[2]{\index{#1_3@\texttt{#1: options}!\texttt{#2}}} -\newcommand*{\IoptNameEnv}[2]{\tkzname{#2}\index{#1_3@\texttt{#1: options}!\texttt{#2}}} -\newcommand*{\Imacro}[1]{\index{#1_1@\texttt{\textbackslash#1}}}%n -\newcommand*{\Iarg}[2]{% - \index{#1_2@\texttt{\textbackslash#1: arguments}!\texttt{#2}}} -\newcommand*{\IargName}[2]{\tkzname{#2}\index{#1_2@\texttt{\textbackslash#1: arguments}!\texttt{#2}}} -\newcommand*{\IoptName}[2]{\tkzname{#2}\index{#1_3@\texttt{\textbackslash#1: options}!\texttt{#2}}} -\newcommand*{\Iopt}[2]{\index{#1_3@\texttt{\textbackslash#1: options}!\texttt{#2}}} -\newcommand*{\Istyle}[2]{\index{#1_3@\texttt{\textbackslash#1: styles}!\texttt{#2}}} -\newcommand*{\IstyleEnv}[2]{\index{#1_3@\texttt{#1: styles}!\texttt{#2}}} -\newcommand*{\Iaccent}[2]{\index{#1@\texttt{#2}}} -\newcommand*{\NameLib}[1]{\tkzname{#1}\index{Ti\emph{k}Z Library !#1@\texttt{#1}}} -\newcommand*{\NameSys}[1]{\index{Operating System !#1@\texttt{#1}}} -\newcommand*{\NameDist}[1]{\index{TeX Distributions !#1@\texttt{#1}}} -\newcommand*{\NameFonct}[1]{\index{Functions !#1@\texttt{#1}}} -\newcommand*{\NamePack}[1]{\index{Package !#1@\texttt{#1}}} - -\newcommand*{\TOenvline}[3]{\IoptNameEnv{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\} -\newcommand*{\TOline}[3]{\IoptName{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\} -\newcommand*{\TAline}[3]{\IargName{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\} -\newcommand*{\TMline}[3]{\tkzcname{#1}\index{#1_1@\texttt{\textbackslash#1}}&\tkzdft{#2}&\ttfamily #3\\} - -\newcommand*{\tkzNamePack}[1]{\tkzname{#1}\NamePack{#1}} -\newcommand*{\tkzNameMacro}[1]{\tkzcname{#1}\Imacro{#1}} -\newcommand*{\tkzNameEnv}[1]{\tkzname{#1}\Ienv{#1}} -%<--------------------------------------------------------------------------> -%<--------------------------------------------------------------------------> + % some of the macros below are absolete +\def\nameoffile#1{\gdef\@nameoffile{#1}} +\def\@nameoffile{\@latex@warning@no@line{No \noexpand\nameoffile given}} +\long\def\defoffile#1{\protected@xdef\@defoffile{\@defoffile{#1}}} +\let\@defoffile\@empty +%<------------------------------------------------------------------------- \newcommand*{\addbs}[1]{\texttt{\textbackslash#1}} \newcommand*{\@CellCode}[1]{} \newcommand*{\thead}{\noalign{\iffalse}\fi\@thead} \newcommand*{\@thead}[1][\em\ttfamily]{\gdef\@CellCode{#1}\iffalse{\fi}} \newcommand*{\tbody}{\noalign{\gdef\@CellCode{}}} \newcolumntype{I}{>{\@CellCode}} -%<--------------------------------- Couverture ----------------------------> -%<--------------------------------- Make Title ----------------------------> -\renewcommand\maketitle{% -\null -\AddToShipoutPicture*{% -\setlength\unitlength{1mm} -\put(0,0){\makebox(0,0)[lb]{\color{Peach!10}\rule{\paperwidth}{\paperheight}}} -\put(0,0){\makebox(0,0)[lb]{\color{Mahogany}\rule{40mm}{\paperheight}}} -\put(20,270){\rotatebox{90}{% -\makebox(0,0)[r]{\fontsize{60}{60}\color{orange!50!white}% -\bfseries \selectfont{\@title\ \versionofpack}\hfill}}}% - \put(60,80){% - \begin{pgfpicture} -\pgfmathdeclarerandomlist{color}{{Peach}{Orange}{Red}{Brown}} -\foreach \a in {1,...,5}{% - \pgfmathrandominteger{\x}{1}{300} - \pgfmathrandominteger{\y}{1}{200} - \pgfmathrandominteger{\r}{20}{100} - \pgfmathrandominteger{\s}{5}{95} - \pgfmathrandominteger{\o}{50}{80} - \pgfmathrandomitem{\c}{color} - \pgfdeclareradialshading{ballshading}{\pgfpoint{-10bp}{10bp}} - {color(0bp)=(\c!15!white); color(9bp)=(\c!75!white); - color(18bp)=(\c!70!black); color(25bp)=(\c!50!black); color(50bp)=(black)} - \pgfsetfillopacity{\o/100} - \pgfpathcircle{\pgfpoint{+\x pt}{+\y pt}}{+\r pt} - \pgfshadepath{ballshading}{\s} - \pgfusepath{} -}% -\end{pgfpicture}} -\put(60,250){\makebox(0,0)[l]{% -\begin{tikzpicture} -\nodeshadowedone(2,-1.25){\fontsize{60}{60}\selectfont{\namecollection}}; -\end{tikzpicture} -}}% -\put(130,40){\makebox(0,0)[l]{% -\fontsize{17}{21} -\textcolor{Mahogany}{\selectfont{\authorofpack}}}} -\put(130,20){\makebox(0,0)[l]{% -\textcolor{Mahogany}{\url{\urlauthor} \ \url{\urlauthorcom}}}} -\put(130,30){\makebox(0,0)[l]{\textcolor{Mahogany}{\today}}}} -%<----------------------------- End Couverture ----------------------------> -\setcounter{footnote}{0}% -} -%<----------------------------- def macro arg opt----------------------------> - % some of the macros below are absolete -\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} -\def\cmd@to@cs#1#2{\char\number`#2\relax} -\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} -\providecommand\marg[1]{{\ttfamily\char`\{}\opt{\meta{#1}}{\ttfamily\char`\}}} -\providecommand\oarg[1]{{\ttfamily[}\opt{\meta{#1}}{\ttfamily]}} -\providecommand\parg[1]{{\ttfamily(}\opt{\meta{#1}}{\ttfamily)}} -\newcommand\opt[1]{{\color{Maroon}#1}} -\newcommand\ooarg[1]{{\ttfamily[}\meta{#1}{\ttfamily]}} -\newcommand*{\var}[1]{\{\opt{\meta{#1}}\}} -\newcommand*{\varp}[1]{\big(\opt{\meta{#1}}\big)} -\newcommand*{\vara}[1]{\{#1\}} - - -\DeclareRobustCommand\meta[1]{% -\ensuremath\langle - \ifmmode \expandafter \nfss@text \fi - {% - \meta@font@select - \edef\meta@hyphen@restore - {\hyphenchar\the\font\the\hyphenchar\font}% - \hyphenchar\font\m@ne - \language\l@nohyphenation - \/#1\/% - \meta@hyphen@restore - }\ensuremath\rangle -} -\def\meta@font@select{\itshape} -% %<-------------------------- NewMacroBox -----------------------------------> - \newcommand*{\ActivBoxName}{} \newenvironment{NewMacroBox}[2]{% \parindent=0pt \renewcommand*{\ActivBoxName}{#1} -\def\FrameCommand{\color{Maroon} -{\vrule width 1pt\hspace{3pt}}% -}% +\def\FrameCommand{\color{myblue}{\vrule width 1pt\hspace{3pt}}}% \MakeFramed{\advance\hsize-\width}% \noindent \makebox[0pt][l]{% -\hspace{-4pt}% -\setlength{\fboxrule}{1pt}% -\setlength{\fboxsep}{3pt}% -\fcolorbox{Maroon}{titlecolorbox}{% -\rule{6pt}{0pt}% -\makebox[\width+6pt][l]{\tkzcname{#1#2}}% -}% + \hspace{-4pt}% + \setlength{\fboxrule}{1pt}% + \setlength{\fboxsep}{3pt}% + \fcolorbox{sectioncolor}{titlecolorbox}{% + \rule{6pt}{0pt}% + \makebox[\width+6pt][l]{\tkzcname{#1#2}}% + }% }\\*[.5\baselineskip]% \noindent % \ignorespaces\tkzcname{#1#3} \Imacro{#1}% -\color{Maroon}}{% +}% +{% \par\noindent% \makebox[0pt][l]{% \hspace{-6pt}% @@ -321,6 +146,7 @@ \par\medskip }% %<----------------- end NewMacroBox -----------------------------------------> + %<----------------------------- NewEnvBox -----------------------------------> \let\fram@d=\MakeFramed \let\endfram@d=\endMakeFramed @@ -328,35 +154,30 @@ \parindent=0pt \renewcommand*{\ActivBoxName}{#1} %\gdef\tkzEnvMacro{#1} -\def\FrameCommand{\color{Maroon} -{\vrule width 1pt\hspace{3pt}}% -}% +\def\FrameCommand{\color{sectioncolor}{\vrule width 1pt\hspace{3pt}}}% \MakeFramed{\advance\hsize-\width}% \noindent \makebox[0pt][l]{% - \hspace{-4pt}% \setlength{\fboxrule}{1pt}% \setlength{\fboxsep}{3pt}% -\fcolorbox{Maroon}{titlecolorbox}{% +\fcolorbox{sectioncolor}{titlecolorbox}{% \rule{6pt}{0pt}% \makebox[\width+6pt][l]{% - \tkzcname{\textcolor{Maroon}{begin}\{\ActivBoxName\}}{\oarg{options}}% + \tkzcname{\textcolor{sectioncolor}{begin}\{\ActivBoxName\}}{\oarg{options}}% \hspace*{.25cm}\meta{environment contents}\hspace*{.25cm}% - \tkzcname{\textcolor{Maroon}{end}\{\ActivBoxName\}}}% + \tkzcname{\textcolor{sectioncolor}{end}\{\ActivBoxName\}}}% }% }\\*[.5\baselineskip]% \noindent % \ignorespaces\tkzcname{#1#3} \Ienv{#1} -\color{Maroon}}{% +\color{myblue}}{% \par\noindent% \makebox[0pt][l]{% - \hspace{-6pt}% \rule{6pt}{1pt}% \rule{\textwidth}{1pt}% - \hspace{-1pt}% \rule{1pt}{10pt}% }% @@ -366,83 +187,70 @@ \par\medskip } %<------------------- end NewEnvBox -----------------------------------------> -\def\nameoffile#1{\gdef\@nameoffile{#1}} -\def\@nameoffile{\@latex@warning@no@line{No \noexpand\nameoffile given}} -\long\def\defoffile#1{ - \protected@xdef\@defoffile{\@defoffile{#1}}% -} -\let\@defoffile\@empty -\def\nameoffile#1{\gdef\@nameoffile{#1}} -\def\@nameoffile{\@latex@warning@no@line{No \noexpand\nameoffile given}} -\long\def\defoffile#1{\protected@xdef\@defoffile{\@defoffile{#1}}% -} -\let\@defoffile\@empty - -\newcommand*{\red}{\color{red}} -\newcommand*{\blue}{\color{BlueViolet}} -\newcommand*{\BS}{\texttt{\char92}} -\newcommand*{\tkz}{Ti{\em k}Z} -\newcommand*{\orange}{\color{Orange}} -\newcommand*{\blanc}{\color{White}} -\newcommand*{\PGF}{\tkzname{PGF}} -\newcommand*{\TIKZ}{\tkzname{Ti\emph{k}Z}} -\newcommand*{\beamer}{\textsc{beamer}} -\newcommand*{\pdf}{\textsc{pdf}} -\newcommand*{\pgfname}{\textsc{pgf}} -\newcommand*{\tikzname}{Ti\emph{k}Z} -\newcommand*{\pstricks}{\textsc{pstricks}} - -\newcommand*{\tkzdft}[1]{{\texttt{#1}}} -\providecommand\LaTeX{% - L\kern-.36em\raise.3ex\hbox{\sc a}\kern-.15em\TeX} -\providecommand\LATEX{\LaTeX} -\renewcommand\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125emX% - \spacefactor1000 } - \providecommand\TEX{\TeX} - \newcommand*{\tkzAttention}[3]{\ \\\llap{\textcolor{#3}{#1\hskip #2}}} -\newcommand*{\tkzHand}{\ \\\llap{\textcolor{red}{\lefthand\hskip1em}}} -\newcommand*{\tkzHandBomb}{\ \\\llap{\textcolor{red}{\lefthand\ \bomb\hskip1em}}} -\newcommand*{\tkzBomb}{\ \\\llap{\textcolor{red}{\bomb\hskip1em}}} -\newcommand*{\tkzTwoBomb}{\ \\\llap{\textcolor{red}{\bomb\ \bomb\hskip1em}}} - -\newcommand*{\tkzname}[1]{\textbf{\texttt{\textcolor{Maroon}{#1}}}} -\newcommand*{\tkzimp}[1]{\textbf{#1}} -\newcommand*{\tkzcname}[1]{\Imacro{#1}\textbf{\texttt{\textcolor{Maroon}{\textbackslash#1}}}} -\newcommand*{\tkzhname}[1]{\textbf{\texttt{\textcolor{Maroon}{\textbackslash#1}}}} -%<--------------------------- presentation ----------------------------------> -% \providecommand\href[2]{\texttt{#1}} +%<----------------------------- def macro arg opt----------------------------> +\def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} +\def\cmd@to@cs#1#2{\char\number`#2\relax} +\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} +\providecommand\marg[1]{{\ttfamily\char`\{}\opt{\meta{#1}}{\ttfamily\char`\}}} +\providecommand\oarg[1]{{\ttfamily[}\opt{\meta{#1}}{\ttfamily]}} +\providecommand\parg[1]{{\ttfamily(}\opt{\meta{#1}}{\ttfamily)}} +\newcommand\opt[1]{{\color{myblue}#1}} +\newcommand\ooarg[1]{{\ttfamily[}\meta{#1}{\ttfamily]}} +\newcommand*{\var}[1]{\{\opt{\meta{#1}}\}} +\newcommand*{\varp}[1]{\big(\opt{\meta{#1}}\big)} +\newcommand*{\vara}[1]{\{#1\}} +% -- Macros pour indexation ------------------------------------------------- +\newcommand*{\tkzNamePack}[1]{\tkzname{#1}\NamePack{#1}} +\newcommand*{\tkzNameMacro}[1]{\tkzcname{#1}\Imacro{#1}} +\newcommand*{\tkzNameEnv}[1]{\tkzname{#1}\Ienv{#1}} +\newcommand*{\Ilib}[1]{\index{Library_1@\texttt{Library}!\texttt{#1}}} +\newcommand*{\Ienv}[1]{\index{Environment_1@\texttt{Environment}!\texttt{#1}}} +\newcommand*{\IargEnv}[2]{\index{#1_2@\texttt{#1: arguments}!\texttt{#2}}} +\newcommand*{\IargNameEnv}[2]{\texttt{#2}\index{#1_2@\texttt{#1: arguments}!\texttt{#2}}} +\newcommand*{\IoptEnv}[2]{\index{#1_3@\texttt{#1: options}!\texttt{#2}}} +\newcommand*{\IoptNameEnv}[2]{\texttt{#2}\index{#1_3@\texttt{#1: options}!\texttt{#2}}} +\newcommand*{\Imacro}[1]{\index{#1_1@\texttt{\textbackslash#1}}}%n +\newcommand*{\Iarg}[2]{\index{#1_2@\texttt{\textbackslash#1: arguments}!\texttt{#2}}} +\newcommand*{\IargName}[2]{\texttt{#2}\index{#1_2@\texttt{\textbackslash#1: arguments}!\texttt{#2}}} +\newcommand*{\IoptName}[2]{\texttt{#2}\index{#1_3@\texttt{\textbackslash#1: options}!\texttt{#2}}} +\newcommand*{\Iopt}[2]{\index{#1_3@\texttt{\textbackslash#1: options}!\texttt{#2}}} +\newcommand*{\Istyle}[2]{\index{#1_3@\texttt{\textbackslash#1: styles}!\texttt{#2}}} +\newcommand*{\IstyleEnv}[2]{\index{#1_3@\texttt{#1: styles}!\texttt{#2}}} +\newcommand*{\Iaccent}[2]{\index{#1@\texttt{#2}}} +\newcommand*{\NameLib}[1]{\texttt{\textcolor{MidnightBlue}#1}\index{Ti\emph{k}Z Library !#1@\texttt{#1}}} +\newcommand*{\NameSys}[1]{\texttt{#1}\index{Operating System !#1@\texttt{#1}}} +\newcommand*{\NameDist}[1]{\texttt{\textcolor{MidnightBlue}#1}\index{TeX Distributions !#1@\texttt{#1}}} +\newcommand*{\NameFonct}[1]{\index{Functions !#1@\texttt{#1}}} +\newcommand*{\NamePack}[1]{\index{Package !#1@\texttt{#1}}} +\newcommand*{\TOenvline}[3]{\IoptNameEnv{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\} +\newcommand*{\TOline}[3]{\IoptName{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\} +\newcommand*{\TAline}[3]{\IargName{\ActivBoxName}{#1}&\tkzdft{#2}&\ttfamily #3\\} +\newcommand*{\TMline}[3]{\tkzcname{#1}\index{#1_1@\texttt{\textbackslash#1}}&\tkzdft{#2}&\ttfamily #3\\} +\newcommand*{\tkzcname}[1]{\Imacro{#1}\textbf{\texttt{\textcolor{MidnightBlue}{% + \textbackslash#1}}}} +\newcommand*{\tkzhname}[1]{\textbf{\texttt{\textcolor{MidnightBlue}{% + \textbackslash#1}}}} -\newcommand\presentation{% - \thispagestyle{empty}% - \par\vspace*{3 cm} - \begin{center} - {\Huge \@nameoffile} - \end{center} - \par\vspace*{3 cm} - \noindent - \newlength{\@lx}\settowidth{\@lx}{\huge \namecollection}% - \advance\@lx3em\quad - \href{\urlauthor}{% - \rotatebox{90}{\hspace*{1.5em}{\huge \namecollection}}} - \textcolor{Mahogany}{\rule{2pt}{\@lx}}\quad% - \begin{minipage}[b]{.90\textwidth} - {% - \noindent\hfill - \raggedleft\Large - \href{mailto:al.ma@mac.com}{\textcolor{blue}{\authorofpack}}\par - }% - \emph{\@defoffile}\par - %[\nameofdoc\ \dateofdoc]\par\medskip - \end{minipage} +\DeclareRobustCommand\meta[1]{% +\ensuremath\langle + \ifmmode \expandafter \nfss@text \fi + {% + \meta@font@select + \edef\meta@hyphen@restore + {\hyphenchar\the\font\the\hyphenchar\font}% + \hyphenchar\font\m@ne + \language\l@nohyphenation + \/#1\/% + \meta@hyphen@restore + }\ensuremath\rangle } -%<---------------------- end presentation ----------------------------------> +\def\meta@font@select{} \renewcommand*{\idx@heading}{% \idx@@heading{\indexname}% - % \@mkboth{\indexname}{\indexname}% } \renewenvironment{theindex}{% - \@restonecoltrue + \@restonecoltrue \columnseprule \z@ \columnsep 35\p@ \idx@heading% @@ -454,29 +262,54 @@ }{% \if@restonecol\onecolumn\else\clearpage\fi } - -\def\tkz@background@color{white} -\def\tkz@text@color{black} -\global\edef\tkz@suc@bkc{\tkz@background@color} -\global\edef\tkz@suc@txt{\tkz@text@color} +%<----------- set colors of the document -------------------------- \pgfkeys{/tkzsetupcolor/.cd, background/.code = {\global\edef\tkz@suc@bkc{#1}}, - text/.code = {\global\edef\tkz@suc@txt{#1}}} - + text/.code = {\global\edef\tkz@suc@txt{#1}}} \def\tkzSetUpColors{\pgfutil@ifnextchar[{\tkz@SetUpColors}{% \tkz@SetUpColors[]}} \def\tkz@SetUpColors[#1]{% \begingroup -\pgfkeys{tkzsetupcolor/.cd, - background = \tkz@background@color, - text = \tkz@text@color} -\pgfqkeys{/tkzsetupcolor}{#1} -\pagecolor{\tkz@suc@bkc} -\color{\tkz@suc@txt}} + \pgfkeys{tkzsetupcolor/.cd, + background = \tkz@background@color, + text = \tkz@text@color} + \pgfqkeys{/tkzsetupcolor}{#1} + \pagecolor{\tkz@suc@bkc} + \color{\tkz@suc@txt} +\endgroup} + +%<--------------------------------------------------------------------- + +\input{couverture} +%<--------- presentation première page ---------------------------------> +\newcommand\presentation{% + \thispagestyle{empty}% + \par\vspace*{3 cm} + \begin{center} + {\textcolor{myblue}{\Huge \@nameoffile}} + \end{center} + \par\vspace*{3 cm} + \noindent + \newlength{\tkz@lx}\settowidth{\tkz@lx}{\huge \tkznamecollection}% + \advance\tkz@lx3em\quad + \href{\tkzurlauthor}{% + \rotatebox{90}{\hspace*{1.5em}{% + \textcolor{sectioncolor}{\Huge \tkznamecollection}}}} + \textcolor{sectioncolor}{\rule{2pt}{\tkz@lx}}\quad% + \begin{minipage}[b]{.90\textwidth} + {% + \noindent\hfill + \raggedleft\Large + \href{mailto:al.ma@mac.com}{\textcolor{sectioncolor}{\tkzauthorofpack}}\par + }% + {\@defoffile} + \par + \end{minipage} +} +%<----------------- end presentation ----------------------------------> -%<---------------------------------------------------------------------------> \endinput -%<---------------------------------------------------------------------------> +%<--------------------------------------------------------------------- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % diff --git a/Master/texmf-dist/tex/latex/tkz-doc/tkzexample.sty b/Master/texmf-dist/tex/latex/tkz-doc/tkzexample.sty index a39fbe5bc64..f790ee39256 100644 --- a/Master/texmf-dist/tex/latex/tkz-doc/tkzexample.sty +++ b/Master/texmf-dist/tex/latex/tkz-doc/tkzexample.sty @@ -15,8 +15,8 @@ % %<---------------------------------------------------------------------------> \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tkzexample}[2018/09/19 v1.1 d (code and graphic ) ] -\RequirePackage{fixltx2e,calc,mdframed,fancyvrb} +\ProvidesPackage{tkzexample}[2011/06/04 v1.1 c (code and graphic ) ] +\RequirePackage{calc,mdframed,fancyvrb} \newif\iftkzcodesaved \DeclareOption{saved}{\tkzcodesavedtrue} \ProcessOptions\relax |