summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/chronosys
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/chronosys
Initial commit
Diffstat (limited to 'macros/latex/contrib/chronosys')
-rw-r--r--macros/latex/contrib/chronosys/README30
-rw-r--r--macros/latex/contrib/chronosys/chronosys.sty47
-rw-r--r--macros/latex/contrib/chronosys/chronosys.tex71
-rw-r--r--macros/latex/contrib/chronosys/chronosyschr.tex770
-rw-r--r--macros/latex/contrib/chronosys/docchronosys_en.pdfbin0 -> 116122 bytes
-rw-r--r--macros/latex/contrib/chronosys/docchronosys_en.tex723
-rw-r--r--macros/latex/contrib/chronosys/docchronosys_fr.pdfbin0 -> 120070 bytes
-rw-r--r--macros/latex/contrib/chronosys/docchronosys_fr.tex708
-rw-r--r--macros/latex/contrib/chronosys/x-chronosys.tex127
9 files changed, 2476 insertions, 0 deletions
diff --git a/macros/latex/contrib/chronosys/README b/macros/latex/contrib/chronosys/README
new file mode 100644
index 0000000000..7750b8df28
--- /dev/null
+++ b/macros/latex/contrib/chronosys/README
@@ -0,0 +1,30 @@
+This is the `chronosys' package v1.15, 2012/04/08.
+_____________________________________________________________
+
+You can find the documentation of this package in docchronosys_fr.pdf (french) and docchronosys_en.pdf (english).
+
+The current maintener of this package is Mathieu Long (mail : mlong.tex@hotmail.fr).
+
+This package is used for drawing timelines.
+
+This package contains the files docchronosys_en.tex,
+docchronosys_en.pdf, docchronosys_fr.tex, docchronosys_fr.pdf,
+chronosys.sty, chronosys.tex, x-chronosys.tex, chronosyschr.tex and
+this README, and it enables the commandes:
+\startchronology, \stopchronology,
+\definechronoevent, \definechronoperiode,
+\setupchronoperiode, \setupchronoevent,
+\chronoperiodecoloralternation,
+\chronograduation, \chronoevent and \chronoperiode.
+
+It uses the package `tikz' for drawing.
+Since the 1.2 version, `tikz' is used at least possible, and MetaPost
+is is used instead of `tikz' on ConTeXt MkIV.
+
+You can use it in plain TeX, LaTeX and ConTeXt.
+
+_____________________________________________________________
+
+This material is subject to the LaTeX Project Public License. See
+http://www.latex-project.org/lppl.txt for the details of that
+license.
diff --git a/macros/latex/contrib/chronosys/chronosys.sty b/macros/latex/contrib/chronosys/chronosys.sty
new file mode 100644
index 0000000000..8ce02a813f
--- /dev/null
+++ b/macros/latex/contrib/chronosys/chronosys.sty
@@ -0,0 +1,47 @@
+% This is is the LaTeX file for the `chronosys' package.
+%
+% The maintener of this work is Mathieu Long.
+% email : mlong.tex@hotmail.fr
+% the `chronosys' package consists in the 9 files :
+% -- `docchronosys_en.tex' and `docchronosys_en.pdf' (english manual)
+% -- `docchronosys_fr.tex' and `docchronosys_fr.pdf' (french manual)
+% -- README
+% -- `chronosys.tex' (file for plain TeX)
+% -- `chronosyschr.tex' (main file of the `chronosys' package)
+% -- `chronosys.sty' (file for LaTeX)
+% -- `x-chronosys.tex' (file for ConTeXt)
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Mathieu Long.
+%
+\NeedsTeXFormat{LaTeX2e}
+\RequirePackage{tikz}
+%\RequirePackage{xcolor}
+\makeatletter\catcode`\!=11
+\def\!chr@verif#1#2{\ifdefined#2\error!message \fi #1#2} %
+\input chronosyschr.tex
+%
+%\newenvironment{chronology}{\startchronology}{\stopchronology}
+\!chrverif\let\chronology\startchronology \!chrverif\let\endchronology\stopchronology
+\!chrverif\def\!chrstarttikzpicture{\tikzpicture}\!chrverif\def\!chrstoptikzpicture{\endtikzpicture}%
+\!chrverif\def\!chrdraw{\draw}\!chrverif\def\!chrfill{\fill}\!chrverif\def\!chrfilldraw{\filldraw}%
+\def\!chrdefaultwidth{\textwidth}%
+\!chrverif\def\!chreventcolorbox{\colorbox{\!chr@eventcolorbox}}%
+\!chrverif\def\!chrperiodcolorbox{\colorbox{\!chr@periodcolorbox}}%
+\ProvidesPackage{chronosys}%
+\setupchronoevent[!!eventgradu@tion]{datesstyle=\tiny}%
+\setupchronoperiode[!!periodegradu@tion]{datesstyle=\tiny}%
+\!chrverif\let\!chrusecolor\color
+%
+\makeatother
+\catcode`\!=12\relax
+\endinput
diff --git a/macros/latex/contrib/chronosys/chronosys.tex b/macros/latex/contrib/chronosys/chronosys.tex
new file mode 100644
index 0000000000..57a4cdd408
--- /dev/null
+++ b/macros/latex/contrib/chronosys/chronosys.tex
@@ -0,0 +1,71 @@
+% This is is the plain TeX file for the `chronosys' package.
+%
+% The maintener of this work is Mathieu Long.
+% email : mlong.tex@hotmail.fr
+% the `chronosys' package consists in the 9 files :
+% -- `docchronosys_en.tex' and `docchronosys_en.pdf' (english manual)
+% -- `docchronosys_fr.tex' and `docchronosys_fr.pdf' (french manual)
+% -- README
+% -- `chronosys.tex' (file for plain TeX)
+% -- `chronosyschr.tex' (main file of the `chronosys' package)
+% -- `chronosys.sty' (file for LaTeX)
+% -- `x-chronosys.tex' (file for ConTeXt)
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Mathieu Long.
+%
+% % % %
+%Changement de catcode
+\catcode`\@=11\relax
+%
+\unless\ifdefined\tikzpicture
+\catcode`\!=12\input tikz.tex\relax\fi
+%
+\catcode`\!=11\relax
+%
+%DEFINITION DE \!CHR@VERIF
+\let\!chr@verif\relax
+%
+%CHARGEMENT DE CHRONOSYSCHR
+\input chronosyschr.tex\relax
+%
+%DEFINITION POUR MOTEUR DE DESSIN
+\def\!chrstarttikzpicture{\tikzpicture}\def\!chrstoptikzpicture{\endtikzpicture}%
+\!chrverif\def\!chrdraw{\draw}\!chrverif\def\!chrfill{\fill}\!chrverif\def\!chrfilldraw{\filldraw}%
+%
+% DEFINITION DES SSTEMES DE COLORISATION DU FOND DES EVENTS ET PERIODES
+\!chrverif\def\!chrperiodcolorbox#1{%
+\setbox\z@ \hbox{\kern2pt#1\kern2pt}%
+\dimen@i\dp\z@
+\advance\dimen@i\ht\z@ \advance\dimen@i 6pt\relax
+\dimen@ii\wd\z@
+\advance\dimen@ii 4pt\relax
+\setbox\@ne\hbox{{\color{\!chr@periodcolorbox}%
+\vrule height\dimen@i width\dimen@ii \relax%
+\kern-\dimen@ii}\box\z@}\raise0.5\dimen@ii\vbox to\z@{\box\@ne\vss}}%
+%
+%
+\!chrverif\def\!chreventcolorbox#1{%
+\setbox\z@ \hbox{\kern2pt#1\kern2pt}%
+\dimen@i\dp\z@
+\advance\dimen@i\ht\z@
+\dimen@ii\wd\z@
+\advance\dimen@ii 4pt\relax
+\setbox\@ne\hbox {{\color{\!chr@eventcolorbox}%
+\vrule height\dimen@i width\dimen@ii depth\z@\relax%
+\kern-\dimen@ii}\box\z@}\raise0.5\dimen@ii\vbox to\z@{\box\@ne\vss}}%
+%
+\!chrverif\let\!chrusecolor\color
+%
+\catcode`\!=12\relax
+\catcode`\@=12\relax
+\endinput \ No newline at end of file
diff --git a/macros/latex/contrib/chronosys/chronosyschr.tex b/macros/latex/contrib/chronosys/chronosyschr.tex
new file mode 100644
index 0000000000..299c5a75aa
--- /dev/null
+++ b/macros/latex/contrib/chronosys/chronosyschr.tex
@@ -0,0 +1,770 @@
+% This is is the main file of the `chronosys' package, with all the principal code.
+%
+% The maintener of this work is Mathieu Long.
+% email : mlong.tex@hotmail.fr
+% the `chronosys' package consists in the 9 files :
+% -- `docchronosys_en.tex' and `docchronosys_en.pdf' (english manual)
+% -- `docchronosys_fr.tex' and `docchronosys_fr.pdf' (french manual)
+% -- README
+% -- `chronosys.tex' (file for plain TeX)
+% -- `chronosyschr.tex' (main file of the `chronosys' package)
+% -- `chronosys.sty' (file for LaTeX)
+% -- `x-chronosys.tex' (file for ConTeXt)
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Mathieu Long.
+%
+\expandafter\ifx\csname chronosys @\endcsname\relax\else\immediate\write16{Le fichier a deja ete charge}\endinput\fi
+\ifx\numexpr\UNDEFINED\immediate\write16{Desole, mais ce fichier utilise les primitives E-TeX, vous ne pouvez pas utiliser le moteur TeX.}\endinput\fi
+\expandafter\edef\csname chronosys @\endcsname{\the\catcode`\@}%
+\catcode`\@=11%
+\catcode`\!=11%
+\def\chron@sysversion{1.2}%
+%
+\newhelp\chrhelpmessage{Contactez l'auteur par mail.}%
+\newhelp\chrerrormessage{La commande a deja ete definie.}%
+\def\error!message{\errhelp{\the\chrhelpmessage}\errmessage{\the\chrerrormessage}} %
+%
+\def\!chrverif#1#2{\ifdefined#2\expandafter\error!message \fi #1#2}%
+%
+%Commandes utilis\'ees
+%
+%
+\def\!gobblethree#1#2#3{}%
+\def\!gobble#1{}%
+\ifdefined\@ifnextchar %LATEX
+ \def\:{\let\ifnexttoken\@ifnextchar}\expandafter\:
+\else
+ \ifdefined\doifnextcharelse %CONTEXT
+ \def\:{\let\ifnexttoken\doifnextcharelse}\expandafter\:
+ \else
+ \long\def\@ifnextchar#1#2#3{%
+ \let\reserved@d=#1%
+ \def\reserved@a{#2}%
+ \def\reserved@b{#3}%
+ \futurelet\@let@token\@ifnch}%
+ \let\kernel@ifnextchar\@ifnextchar
+ \def\@ifnch{%
+ \ifx\@let@token\@sptoken
+ \let\reserved@c\@xifnch
+ \else
+ \ifx\@let@token\reserved@d
+ \let\reserved@c\reserved@a
+ \else
+ \let\reserved@c\reserved@b
+ \fi
+ \fi
+ \reserved@c}%
+\def\:{\let\@sptoken= }\: % this makes \@sptoken a space token
+\def\:{\@xifnch}\expandafter\def\: {\futurelet\@let@token\@ifnch}%
+\let\ifnexttoken\@ifnextchar
+\fi\fi
+%
+\newif\if!chronearg \newif\if!chrtwoarg
+\!chrverif\def\!chrtraiteoneargument#1{\ifnexttoken[{\!chroneargtrue#1}{\!chroneargfalse#1[]}}%
+%
+\!chrverif\def\!chrtraitetwoargument#1{\let\todoafterarg#1%
+\ifnexttoken[{\!chroneargtrue\savefirsttwoarg}{\!chroneargfalse\!chrtwoargfalse#1[][]}}%
+\!chrverif\def\savefirsttwoarg[#1]{\ifnexttoken[{\!chrtwoargtrue \todoafterarg[#1]}{\!chrtwoargfalse \todoafterarg[#1][]}}%
+%
+\!chrverif\def\!chrtraitingargvirgule#1#2{\def\!tr@itintargvirgule{#2}\!chrtr@itingargvirgule#1,\end}%
+\!chrverif\def\!chrtr@itingargvirgule#1,{%
+\!chrdotraiteargvirgule#1,=\end,\ifnexttoken\end \!gobble \!chrtr@itingargvirgule}%
+\!chrverif\def\!chrdotraiteargvirgule#1=#2,{%
+\ifx \end#2\relax
+\else \!chrdotr@iteargvirgule#1=#2,\expandafter\!gobblethree
+\fi}%
+\!chrverif\def\!chrdotr@iteargvirgule#1=#2,{%
+\ifcsname \!tr@itintargvirgule#1\endcsname
+ \expandafter\def\csname \!tr@itintargvirgule#1\endcsname{#2}%
+\else \immediate\write16{chronosys : option #1 ligne \number\inputlineno\space non reconnue, impossible de lui affecter la valeur #2}%
+\fi }%
+%
+%STARTCHRONOLOGY
+%
+\!chrverif\def\startchronology{\!chrtraiteoneargument\dostartchronology}%
+%
+%OPTIONS DE STARTCHRONOLOGY
+%
+\!chrverif\def\!chrdefaultstartyear{0}\!chrverif\def\!chrdefaultstopyear{\the\year}\!chrverif\def\!chrdefaultwidth{\the\hsize}%
+\!chrverif\def\!chrdefaultheight{0.7pc}\!chrverif\def\!chrdefaultdates{true}\!chrverif\def\!chrdefaultarrow{true}%
+\!chrverif\def\!chrdefaultarrowwidth{0.1\!chrwidth}\!chrverif\def\!chrdefaultdateselevation{20pt}%
+\!chrverif\def\!chrdefaultarrowheight{\!chrheight}\!chrverif\def\!chrdefaultcolor{black}\!chrverif\def\!chrdefaultarrowcolor{\!chr@color}%
+\!chrverif\def\!chrdefaultdatesstyle{}\!chrverif\def\!chrdefaultstartdate{true}\!chrverif\def\!chrdefaultstopdate{true}%
+\!chrverif\def\!chrdefaultbox{false}\!chrverif\def\!chrdefaultalign{center}%
+%
+\!chr@verif\newdimen\!chrheight \!chr@verif\newif\if!chrdates \!chr@verif\newif\if!chrarrow \!chr@verif\newcount\!chrstartyear
+\!chr@verif\newcount\!chrstopyear \!chr@verif\newdimen\!chrwidth \!chr@verif\newdimen\!chrarrowwidth \!chr@verif\newdimen\!chrarrowheight
+\!chr@verif\newbox\!chrflechebox
+\!chr@verif\newdimen\!chr!realwidth \!chr@verif\newdimen\!chr!unitperyear
+\!chr@verif\newif\if!chrstartdate \!chr@verif\newif\if!chrstopdate \!chr@verif\newdimen\!chrdateselevation \!chr@verif\newif\if!chrbox
+%
+\!chrverif\def\!chr!periodeschwarzodergrau{\def\!chr!stringtest{black}%
+\ifx\!chr@color\!chrstringtest
+ \def\!chr!periodeschwarzodergr@u{gray}%
+\else
+ \def\!chr!periodeschwarzodergr@u{black}%
+\fi}%
+%
+%
+\!chr@verif\newdimen\!chrskipbefore
+\!chr@verif\newdimen\!chrskipafter
+%
+\!chrverif\def\!chrdefaultoptions{startyear=\!chrdefaultstartyear, stopyear=\!chrdefaultstopyear,
+startdate=\!chrdefaultstartdate, stopdate=\!chrdefaultstopdate,
+height=\!chrdefaultheight, width=\!chrdefaultwidth, dates=\!chrdefaultdates, arrow=\!chrdefaultarrow,
+arrowwidth=\!chrdefaultarrowwidth, arrowheight=\!chrdefaultarrowheight, color=\!chrdefaultcolor,
+arrowcolor=\!chrdefaultarrowcolor, datesstyle=\!chrdefaultdatesstyle, dateselevation=\!chrdefaultdateselevation,
+box=\!chrdefaultbox, align=\!chrdefaultalign}%
+%
+\!chrverif\def\!chr@startyear{}\!chrverif\def\!chr@startdate{}%
+\!chrverif\def\!chr@stopyear{}\!chrverif\def\!chr@stopdate{}%
+\!chrverif\def\!chr@height{}\!chrverif\def\!chr@width{}%
+\!chrverif\def\!chr@dates{true}%
+\!chrverif\def\!chr@arrow{}\!chrverif\def\!chr@arrowwidth{}\!chrverif\def\!chr@arrowheight{}%
+\!chrverif\def\!chr@color{}%
+\!chrverif\def\!chr@arrowcolor{}\!chrverif\def\!chr@datesstyle{}%
+\!chrverif\def\!chr@dateselevation{}%
+\!chrverif\def\!chr@box{}\!chrverif\def\!chr@align{}%
+%
+%DOSTARTCHRONOLOGY
+%
+\!chrverif\def\dostartchronology[#1]{\begingroup\parindent\z@\par
+\global\!chrskipafter\z@
+\global\!chrskipbefore\z@
+\expandafter\expandafter\expandafter\!chrtraitingargvirgule\expandafter{\!chrdefaultoptions}{!chr@}%
+\if!chronearg \!chrtraitingargvirgule{#1}{!chr@}\fi
+\!chrheight\!chr@height \!chrstartyear\!chr@startyear
+\!chrstopyear\!chr@stopyear \!chrwidth\!chr@width %
+\csname !chrdates\!chr@dates\endcsname \csname !chrarrow\!chr@arrow\endcsname
+\csname !chrstartdate\!chr@startdate\endcsname \csname !chrbox\!chr@box\endcsname
+\csname !chrstopdate\!chr@stopdate\endcsname \!chrarrowwidth\!chr@arrowwidth
+\!chrarrowheight\!chr@arrowheight \!chrdateselevation\!chr@dateselevation%
+\!chr!periodeschwarzodergrau%
+\dostartchronologyfinal}%
+%
+\!chrverif\def\dostartchronologyfinal{%
+\unless\if!chrarrow
+ \!chrarrowwidth\z@\relax \!chrarrowheight\z@
+\fi
+\!chr!realwidth\dimexpr\!chrwidth-\!chrarrowwidth\relax
+\ifdim\!chr!realwidth<0pt\relax
+ \advance\!chrwidth\dimen@
+ \advance\!chrarrowwidth-\!chr!realwidth
+ \!chr!realwidth\z@
+\fi
+\dimen@\dimexpr\!chrheight-\!chrarrowheight\relax
+\dimen@ii\dimen@\relax
+\ifdim\dimen@ii>0pt\relax
+ \dimen@ii\z@
+\fi
+\dimen@i\dimexpr\!chrheight-\dimen@ii+\!chrdateselevation\relax
+% % %AFFICHAGE DE LA FRISE
+\setbox\!chrflechebox\hbox{%
+ \if!chrdates
+ \if!chrstartdate\raise\dimen@i\relax % %
+ \hbox to\z@{\hss\!chr@datesstyle{\the\!chrstartyear}\hss}%
+ \fi
+ \fi%
+% \!chrstarttikzpicture\!chrfilldraw[color=\!chr@color](0,0)--(\the\!chr!realwidth,0)--(\the\!chr!realwidth,\the\!chrheight)--(0,\the\!chrheight)--cycle;
+% \if!chrbox
+% \!chrdraw[color=black](-0.4pt,-0.4pt)--(\the\!chr!realwidth+0.4pt,-0.4pt)--(\the\!chr!realwidth+0.4pt,\the\!chrheight+0.4pt)--(-0.4pt,\the\!chrheight)--cycle;
+% \fi %
+% \if!chrarrow
+% \ifx\!chr@color\!chr@arrowcolor
+% \else \!chrdraw[color=\!chr!periodeschwarzodergr@u](\the\!chr!realwidth,0)--(\the\!chr!realwidth,\the\!chrheight);
+% \fi
+% \fi
+% \!chrstoptikzpicture %
+ \begingroup{%
+ \!chrusecolor{\!chr@color}%
+ \vrule width\!chr!realwidth height\!chrheight depth\z@\relax \kern-\!chr!realwidth\relax
+ \if!chrbox
+ \!chrusecolor{black}%
+ \hbox to\z@{\vrule width\!chr!realwidth height0.4pt\relax\hss}%
+ \raise\!chrheight\hbox to\z@{\vrule width\!chr!realwidth height0.4pt\relax\hss}%
+ \vrule height\!chrheight depth\z@\relax\kern-0.4pt\relax
+ \kern\!chr!realwidth \vrule height\!chrheight\relax\kern-0.4pt\relax
+ \kern-\!chr!realwidth
+ \fi
+ %\if!chrarrow
+ %\fi
+ \kern\!chr!realwidth
+ }%
+ \endgroup
+ \if!chrdates
+ \if!chrstopdate
+ \raise\dimen@i\hbox to\z@{\hss\!chr@datesstyle{\the\!chrstopyear}\hss}%
+ \fi
+ \fi%
+%
+ \if!chrarrow
+ \raise0.5\dimen@\hbox{%
+ \!chrstarttikzpicture
+ \!chrfilldraw[color=\!chr@arrowcolor](0,0.5*\the\!chrarrowheight-0.4pt)--(\the\!chrarrowwidth,0)--(0,-0.5*\the\!chrarrowheight)--cycle;
+ \if!chrbox
+ \!chrdraw[color=black](-0.4pt,0.5*\the\!chrarrowheight+0.4pt)--(\the\!chrarrowwidth+0.4pt,0)--(-0.4pt,-0.5*\the\!chrarrowheight-0.4pt)--cycle;
+ \fi
+ \!chrstoptikzpicture
+ \edef\@@string@a{\!chr@color}%
+ \edef\@@string@b{\!chr@arrowcolor}%
+ \ifx\@@string@a\@@string@b
+ \else
+ {\!chrusecolor{\!chr!periodeschwarzodergr@u}%
+ \kern-\!chrarrowwidth\kern-0.2pt\relax \hbox to\z@{\vrule height\dimexpr(\!chrarrowheight-\!chrheight)/2 + \!chrheight\relax depth\dimexpr(\!chrheight-\!chrarrowheight)/2\relax\hss}%
+ \kern\!chrarrowwidth\kern-0.2pt\relax}%
+ \fi
+ }%
+ \fi}%
+ \count@\numexpr\!chrstopyear-\!chrstartyear\relax
+ \ifnum\count@<0\relax
+ \immediate\write16{Erreur avec les dates donn\'ees}%
+ \fi
+ \!chr!unitperyear\dimexpr\!chr!realwidth/\count@\relax}%
+%
+%
+\!chrverif\def\setupchronology#1{\!chrtraitingargvirgule{#1}{!chrdefault}}%
+%
+%PERIODES
+%
+\!chr@verif\newcount\!chr!periodecolornum\!chr@verif\newcount\!chr!starttingtraitement \!chr@verif\newdimen\!chr!dimentraitement
+\!chr@verif\newdimen\!chrperiodtextdepth \!chrverif\def\!chrperiodedefaulttextdepth{15pt}%
+\!chr@verif\newif\if!chrperioddates \!chr@verif\newif\if!chrperiodbox
+\!chr@verif\newif\if!chrperiodstartdate \!chr@verif\newif\if!chrperiodstopdate \!chrverif\def\!chrperiodedefaultstartdate{true}
+\!chr@verif\newif\if!chrperiodifcolorbox
+\!chr@verif\newdimen\!chrperioddateselevation
+\!chr@verif\newdimen\!chrperiodeventtextwidth
+\!chr@verif\newdimen\!chrperiodbottomdepth \!chr@verif\newdimen\!chrperiodtopheight
+%
+%alternance des couleurs
+\!chr@verif\newcount\!chrperiodecoloralternancetotalnum
+\!chrverif\def\!chrperiodedefaultcolor{\chronoperiodcolor}%
+\!chrverif\def\!chrperiodedefa@@ultcolor{\chronoperiodcolor}%
+\!chrverif\def\!chrperiodedef@ultcolor{\!chrperiodedefaultcolor}%
+\!chrverif\def\chronoperiodcolor{\ifcase\!chr!periodecolornum blue\or red\or cyan\or purple\or yellow\fi}%
+\!chrperiodecoloralternancetotalnum5%
+\!chrverif\def\!chr!periodecolor{\edef\!chrperiodedef@ultcolor{\!chrperiodedefaultcolor}%
+ \ifx\!chrperiodedefaultcolor\!chrperiodedefa@@ultcolor
+ \ifx\!chrperiodedef@ultcolor\!chr@color
+ \!chr!periodecoloradvance\!chr!periodecolor
+ \fi
+ \fi}%
+\!chrverif\def\!chr!periodecoloradvance{\global\advance\!chr!periodecolornum\@ne\relax
+\ifnum\!chr!periodecolornum=\!chrperiodecoloralternancetotalnum\relax\global\!chr!periodecolornum\z@\fi}%
+%
+\!chrverif\def\restartchronoperiodecolor{\!chrtraiteoneargument\dorestartchronoperiodecolor}%
+\!chrverif\def\dorestartchronoperiodecolor[#1]{%
+\if!chronearg
+ \def\@@string@a{#1}%
+ \!chr!periodecolornum\z@ %
+ \dorestartchronoperiodecolor@ux
+\else
+ \!chr!periodecolornum\z@
+\fi}%
+\!chrverif\def\dorestartchronoperiodecolor@ux{\edef\@@string@b{\chronoperiodcolor}%
+\ifnum\!chr!periodecolornum<\!chrperiodecoloralternancetotalnum
+ \unless\ifx\@@string@a\@@string@b
+ \global\advance\!chr!periodecolornum\@ne
+ \dorestartchronoperiodecolor@ux
+ \fi
+\else\global\!chr!periodecolornum\z@\fi}%
+%
+\!chrverif\def\chronoperiodecoloralternation#1{%
+\def\@@string@s{\ifcase\!chr!periodecolornum}%
+\!chrperiodecoloralternancetotalnum\z@\!chr!chronoperiodecoloralternance#1,\end \let\chronoperiodcolor\@@string@s
+\!chr!periodecolornum\z@}%
+%
+\!chrverif\def\!chr!chronoperiodecoloralternance#1,{\advance\!chrperiodecoloralternancetotalnum\@ne
+\expandafter\def\expandafter\@@string@s\expandafter{\@@string@s#1}%
+\ifnexttoken\end {\expandafter\def\expandafter\@@string@s\expandafter{\@@string@s\fi}\!gobble}%
+{\expandafter\def\expandafter\@@string@s\expandafter{\@@string@s\or}\!chr!chronoperiodecoloralternance}}%
+%
+%
+\!chrverif\def\!chr@periodtextdepth{}\!chrverif\def\!chr@perioddates{}%
+\!chrverif\def\!chr@periodcolor{}\!chrverif\def\!chr@perioddatesstyle{}%
+\!chrverif\def\!chr@periodstartdate{}\!chrverif\def\!chr@periodstopdate{}%
+\!chrverif\def\!chr@periodtextstyle{}%
+\!chrverif\def\!chr@perioddateselevation{}%
+\!chrverif\def\!chr@periodifcolorbox{}\!chrverif\def\!chr@periodcolorbox{}%
+\!chrverif\def\!chr@periodbottomdepth{}\!chrverif\def\!chr@periodtopheight{}%
+\!chrverif\def\!chr@periodbox{}\!chrverif\def\!chr@periodtextwidth{}%
+%
+\!chrverif\def\!chreventdefaulttesttextwidth{\relax}%
+%
+%DOCHRONOPERIODE
+%
+%
+\!chrverif\def\dochronoperiode[#1]#2#3#4{%
+\!chr!periodecolor %alternance automqatique des couleurs
+\if!chronearg \!chrtraitingargvirgule{#1}{!chr@period}\fi
+% % %
+\!chrperiodtextdepth\!chr@periodtextdepth \!chrperiodtopheight\!chr@periodtopheight
+\!chrperiodbottomdepth\!chr@periodbottomdepth
+\csname !chrperioddates\!chr@perioddates\endcsname \csname !chrperiodstartdate\!chr@periodstartdate\endcsname
+\csname !chrperiodstopdate\!chr@periodstopdate\endcsname \csname !chrperiodifcolorbox\!chr@periodifcolorbox\endcsname
+\csname !chrperiodbox\!chr@periodbox\endcsname
+\ifx\!chr@periodtextwidth\!chreventdefaulttesttextwidth
+ \!chrperiodeventtextwidth=-1pt%
+\else
+ \!chrperiodeventtextwidth=\!chr@periodtextwidth%
+\fi
+\!chrperioddateselevation\!chr@perioddateselevation
+\advance\!chrperioddateselevation 1.25\!chrheight\relax
+% % %On s'assure que les dates sont biebn dans l'intervalle
+\ifnum#2>\numexpr\!chrstartyear-1\relax
+\ifnum#2<\numexpr\!chrstopyear+1\relax
+\ifnum#3<\numexpr\!chrstopyear+1\relax
+\ifnum#3>\numexpr\!chrstartyear-1\relax
+\count@\numexpr#3-#2\relax
+% % %Et que la seconde est post\'erieure \`a la pr\'emi\`ere
+\ifnum\count@>\z@\relax
+% %
+\!chr!starttingtraitement\numexpr#2-\!chrstartyear\relax\dimen@\dimexpr\count@\!chr!unitperyear\relax
+\!chr!dimentraitement\dimexpr\!chr!starttingtraitement\!chr!unitperyear\relax
+% %AFFICHAGE
+\dimen@i\wd\!chrflechebox
+\setbox\!chrflechebox\hbox{%
+ \unhbox\!chrflechebox\kern-\dimen@i\kern\!chr!dimentraitement
+ \lower\dimexpr\!chrperiodtextdepth-\!chrperiodbottomdepth\relax\hbox to\z@{%
+ \ifdim\!chrperiodeventtextwidth < \z@ \hbox to\dimen@{%
+ \hss \if!chrperiodifcolorbox\expandafter\!chrperiodcolorbox\fi{\!chr@periodtextstyle{#4}}\hss
+ }%
+ \else
+ \setbox\z@\hbox to\dimen@{\hss\vbox{%
+ \hsize\!chrperiodeventtextwidth {\!chr@periodtextstyle{#4}}
+ }\hss}%
+ \dimen@i\wd\z@
+ \dimen@ii\dimexpr\ht\z@+\dp\z@\relax
+ \lower\dimexpr\dimen@ii-10pt\relax\hbox to\dimen@{%
+ \hss\setbox\z@\hbox{%
+ \vbox{%
+ \hsize\!chrperiodeventtextwidth\relax\!chr@periodtextstyle{#4}%
+ \vskip1pt
+ }%
+ }%
+ \dimen@i\dimexpr\wd\z@+4pt\relax
+ \dimen@ii\dimexpr\ht\z@+\dp\z@+2pt\relax
+ \setbox\z@\hbox to\z@{%
+ \hss\begingroup{\!chrusecolor{\!chr@periodcolorbox}\vrule height\dimen@ii width\dimen@i depth2pt}\endgroup\kern-\dimen@i\kern2pt\relax%
+ \box\z@\hss
+ }%
+ \box\z@\hss
+ }%
+ \fi
+ \hss
+ }%
+ \if!chrperioddates
+ \if!chrperiodstartdate
+ \raise\dimexpr\!chrperioddateselevation +(\!chrperiodtopheight-\!chrheight)\relax
+ \hbox to\z@{%
+ \hss\!chr@perioddatesstyle{#2}\hss
+ }%
+ \fi
+ \fi
+ \raise\!chrperiodbottomdepth \hbox{%
+ \begingroup {\!chrusecolor{\!chr@periodcolor}%
+ \dimen@i\dimexpr\!chrperiodtopheight-\!chrperiodbottomdepth\relax%
+ \vrule width\dimen@ height\dimen@i depth\z@\kern-\dimen@%
+% \!chrusecolor{black}%
+% \raise\dimen@i\hbox to\z@{\vrule height0.1pt depth0.3pt width\dimen@\hss}%
+% \hbox to\z@{\vrule height0.1pt depth0.3pt width\dimen@\hss}%
+ }\endgroup%%
+ \begingroup{%
+ \dimen@i\dimexpr\!chrperiodtopheight-\!chrperiodbottomdepth\relax%
+ \!chrusecolor{\!chr!periodeschwarzodergr@u}%
+ \kern-0.2pt\relax\vrule height\dimen@i width0.4pt\relax \kern-0.2pt\relax%
+ \kern\dimen@\relax
+ \kern-0.2pt\relax\vrule height\dimen@i width0.4pt\relax \kern-0.2pt\relax
+ \kern-\dimen@\relax
+ }%
+ \endgroup
+ \begingroup{%
+ \!chrusecolor{black}
+ \if!chrbox
+ \lower 0.2pt\hbox to\z@{\vrule width\dimen@\hss}%
+ \fi
+ \if!chrperiodbox
+ \raise \!chrperiodbottomdepth \hbox to\z@{\vrule width\dimen@\hss}%
+ \raise \!chrperiodtopheight \hbox to\z@{\vrule width\dimen@\hss}%
+ \fi
+ }%
+ \endgroup
+ \kern\dimen@\relax
+ }%
+ \if!chrperioddates
+ \if!chrperiodstopdate
+ \raise\dimexpr\!chrperioddateselevation+(\!chrperiodtopheight-\!chrheight)\relax
+ \hbox to\z@{%
+ \hss \!chr@perioddatesstyle{#3}\hss
+ }%
+ \fi
+ \fi
+}%
+\!chr!periodecoloradvance
+\fi\fi\fi\fi\fi}%
+%
+%
+\!chrverif\def\setupchronoperiode{\def\@@string@a{periode}\!chrtraiteoneargument\dosetupchronoeventandperiode}%
+%
+%EVENTS
+%
+%
+\!chr@verif\newif\if!chreventspecifiedday\!chr@verif\newif\if!chreventspecifiedmonth \!chr@verif\newif\if!chreventbarre
+\!chr@verif\newif\if!chreventdate \!chr@verif\newif\if!chreventmark
+\!chr@verif\newif\if!chreventifcolorbox \!chr@verif\newif\if!chreventconversionmonth
+\!chr@verif\newdimen\!chreventmarkdepth \!chr@verif\newif\if!chreventyear \!chr@verif\newdimen\!chreventiconheight
+ \!chrverif\def\!chreventdefaultbarre{true}%
+\!chrverif\def\!chreventdefaulticon{}%
+\!chrverif\def\!chreventdefaultmarkdepth{10pt}%
+\!chrverif\def\!chreventdefaulttextstyle{}%
+%
+%
+%
+\!chrverif\def\!chreventevalspecification#1{\count@\z@\relax\!chreventev@lspecification#1/\end}%
+\!chrverif\def\!chreventev@lspecification#1/{\advance\count@\@ne\relax\expandafter\def\csname
+!chreventspecifiedargument\number\count@\endcsname{#1}\ifnexttoken\end \!gobble \!chreventev@lspecification}%
+%
+\!chrverif\def\chron@selectmonth#1{\ifcase#1\or janvier\or f\'evrier\or mars\or avril\or mai\or juin\or juillet\or ao\^ut\or septembre\or octobre\or novembre\or d\'ecembre\fi}%
+%
+\!chrverif\def\!chr@eventbarre{}\!chrverif\def\!chr@eventicon{}\!chrverif\def\!chr@eventmarkdepth{}%
+\!chrverif\def\!chr@eventtextstyle{}\!chrverif\def\!chr@eventmark{}%
+\!chrverif\def\!chr@eventdate{}\!chrverif\def\!chr@eventdatesseparation{}%
+\!chrverif\def\!chr@eventconversionmonth{}\!chrverif\def\!chr@eventdatestyle{}%
+\!chrverif\def\!chr@eventdatesstyle{}\!chrverif\def\!chr@eventyear{}\!chrverif\def\!chr@eventiconheight{}%
+\!chrverif\def\!chr@eventifcolorbox{}\!chrverif\def\!chr@eventcolorbox{}%.
+\!chrverif\def\!chr@eventtextwidth{}%
+%
+\!chr@verif\newif\if!chreventlocationup
+%
+%
+%DOCHRONOEVENT
+%
+%
+\!chrverif\def\dochronoevent[#1]#2#3{%
+\if!chronearg \!chrtraitingargvirgule{#1}{!chr@event}\fi
+% % %
+\csname !chreventbarre\!chr@eventbarre\endcsname
+\csname !chreventmark\!chr@eventmark\endcsname
+\csname !chreventdate\!chr@eventdate\endcsname
+\csname !chreventconversionmonth\!chr@eventconversionmonth\endcsname
+\csname !chreventyear\!chr@eventyear\endcsname
+\csname !chreventifcolorbox\!chr@eventifcolorbox\endcsname
+\!chreventmarkdepth\!chr@eventmarkdepth
+\!chreventiconheight\!chr@eventiconheight
+\ifx\!chr@eventtextwidth\!chreventdefaulttesttextwidth
+ \!chrperiodeventtextwidth=-1pt%
+\else \!chrperiodeventtextwidth\!chr@eventtextwidth
+\fi
+\ifdim\!chreventmarkdepth<\z@\relax
+ \!chreventlocationuptrue
+\else
+ \!chreventlocationupfalse
+\fi
+% % % Evaluation de la precision de la date de l'evenement
+\!chreventevalspecification{#2}%
+\ifnum\count@<4\relax
+ \ifcase\count@
+ \or \!chreventspecifieddayfalse\!chreventspecifiedmonthfalse
+ \edef\!chreventyear{\csname !chreventspecifiedargument1\endcsname}%
+ \or \!chreventspecifieddayfalse\!chreventspecifiedmonthtrue
+ \edef\!chreventyear{\csname !chreventspecifiedargument2\endcsname}%
+ \edef\!chreventmonth{\csname !chreventspecifiedargument1\endcsname}%
+ \or \!chreventspecifieddaytrue\!chreventspecifiedmonthtrue
+ \edef\!chreventyear{\csname !chreventspecifiedargument3\endcsname}%
+ \edef\!chreventmonth{\csname !chreventspecifiedargument2\endcsname}%
+ \edef\!chreventday{\csname !chreventspecifiedargument1\endcsname}%
+ \fi %
+% %On s'assure que les dates sont bien comprises dans les bornes
+\ifnum\!chreventyear>\numexpr\!chrstartyear-1\relax
+\ifnum\!chreventyear<\numexpr\!chrstopyear+1\relax
+ \if!chreventspecifiedmonth
+ \if!chreventspecifiedday
+ \count@\numexpr\!chreventday+\!chreventmonth*30\relax
+ \else %
+ \count@\numexpr\!chreventmonth*30\relax
+ \fi
+ \else \count@\z@
+ \fi %
+ \!chr!dimentraitement\dimexpr(\!chr!unitperyear)/365*\count@\relax%
+ \count@\numexpr\!chreventyear-\!chrstartyear\relax
+ \advance\!chr!dimentraitement\dimexpr\count@\!chr!unitperyear\relax
+% % % Affichage
+ \dimen@i\wd\!chrflechebox
+ \setbox\!chrflechebox\hbox{%
+ \unhbox\!chrflechebox\kern-\dimen@i\kern\!chr!dimentraitement
+ \if!chreventbarre
+ \begingroup{%
+ \!chrusecolor{black}%
+ \kern-0.4pt\relax\vrule width0.4pt height\!chrheight depth\z@\relax
+ }%
+ \endgroup
+ \fi
+ \kern-0.4pt\raise\!chreventiconheight \hbox to\z@{\hss\!chr@eventicon\hss}%
+ \lower\dimexpr\!chreventmarkdepth+2pt\relax
+ \hbox to\z@{%
+ \vbox to\z@{%
+ \if!chreventlocationup\relax\vss\fi
+ \if!chreventdate\hbox to\z@{%
+ \hss \if!chreventifcolorbox \expandafter\!chreventcolorbox\fi
+ {\!chr@eventdatestyle{%
+ \if!chreventspecifiedday %
+ {\!chr@eventdatesstyle{\!chreventday}}\!chr@eventdatesseparation
+ \fi
+ {\!chr@eventdatesstyle{%
+ \if!chreventspecifiedmonth
+ \if!chreventconversionmonth\expandafter \chron@selectmonth
+ \fi
+ \!chreventmonth
+ \fi
+ }%
+ }%
+ \if!chreventspecifiedmonth\if!chreventyear \!chr@eventdatesseparation\fi\fi
+ \if!chreventyear{\!chr@eventdatesstyle{\!chreventyear}}\fi%
+ }}%
+ \hss
+ }%
+ \fi
+ \ifdim\!chrperiodeventtextwidth > \z@
+ \hbox to\z@{%
+ \hss\setbox\z@\hbox{%
+ \vbox{%
+ \hsize\!chrperiodeventtextwidth\relax\!chr@eventtextstyle{#3}%
+ \vskip1pt\relax
+ }%
+ }%
+ \dimen@i\dimexpr\wd\z@+4pt\relax
+ \dimen@ii\dimexpr\ht\z@+\dp\z@+2pt\relax
+ \setbox\z@\hbox to\z@{%
+ \hss\begingroup{\!chrusecolor{\!chr@eventcolorbox}\vrule height\dimen@ii width\dimen@i depth2pt\relax}\endgroup \kern-\dimen@i\kern2pt\relax%
+ \box\z@\hss
+ }%
+ \box\z@
+ }%
+ \else
+ \hbox to\z@{%
+ \hss\if!chreventifcolorbox\expandafter\!chreventcolorbox\fi{%
+ \!chr@eventtextstyle{#3}}\hss
+ }%
+ \fi
+ \unless\if!chreventlocationup\relax\vss\fi
+ }%
+ }%
+ \if!chreventmark
+ \if!chreventlocationup\relax
+ %\!chrstarttikzpicture \!chrdraw(0,0)--(0,\the\!chreventmarkdepth+5pt);\!chrstoptikzpicture
+ \vrule height\dimexpr-\!chreventmarkdepth-5pt\relax depth\z@ \kern-0.4pt\relax
+ \else \vrule height\z@ depth\!chreventmarkdepth
+ \fi
+ \kern-0.4pt\relax
+ \fi
+ \setbox0\vbox{%
+ \if!chreventdate
+ \hbox{#2}%
+ \fi
+ \hbox{%
+ \ifdim\!chrperiodeventtextwidth > \z@
+ \vbox {%
+ \hsize\!chrperiodeventtextwidth #3%
+ }%
+ \else #3%
+ \fi
+ }%
+ }%
+ \begingroup\dimen@\dimexpr\dp0+\ht0+2pt\relax
+ \dimen@i\dimexpr\dimen@-\!chreventmarkdepth\relax
+ \if!chreventlocationup
+ \ifdim \dimen@i >\!chrskipbefore \global\!chrskipbefore\dimen@i \fi
+ \else
+ \ifdim \dimen@ >\!chrskipafter \global\!chrskipafter\dimen@ \fi
+ \fi
+ \endgroup
+ }%
+\fi\fi\fi}%
+%
+%
+%
+%
+%
+%
+%
+\!chrverif\def\setupchronoevent{\def\@@string@a{event}\!chrtraiteoneargument\dosetupchronoeventandperiode}%
+\!chrverif\def\dosetupchronoeventandperiode[#1]#2{\if!chronearg
+\def\@@string@a{#1}\fi \!chr@parcoursoptions#2,\end}%
+%
+%STOPCHRONOLOGY
+%
+%
+\!chr@verif\newdimen\!chrstopwidth
+\!chrverif\def\!chrstopcenteralign{\!chrstopwidth\dimexpr(\hsize-\!chrwidth)/2\relax}%
+\!chrverif\def\!chrstopleftalign{\!chrstopwidth\z@}%
+\!chrverif\def\!chrstoprightalign{\!chrstopwidth\dimexpr\hsize-\!chrwidth\relax}%
+%
+\!chrverif\def\stopchronology{\goodbreak
+\ifcsname !chrstop\!chr@align align\endcsname
+ \csname !chrstop\!chr@align align\endcsname
+\else\!chrstopwidth\z@
+\fi
+\vskip\!chrskipbefore
+\moveright\!chrstopwidth\box\!chrflechebox
+\vskip\!chrskipafter
+\endgroup\bigskip}%
+%
+\!chr@verif\newif\if!chrverifdefines
+\!chrverif\def\!chrverifdefines{%
+ \ifcsname chrono\@@string@a\endcsname
+ \!chrverifdefinesfalse \immediate\write16{Attention : macro \expandafter\noexpand\csname chrono\@@string@a\endcsname deja definie.}%
+ \expandafter\!gobble
+ \else
+ \!chrverifdefinestrue
+ \expandafter\!chrverifdefines@ux
+ \fi}%
+\!chrverif\def\!chrverifdefines@ux{\expandafter\def\csname chrono\@@string@a\endcsname}%
+%
+%
+%DEFINECHRONOEVENT
+%
+%
+\!chrverif\def\definechronoevent#1{%
+\def\@@string@a{#1}%
+\!chrverifdefines{%
+\expandafter\expandafter\expandafter\!chrtraitingargvirgule\expandafter\expandafter\expandafter{\csname !chr#1defaultoptions\endcsname}{!chr@event}%
+\!chrtraiteoneargument\dochronoevent}%
+\if!chrverifdefines
+ \expandafter\def\csname !chr#1defaultoptions\endcsname{barre=true, icon=\relax,%
+ markdepth=10pt, textstyle=\relax, mark=true,%
+ date=true, datesseparation=\space, conversionmonth=true,%
+ datestyle=\relax, datesstyle=\relax, year=true,%
+ iconheight=0.5\!chrheight, ifcolorbox=true, colorbox=white,%
+ textwidth=\relax}%
+\fi
+\ifnexttoken[{\!chr@defineorsetupoptions}{}}%
+%
+%
+%DEFINECHRONOPERIODE
+%
+%
+\!chrverif\def\definechronoperiode#1{%
+\def\@@string@a{#1}%
+\!chrverifdefines{%
+\expandafter\expandafter\expandafter\!chrtraitingargvirgule\expandafter\expandafter\expandafter{\csname !chr#1defaultoptions\endcsname}{!chr@period}%
+\!chrtraiteoneargument\dochronoperiode}%
+\if!chrverifdefines
+ \expandafter\def\csname !chr#1defaultoptions\endcsname{textdepth=15pt, dates=true,%
+ color=\!chrperiodedef@ultcolor, datesstyle=\relax,%
+ startdate=true, stopdate=true, textstyle=\relax,%
+ dateselevation=0pt, ifcolorbox=true,%
+ colorbox=white, bottomdepth=0pt, topheight=\!chrheight, box=false,%
+ textwidth=\relax}%
+\fi
+\ifnexttoken[{\!chr@defineorsetupoptions}{}}%
+%
+%pour modifier les valeurs par d\'efaut
+%
+\!chrverif\def\!chr@defineorsetupoptions[#1]{%
+\!chr@parcoursoptions#1,\end
+}%
+%
+\!chrverif\def\!chr@parcoursoptions#1,{\!chr@replaceoptions#1,=\end,\ifnexttoken\end \!gobble \!chr@parcoursoptions}%
+\!chrverif\def\!chr@replaceoptions#1=#2,{%
+\ifx#2\end\relax
+\else
+ \def\@@string@f{}%
+ \def\@@string@c{#1}\def\@@string@d{#2}%
+ \expandafter\let\expandafter\@@string@@b\csname !chr\@@string@a defaultoptions\endcsname
+ \expandafter\!chr@replaceoptionsaux\@@string@@b,\end%
+ \expandafter\let\csname !chr\@@string@a defaultoptions\endcsname\@@string@f
+ \expandafter\!gobblethree
+\fi}%
+%
+\!chrverif\def\!chr@replaceoptionsaux#1,{\!chr@replaceoptions@ux#1,=\end,\ifnexttoken\end\!gobble\!chr@replaceoptionsaux}%
+\!chrverif\def\!chr@replaceoptions@ux#1=#2,{%
+\ifx#2\end\relax
+\else
+ \def\@@string@e{#1}%
+ \ifx\@@string@c\@@string@e
+ \expandafter\def\expandafter\@@string@f\expandafter{\@@string@f , #1=}%
+ \expandafter\expandafter\expandafter\def\expandafter\expandafter\expandafter\@@string@f\expandafter\expandafter\expandafter{\expandafter\@@string@f\@@string@d}%
+ \else
+ \expandafter\def\expandafter\@@string@f\expandafter{\@@string@f , #1=#2}%
+ \fi
+ \expandafter\!gobblethree
+\fi
+}%
+%
+%
+\!chr@verif\newcount\!chrgraduationcount
+\!chr@verif\newcount\!chrgraduationcount@ux
+\newif\if!chrgradu@tionevent \!chrgradu@tioneventtrue
+\!chrverif\def\chronograduation{\!chrtraitetwoargument\dochronograduation}%
+\!chrverif\def\dochronograduation[#1][#2]#3{%
+\if!chrtwoarg
+ \def\@@string@a{#2}%
+ \def\@@string@b{#1}\def\@@string@c{event}%
+ \def\@@string@d{periode}%
+ \ifx\@@string@b\@@string@c
+ \!chrgradu@tioneventtrue
+ \else
+ \ifx\@@string@b\@@string@d
+ \!chrgradu@tioneventfalse
+ \else
+ \def\@@string@e{}\unless\ifx\@@string@b\@@string@e\immediate\write16{chronosys : style #1 non défini ligne \number\inputlineno}\fi
+ \fi
+ \fi
+\else \def\@@string@a{#1}%
+\fi
+\!chrgraduationcount\!chrstartyear
+\if!chrgradu@tionevent
+ \loop
+ \advance\!chrgraduationcount#3%
+ \ifnum\!chrgraduationcount<\!chrstopyear
+ \expandafter\chrono!!eventgradu@tion
+ \expandafter[\@@string@a]{\number\!chrgraduationcount}{}%
+ \repeat
+\else
+ \def\@@string@e{startdate=true,}%
+ \expandafter\expandafter\expandafter\def\expandafter\expandafter\expandafter\@@string@e\expandafter\expandafter\expandafter{\expandafter\@@string@e\@@string@a}%
+ \expandafter\chrono!!periodegradu@tion\expandafter[\@@string@e]{\number\!chrgraduationcount}{#3}{}%
+ \restartchronoperiodecolor
+ \loop
+ \advance\!chrgraduationcount#3%
+ \ifnum\!chrgraduationcount<\!chrstopyear
+ \!chrgraduationcount@ux\numexpr\!chrgraduationcount-#3\relax \expandafter\chrono!!periodegradu@tion\expandafter[\@@string@a]{\number\!chrgraduationcount@ux}{\number\!chrgraduationcount}{}%
+ \repeat
+\fi}%
+%
+\!chrverif\def\setupchronograduation{\!chrtraiteoneargument\dosetupchronograduation}%
+\!chrverif\def\dosetupchronograduation[#1]{%
+\if!chronearg
+ \def\@@string@b{#1}\def\@@string@c{event}\def\@@string@d{periode}%
+ \ifx\@@string@b\@@string@c
+ \!chrgradu@tioneventtrue
+ \else
+ \ifx\@@string@b\@@string@d
+ \!chrgradu@tioneventfalse
+ \fi
+ \fi
+\fi
+\if!chrgradu@tionevent
+ \def\@@string@a{[!!eventgradu@tion]}%
+\else \def\@@string@a{[!!periodegradu@tion]}%
+\fi
+\expandafter\setupchronoevent\@@string@a}%
+%
+\definechronoevent{event}%
+\definechronoevent{!!eventgradu@tion}[markdepth=5pt,barre=false, ifcolorbox=false]%
+\definechronoperiode{periode}%
+\definechronoperiode{!!periodegradu@tion}[dateselevation=-10pt,%
+startdate=false, ifcolorbox=false]%
+%
+\endinput
+%
+% \ No newline at end of file
diff --git a/macros/latex/contrib/chronosys/docchronosys_en.pdf b/macros/latex/contrib/chronosys/docchronosys_en.pdf
new file mode 100644
index 0000000000..63a7b3793b
--- /dev/null
+++ b/macros/latex/contrib/chronosys/docchronosys_en.pdf
Binary files differ
diff --git a/macros/latex/contrib/chronosys/docchronosys_en.tex b/macros/latex/contrib/chronosys/docchronosys_en.tex
new file mode 100644
index 0000000000..1a0277c232
--- /dev/null
+++ b/macros/latex/contrib/chronosys/docchronosys_en.tex
@@ -0,0 +1,723 @@
+% This is is the code for the english documentation of the `chronosys' package.
+%
+% The maintener of this work is Mathieu Long.
+% email : mlong.tex@hotmail.fr
+% the `chronosys' package consists in the 9 files :
+% -- `docchronosys_en.tex' and `docchronosys_en.pdf' (english manual)
+% -- `docchronosys_fr.tex' and `docchronosys_fr.pdf' (french manual)
+% -- README
+% -- `chronosys.tex' (file for plain TeX)
+% -- `chronosyschr.tex' (main file of the `chronosys' package)
+% -- `chronosys.sty' (file for LaTeX)
+% -- `x-chronosys.tex' (file for ConTeXt)
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Mathieu Long.
+%
+\setupinteraction[title=Chronosys - Documentation, author=Mathieu Long, title=Chronosys documentation -english-, subtitle=Draw timelines]
+\setupcolors[state=start]
+\unless\ifdefined\XeTeXpicfile \unless\ifdefined\directlua
+\setupoutput[pdftex]
+\fi\fi
+\setupheadertexts%
+[chapter][section]
+\setupheader[text][style=\ss]
+\enableregime[utf8]
+\mainlanguage[en]
+\setupbodyfont[14pt,regular]
+\setuppapersize[B4]
+\setupinteraction[state=start,color=middlered]
+\setupcapitals[sc=yes]
+\setupindenting[yes,20pt]
+\setuppagenumbering[location={bottom,right},left=--~]
+
+\definetyping[typingTEX][option=TEX]
+\setuptyping[typingTEX][color=darkblue]
+\setupcolors[state=start]
+\useURL[MetaPost_TUG][http://www.tug.org/docs/metapost/mpman.pdf]
+\useURL[Tikz_CTAN][http://mirror.ctan.org/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf]
+\starttext
+
+\startmode[mkiv]
+\def\METAPOST{MetaPost}
+\stopmode
+
+
+\placebookmarks[chapter,section,subsection][chapter,section]
+\usemodule[chronosys]
+\startstandardmakeup\switchtobodyfont[myface,16pt]
+\midaligned{Chronosys}
+\midaligned{Draw timelines diagrams !}
+\bigskip
+\startchronology[width=\hsize,height=7ex,stopyear=\numexpr\year+38\relax,startyear=1982,color=darkgreen]
+\chronoevent{2011}{\type{chronosys}'s creation}
+\stopchronology
+\bigskip\bigskip
+\midaligned{Mathieu \sc Long}
+\midaligned{\color[darkgreen]mlong.tex@hotmail.fr}
+\stopstandardmakeup
+\completecontent[level=subsection,interaction=pagenumber]
+
+\def\HeadTitle#1#2%
+{\hbox to \hsize
+{ \vbox{\hrule\par\noindent\vrule height1.15cm depth0pt\leaders\hrule\hskip10pt \lower5pt\vbox{\hbox{ #1\hskip10pt#2 }}\leaders\hrule\hfill\vrule height1.15cm depth0pt}
+}}
+\setuphead[chapter][command=\HeadTitle]
+\setupbodyfont[14pt]
+\parskip 1cm
+\chapter{Introduction}
+
+\type{Chronosys} is distributed under the LaTeX Project Public License.You may use it for drawing timelines. It uses the \type{tikz}\footnote{for more informations on \type{tikz}, see \from[Tikz_CTAN]} package for drawing. You need to have \ETEX\ to use it.
+\blank
+\unprotect
+This package is version {\unprotect\chron@sysversion\protect}, others versions might be created later.
+\bigskip
+It is recommended not to load the \type{color.tex} file if you use plain \TeX.
+\bigskip
+
+You can load \type{chronosys} by~:
+\startitemize[4]
+\item \tex{usemodule[chronosys]} in \CONTEXT.
+\item \tex{usepackage{chronosys}} in \LaTeX.
+\item \tex{input chronosys} in plain \TeX.
+\stopitemize
+
+\subject{updates' history}
+\startitemize[1]
+\item 1.10 :
+added possibility to change the alignment of the timeline on the page, change the width of the text of the label of events, improved support for events placed above the frieze, added the ability to colour the text background of events and periods.
+\item 1.15 : added possibility to create owns new commands, to graduate automatically the timeline, change the alternation of colours
+ periods and fixes some compatibility issues.
+\item 1.2 (actual version) : reduces the use of the module \type{tikz} at least possible, remove the former limitation of the impossibility of
+switching the default value of \type{textwidth}. With \CONTEXT, added possibility using \METAPOST\footnote{for more informations on \METAPOST, see \from[MetaPost_TUG]} instead of \type{tikz} (and
+ conversely, reuse \type {tikz} instead of \METAPOST{}) using the commands \tex{chronoswitchtomodeMP} and \tex{chronoswitchtomodeTikz}~; with
+the Mark IV version using \METAPOST{} default.
+
+\stopitemize
+
+\blank
+
+\hairline
+I wish to thank Gonçalo {\sc Pereira} for his idea about colouring in white the background of the labels of events and periods to avoid them to be mixed with other vertical straights.
+
+\blank
+\hrule
+
+\chapter{First use}
+
+\section{Main function: \tex{startchronology}}
+
+The control sequence \tex{startchronology}\index{startchronology} is the first one you need to know.\footnote{There are \tex{begin}\arg{chronology} and \tex{end}\arg{chronology} for \LaTeX}~: it starts the chronological frieze :
+
+\startalignment[middle]
+\starttypingTEX
+\startchronology[...=...]
+\stoptypingTEX
+\stopalignment
+\leftaligned{\switchtobodyfont[12.4pt] See \in[startchronologyoptions] to have the different possible options}
+\blank[small]
+The next one is \tex{stopchronology}\index{stopchronology}\footnote{or \tex{end}\arg{chronology}}, it ends the timeline.
+
+\startalignment[middle]
+\starttypingTEX
+\stopchronology
+\stoptypingTEX
+\stopalignment
+
+ Let's have a look on the result~:
+\starttypingTEX
+\startchronology
+\stopchronology
+\stoptypingTEX
+
+\startchronology
+\stopchronology
+\bigskip
+You can see the timeline is on all the page's width, furthermore it starts at {\os0} and ends at the current year {\os\the\year} when this document was compiled. \type{Chronosys} will compare these years with the events and periods you will give him (see \in[event] and \in[period]).
+\blank[small]Now let's learn how to add events on the timeline.
+
+\section[event]{Events: \tex{chronoevent}}
+
+You can add events with \tex{chronoevent}\index{chronoevent}. This control sequence needs two arguments: the first one is the date of the event\footnote{you can go to \in[eventnewdate] to see another way of specifying the date} and the second is the label of this event.
+
+\startalignment[middle]
+\starttypingTEX
+\chronoevent[...=...]{1.}{2.}
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC \color[darkblue]\tt...=...\NC options (see \in[eventoptions])\NC\NR
+\NC \color[darkblue]1. \NC date ({\em number})\NC\NR
+\NC \color[darkblue]2. \NC label \NC\NR
+\stoptabulate
+
+\blank[small]
+For instance:
+\starttypingTEX
+\startchronology
+\chronoevent{1977}{\TeX's creation}
+\stopchronology
+\stoptypingTEX
+\startchronology
+\chronoevent{1977}{\TeX's creation}
+\stopchronology
+\bigskip
+The event appears between {\os 0} et {\os\the\year}, proportionally with his gap with {\os0}. You can also give several events:
+
+\starttypingTEX
+\startchronology
+\chronoevent{476}{Fall of the Roman empire}
+\chronoevent{1492}{Discovery of America}
+\chronoevent{1969}{first steps on the Moon}
+\stopchronology
+\stoptypingTEX
+
+\switchtobodyfont[9pt]
+\startchronology
+\chronoevent{476}{Fall of the Roman empire}
+\chronoevent{1492}{Discovery of America}
+\chronoevent{1969}{first steps on the Moon}
+\stopchronology
+\switchtobodyfont[14pt]
+\bigskip N.B.: the font size has been reduced to avoid label to overlap; a best way will be given further (see \in[eventoptions]).\blank
+
+\type{Chronosys} won't generate any error if the event's date is out of the starting year and ending year, however it will be ignored. The way of customize
+the timeline, especially the starting year and ending year, will be seen further(see \in[startchronologyoptions]).
+
+\section[period]{Periods: \tex{chronoperiode}}
+
+You can also add one period (or several\footnote{If two periods are overlapping, the last one will overlap the other}) on the frieze with \tex{chronoperiode}\index{chronperiode}.
+
+\startalignment[middle]
+\starttypingTEX
+\chronoperiode[...=...]{1.}{2.}{3.}
+\stoptypingTEX
+\stopalignment
+\starttabulate[|l|l|]
+\NC \tt\color[darkblue]...=...\NC options (see \in[periodoptions])\NC\NR
+\NC \color[darkblue]1. \NC date of the beginning ({\em number})\NC\NR
+\NC \color[darkblue]2. \NC date of the end ({\em number}) \NC\NR
+\NC\color[darkblue]3. \NC label \NC\NR
+\stoptabulate
+
+\starttypingTEX
+\startchronology
+\chronoperiode{1000}{1999}{2\high{nd} Millennium}
+\chronoperiode{192}{476}{Eastern Roman Empire}
+\chronoevent{1969}{first steps on the Moon}
+\stopchronology
+\stoptypingTEX
+\switchtobodyfont[9pt]
+\startchronology
+\chronoperiode{1000}{1999}{2\high{nd} Millennium}
+\chronoperiode{192}{476}{Eastern Roman Empire}
+\chronoevent{1969}{first steps on the Moon}
+\stopchronology
+\switchtobodyfont[14pt]
+\blank
+N.B.: on the period from {\os1000} to {\os1999}, blue on the timeline, we can now see the vertical straight under the frieze. You can disable it (see \in[eventoptions]), but if you want it you should place the events after the periods.
+
+The period appears automatically with colour, and the dates are also visible (see \in[periodoptions] to disable them) and the label. The periods can be automatically coloured in 5 colours : blue, red, cyan, purple and yellow, except if the colour is identical to the frieze's one. Of course you can choose the colour of the period (see \in[periodoptions]).
+
+\section[chronograduation]{Automatic graduation : \tex{chronograduation}}
+
+Use \tex{chronograduation} to add a graduation on the timeline.
+
+\startalignment[middle]
+\starttypingTEX
+\chronograduation[style][...=...]{1.}
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC \color[blue] \type{style} \NC \type{periode} \em or \type{event}\FR
+\NC \color[blue] ...=... \NC options (see \in[chronoperiodsoptions] et \in[chronoeventsoptions]) \FR
+\NC \color[blue] 1. \NC interval ({\em number})\FR
+\stoptabulate
+
+\starttypingTEX
+\startchronology
+\chronograduation{100}
+\stopchronology
+\startchronology
+\chronograduation[periode][dateselevation=0pt]{100}
+\stopchronology
+\stoptypingTEX
+\startchronology
+\chronograduation[][]{100}
+\stopchronology
+\startchronology
+\chronograduation[periode][dateselevation=\z@]{100}
+\stopchronology
+
+\chapter[Personnalisation]{Time-lines' customization}
+
+\section{\tex{startchronology}}
+\subsection{Example}
+\tex{startchronology} can have an optional argument in brackets.
+For example:
+
+\starttypingTEX
+\startchronology
+[startyear=-800,stopyear=500,
+color=darkblue,height=7ex,width=\hsize]
+\chronoevent{-753}{Rome's foundation}
+\stopchronology
+\stoptypingTEX
+\startchronology
+[startyear=-800,stopyear=500,color=darkblue,height=7ex,width=\hsize]
+\chronoevent{-753}{Rome's foundation}
+\stopchronology
+\bigskip
+
+\subsection{Different options}
+The different options of \tex{startchronology}\index{startchronology} are:
+\startitemize
+\head \type{startyear}\index{startyear} :\par starting year of the timeline. It needs to be a valid \type{number}. It is by default {\os0}
+\head \type{stopyear}\index{stopyear} :\par ending year of the timeline. It also needs to be a valid \type{number}. It is the current year by default.
+\head \type{color}\index{color} :\par colour of the frieze. It must be a valid \type{colour}. It is black by default.
+\head \type{height}\index{height} :\par height of the frieze. It must be a valid \type{dimen} and it is \type{0.7pc} by default.
+\head \type{width}\index{width} :\par width of the frieze. It must be a valid \type{dimen} and it is \tex{hsize}\footnote{\tex{textwidth} in \LaTeX} by default.
+\head \type{datesstyle}\index{datessyle} :\par style to apply to dates. It must be a \type{control sequence} (it can take one argument, which will be the dates), is empty by default.
+\head \type{dateselevation}\index{dateselevation} :\par height of the dates from the timeline, it must be a valid \type{dimen} and it is \type{20pt} par by default.
+\head \type{startdate}\index{startdate} :\par boolean which indicate if the starting year has to be placed. It must be either \type{true} or \type{false} and it is \type{true} by default.
+\head \type{stopdate}\index{stopdate} :\par boolean which indicate if the ending year has to be placed. It must be either \type{true} or \type{false} and it is \type{true} by default.
+\head \type{dates}\index{dates} :\par boolean which indicate if both dates have to be placed. It must be either \type{true} or \type{false} and it is \type{true} by default.
+\head\type{arrow}\index{arrow} :\par boolean which indicate if an arrowhead has to be placed. It must be either \type{true} or \type{false} and it is \type{true} by default.
+\head \type{arrowheight}\index{arrowheight} :\par height of the arrowhead. It must be a valid \type{dimen} and it is identical to the height of the timeline by default.
+\head \type{arrowwidth}\index{arrowwidth} :\par width of the arrowhead. It encroaches on the entire (\type{height}) width of the frieze. It must be a valid \type{dimen} and it is 1/10 of the entire width of the timeline (\type{width}) by default.
+\head \type{arrowcolor}\index{arrowcolor} :\par colour of the arrowhead. It must be a \type{colour} recognized by the \type{tikz} package. It is identical to the colour of the frieze by default.
+\head \type{box}\index{box} :\par boolean which indicates if the timeline should be passed back with a black line. It must be either \type{true} or \type{false} and it is \type{false} by default.
+\head \type{align}\index{align} :\par alignment of the timeline on the page. You can choose between \type{right}, \type{center} and \type{left}. It is \type{center} by default.
+
+\stopitemize
+\subsection[startchronologyoptions]{Summary}
+\placetable[here][fig:startchronologyoptions]{\type{startchronology}'s options}
+\starttable[|l|c|l|]
+\HL\VL\use{3}\ReFormat[cB]{\tex{startchronology[}\em ...=...\type{]}}\VL\SR
+\VL\type{startyear} \NC=\NC\type{<number>}
+\VL\FR\VL
+\type{stopyear} \NC=\NC\type{<number>}\VL\FR
+\VL
+\type{color} \NC=\NC\type{<colour>}\VL\FR
+\VL
+\type{height} \NC=\NC\type{<dimen>}\VL\FR
+\VL
+\type{width} \NC=\NC\type{<dimen>}\VL\FR
+\VL
+\type{datesstyle} \NC=\NC\type{<control sequence>} {\em or} \type{<control sequence#1>}\VL\FR
+\VL
+\type{dateselevation} \NC=\NC\type{<dimen>}\VL\FR
+\VL
+\type{startdate} \NC=\NC\type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{stopdate} \NC=\NC\type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{dates} \NC=\NC\type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{arrow} \NC=\NC\type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{arrowheight} \NC=\NC\type{<dimen>}\VL\FR
+\VL\type{arrowwidth} \NC=\NC\type{<dimen>}\VL\FR
+\VL\type{arrowcolor} \NC=\NC\type{<colour>}\VL\FR
+\VL\type{box} \NC=\NC\type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{align} \NC=\NC\type{<right>} {\em or} \type{<center>} {\em or} \type{<left>}\VL\FR\HL
+\stoptable
+
+\page[yes]
+\section{\tex{chronoperiode}}
+\subsection{Example}
+\tex{chronoperiode} can have an optional argument for the options' customization.
+\starttypingTEX
+\startchronology[startyear=-800,stopyear=500,
+color=darkgreen, height=3cm]
+\chronoperiode[color=orange,bottomdepth=1cm, topheight=2cm,
+textstyle=\it, dateselevation=-15pt, ifcolorbox=false,
+box=true]{-753}{-509}{Roman Royal period}
+\chronoperiode[color=cyan,startdate=false, textstyle=\bf,
+textdepth=35pt, bottomdepth=1cm, topheight=2cm,
+ifcolorbox=false, dateselevation=-15pt,
+box=true]{-509}{-27}{Roman Republic}
+\stopchronology
+\stoptypingTEX
+\startchronology[startyear=-800,stopyear=500,color=darkgreen, height=3cm]
+\chronoperiode[color=orange,bottomdepth=1cm, topheight=2cm, textstyle=\it, dateselevation=-15pt, ifcolorbox=false, box=true]{-753}{-509}{Roman Royal period}
+\chronoperiode[color=cyan,startdate=false, textstyle=\bf,textdepth=35pt, bottomdepth=1cm, topheight=2cm, ifcolorbox=false, dateselevation=-15pt, box=true]{-509}{-27}{Roman Republic}
+\stopchronology
+
+\subsection{The colour of the background}
+
+\type{Chronosys} colours the background of the label in white to erase the eventual vertical straights. You can disable it or change the colour if you want (see \in[chronoperiodsoptions]).
+
+\subsection{Colours alternation}
+
+As we saw, the colour of the periods alternates between blue, red, cyan, purple and yellow. You can define your own colours alternation
+with \crlf\tex{chronoperiodecoloralternation}\index{chronoperiodecoloralternation}.
+
+\startalignment[middle]
+\starttypingTEX
+\chronoperiodecoloralternation{1.}
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC\color[darkblue] 1. \NC colours ({\em\type{colour}, \type{colour},... \type{colour}})\FR
+\stoptabulate
+
+\blank[big]
+
+Example:
+
+\starttypingTEX
+\chronoperiodecoloralternation{orange, darkgreen,
+ violet, purple, cyan}
+\startchronology
+\chronoperiode[startdate=false]{0}{500}{}
+\chronoperiode[startdate=false]{500}{1000}{}
+\chronoperiode[startdate=false]{1000}{1500}{}
+\stopchronology
+\stoptypingTEX
+
+\restartchronoperiodecolor
+\startchronology
+\chronoperiodecoloralternation{orange, darkgreen,
+ violet, purple, cyan}
+\chronoperiode[startdate=false]{0}{500}{}
+\chronoperiode[startdate=false]{500}{1000}{}
+\chronoperiode[startdate=false]{1000}{1500}{}
+\stopchronology
+
+You can also restart the alternation at the beginning or on a specific colour with\crlf
+\tex{restartchronoperiodecolor}\index{restartchronoperiodecolor}.
+
+\startalignment[middle]
+\starttypingTEX
+\restartchronoperiodecolor[...]
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC\color[darkblue] ... \NC name of a colour of the alternation ({\em colour})\FR
+\stoptabulate
+
+\subsection[chronoperiodsoptions]{Different options}
+
+The different options of \tex{chronoperiode}\index{chronoperiode} are:
+
+\startitemize
+\head \type{startdate}\index{startdate} :\par boolean. It indicate if the starting year has to be placed, and must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{stopdate}\index{stopdate} :\par boolean. It indicate if the ending year has to be placed, and must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{dates}\type{true}\index{dates} :\par boolean. It indicate if both dates have to be placed, and must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{datesstyle}\index{datesstyle} : \par style to apply to the dates. It must be a
+
+\noindent\type{control sequence} or \type{control sequence#1} and is empty by default.
+\head \type{textstyle}\index{textstyle} : \par style to apply to the label. It must be a \type{control sequence} or
+
+\noindent\type{control sequence#1} and is empty by default.
+\head \type{color}\index{color} :\par colour of the period on the frieze. It must be a valid \type{colour}. It alternates between blue, red, cyan, purple and yellow by default.
+\head \type{dateselevation}\index{dateselevation} :\par height of the dates from the frieze. It must be a valid \type{dimen} and it is \type{0pt} by default.
+\head \type{textdepth}\index{textdepth} :\par depth of the label from the frieze. It must be a valid \type{dimen} and it is \type{15pt} by default.
+\head \type{colorbox}\index{colorbox} :\par colour of the background of the text of the period. It must be a valid \type{colour} and it is white by default.
+\head \type{ifcolorbox}\index{ifcolorbox} :\par boolean which indicates if the background of the text has to be coloured. It must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{topheight}\index{topheight} : \par height of the top of the period on the timeline. It must be a valid \type{dimen} and it is equal to the \type{height of the timeline} by default.
+\head \type{bottomdepth}\index{bottomdepth} : \par height of the bottom of the period on the timeline. It must be a valid \type{dimen} and it is \type{0pt} by default.
+\stopitemize
+
+\subsection[periodoptions]{Summary}
+
+\placetable[here][fig:chronoperiodeoptions]{\type{chronoperiode}'s options}
+\starttable[|l|c|l|]
+\HL\VL\use{3}\ReFormat[cB]{\tex{chronoperiode[}\em ...=...\type{]{...}{...}{...}}}\VL\SR
+\VL\type{startdate} \NC=\NC\type{<true>} {\em or} \type{<false>}\VL\LR
+\VL\type{stopdate} \NC=\NC\type{<true>} {\em or} \type{<false>}\VL\LR
+\VL\type{dates} \NC=\NC\type{<true>} {\em or} \type{<false>}\VL\LR
+\VL\type{datesstyle} \NC=\NC\type{<control sequence>} {\em or} \type{<control sequence#1>}\VL\LR
+\VL\type{textstyle} \NC=\NC\type{<control sequence>} {\em or} \type{<control sequence#1>}\VL\LR
+\VL\type{color} \NC=\NC\type{<colour>}\VL\LR
+\VL\type{dateselevation} \NC=\NC\type{<dimen>}\VL\LR
+\VL\type{textdeph} \NC=\NC\type{<dimen>}\VL\LR
+\VL\type{ifcolorbox}\NC=\NC \type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{colorbox} \NC =\NC \type{<colour>} \VL\FR
+\VL\type{topheight} \NC =\NC \type{<dimen>}\VL\FR
+\VL\type{bottomdepth} \NC =\NC \type{<dimen>}\VL\FR\HL
+\stoptable
+
+\page[yes]
+
+\section{\tex{chronoevent}}
+
+\tex{chronoevent} can also have an optional argument for customization.
+
+\subsection{Example}
+
+\starttypingTEX
+\def\MyIcon{{\color{orange}\vrule width 5pt height5pt\relax}}
+
+\catcode`\@=11
+\def\chron@selectmonth#1{\ifcase#1\or January\or February\or
+ March\or April\or May\or June\or July\or August\or
+ September\or October\or November\or December\fi}
+
+\startchronology[startyear=-800,stopyear=500,
+color=darkgreen,height=7ex]
+\chronoevent[textstyle=\bf,
+datesstyle=\it,datesseparation=/,conversionmonth=false,
+icon=\MyIcon,year=false, textwidth=4.5cm]{15/3/-44}
+{\qquad ides of March;\endgraf
+assassination of Caesar}
+\stopchronology
+\stoptypingTEX
+\def\MyIcon{{\color[orange]\vrule width 5pt height5pt\relax}}
+\catcode`\@=11
+\def\chron@selectmonth#1{\ifcase#1\or January\or February\or
+ March\or April\or May\or June\or July\or August\or September\or
+ October\or November\or December\fi}
+
+\startchronology[startyear=-800,stopyear=500,color=darkgreen,height=7ex]
+\chronoevent[textstyle=\bf,datesstyle=\it,datesseparation=/,conversionmonth=false,icon=\MyIcon,year=false, textwidth=4.5cm]{15/3/-44}
+{\qquad ides of March; \endgraf assassination of Caesar}
+\stopchronology
+
+\subsection{Specificities}
+\subsubsection{The colour box of the text}
+
+As for the periods, to avoid vertical straight to overlap the others labels, as you can see there, if you wanted to type :
+\starttypingTEX
+\startchronology
+\chronoevent{1500}{Label A}
+\chronoevent{1525}{Label B}
+\stopchronology
+\stoptypingTEX
+\startchronology
+\chronoevent{1500}{Label A}
+\chronoevent[markdepth=70pt,ifcolorbox=false]{1525}{Label B}
+\stopchronology
+\type{chronosys} place a white colour box behind the text, so that you can have
+
+\startchronology
+\chronoevent[markdepth=70pt]{1525}{Label B}
+\chronoevent{1500}{Label A}
+\stopchronology
+
+You should type the events from the one you want to place from the farthest to the nearest from the timeline. You can of course choose the colour of the box, and disable it if you need (see \in[chronoeventsoptions]).
+
+\subsubsection[eventnewdate]{A new way for specifying the date}
+
+You can specify with more precision the date with \tex{chronoevent}\index{chronoevent}. We saw that typing
+\tex{chronoevent}\arg{-44}\arg{Assassination of Caesar} specified the year of the event, now we will saw the way of specifying
+the month and the day. You have to type \type{<day number>/<number of the month>/year}, only specifying the year is compulsory.
+
+You can give only the year as we saw before, the number of the month and the year or the day number and the number of the month and the year. The number of the month is automatically converted to the name of the month (in French by default). You can disable this conversion (see \in[eventoptions]).The control sequence of conversion is:
+\starttypingTEX
+\def\chron@selectmonth#1{\ifcase#1\or janvier\or f\'evrier\or
+ mars\or avril\or mai\or juin\or juillet\or ao\^ut\or
+ septembre\or octobre\or novembre\or d\'ecembre\fi}
+\stoptypingTEX
+
+To change the language, you only need to redefine the control sequence, for example for English as:
+\starttypingTEX
+\def\chron@selectmonth#1{\ifcase#1\or January\or February\or
+ March\or April\or May\or June\or
+ July\or August\or September\or
+ October\or November\or December\fi}
+\stoptypingTEX
+\bigskip
+For example,
+\starttypingTEX
+\catcode`\@=11
+\def\chron@selectmonth#1{\ifcase#1\or January\or February\or
+ March\or April\or May\or June\or
+ July\or August\or September\or
+ October\or November\or December\fi}
+\startchronology[startyear=-44,
+stopyear=-43,color=darkgreen,height=7ex]
+\chronoevent{15/03/-44}{Assassination of Caesar}
+\stopchronology
+\stoptypingTEX
+\catcode`\@=11
+\def\chron@selectmonth#1{\ifcase#1\or January\or February\or
+ March\or April\or May\or June\or July\or August\or September\or
+ October\or November\or December\fi}
+
+\startchronology[startyear=-44,stopyear=-43,color=darkgreen,height=7ex]
+\chronoevent{15/03/-44}{Assassination of Caesar}
+\stopchronology
+\blank
+
+\subsection[chronoeventsoptions]{Different options}
+
+Here are the different possible options\index{chronoevent}.
+\startitemize[1]
+\head \type{barre}\index{barre} :\par boolean which indicate if a vertical straight has to be placed on the frieze at the event position. It must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{date}\index{date} :\par boolean which indicate if the date of the event has to be placed. It must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{conversionmonth}\index{conversionmonth} :\par boolean which indicate if the number of the month has to be converted to the name month. It must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{mark}\index{mark} :\par boolean which indicate if a vertical straight has to be placed under the timeline at the event position. It must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{year}\index{year} :\par boolean which indicate if the year of the event has to be placed. It must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{icon}\index{icon} :\par symbol to add on the frieze at the event position. It can be a control sequence or some text, and it is empty by default.
+\head \type{markdepth}\index{markdepth} : \par depth of the label of the event and of the vertical straight under the frieze. It must be a valid \type{dimen} and it is \type{10pt} by default.
+\head \type{iconheight}\index{iconheight} :\par height of the icon on the timeline. It must be a valid \type{dimen} and it is half of the height of the frieze by default.
+\head \type{textstyle}\index{textstyle} :\par style to apply to the label. It must be a \type{control sequence} or
+
+\noindent\type{control sequence#1}.
+\head \type{datesseparation}\index{datesseparation} : symbol of separation of each element of the date. It can be a control sequence or some text and is a space by default.
+\head \type{datestyle}\index{datestyle} :\par style to apply to the entire date with the symbols of separation. It must be a \type{control sequence} or \type{control sequence#1}.
+\head \type{datesstyle}\index{datesstyle} :\par style to apply each element of the date without the symbols of separation. It must be a \type{control sequence} or \type{control sequence#1}.
+\head \type{colorbox}\index{colorbox} :\par colour of the background of the text and date of the event. It must be a valid \type{colour} and it is white by default.
+\head \type{ifcolorbox}\index{ifcolorbox} :\par boolean which indicates if the background of the text and the date has to be coloured. It must be either \type{true} or \type{false}. It is \type{true} by default.
+\head \type{textwidth}\index{textwidth} :\par
+Width of the label on the page.
+It must be a valid \type{dimen}.
+\stopitemize
+
+\subsection[eventoptions]{Summary}
+
+\placetable[here][fig:chronoeventoptions]{\type{chronoevent}'s options}
+\starttable[|l|c|l|]
+\HL\VL\use{3}\ReFormat[cB]{\tex{chronoevent[}\em ...=...\type{]{...}{...}}}\VL\SR
+\VL\type{barre}\NC=\NC \type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{date}\NC=\NC \type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{conversionmonth}\NC=\NC \type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{mark}\NC=\NC \type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{icon}\NC=\NC \type{<text>} {\em or} \type{<control sequence>} \bf\dots\VL\FR
+\VL\type{datesseparation}\NC=\NC \type{<text>} {\em or} \type{<control sequence>} \bf\dots\VL\FR
+\VL\type{markdepth}\NC=\NC \type{<dimen>}\VL\FR
+\VL\type{iconheight}\NC=\NC \type{<dimen>}\VL\FR
+\VL\type{textstyle}\NC=\NC \type{<control sequence>} {\em or} \type{<control sequence#1>}\VL\FR
+\VL\type{datestyle}\NC=\NC \type{<control sequence>} {\em or} \type{<control sequence#1>}\VL\FR
+\VL\type{datesstyle}\NC=\NC \type{<control sequence>} {\em or} \type{<control sequence#1>}\VL\FR
+\VL\type{ifcolorbox}\NC=\NC \type{<true>} {\em or} \type{<false>}\VL\FR
+\VL\type{colorbox} \NC =\NC \type{<colour>} \VL\FR
+\VL\type{textwidth} \NC =\NC \type{<dimen>}\VL\FR\HL
+\stoptable
+
+\page[yes]
+
+
+\chapter[permanentchanges]{Permanent changes}
+\section[definecommands]{Creating new commands}
+
+You can create your own commands to place events and periods on the timeline with \tex{definechronoevent} and \tex{definechronoperiode}.
+
+\startalignment[middle]
+\starttypingTEX
+\definechronoperiode{1.}[...=...]
+\definechronoevent{1.}[...=...]
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC \color[blue] 1. \NC name for the creation of the new command\FR
+\NC \color[blue] ...=... \NC options of the type of command defined (see \in[Personnalisation])\FR
+\stoptabulate
+
+\blank
+N.B.: in \CONTEXT, the syntax is
+
+\startalignment[middle]
+\starttypingTEX
+\definechronoperiode[1.][...=...]
+\definechronoevent[1.][...=...]
+\stoptypingTEX
+\stopalignment
+
+The commands \tex{chrono<name of the command>} are now defined. For instance,
+
+\starttypingTEX
+\definechronoperiode{MyPeriod}[color=yellow, textstyle=\it]
+\definechronoevent{MyEvent}[textstyle=\it, barre=false]
+\startchronology[color=darkgreen]
+\chronoMyPeriod{100}{500}{Something}
+\chronoMyEvent{800}{Anything else}
+\stopchronology
+\stoptypingTEX
+
+
+\definechronoperiode[MyPeriod] [color=yellow, textstyle=\it]
+\definechronoevent[MyEvent][textstyle=\it, barre=false]
+\startchronology[color=darkgreen]
+\chronoMyPeriod{100}{500}{Something}
+\chronoMyEvent{800}{Anything else}
+\stopchronology
+
+\section[setupdefaultvalues]{Modify the default values}
+You can apply changes on default values with using \tex{setupchronology},\crlf \tex{setupchronoevent} and \tex{setupchronoperiode}. You use the
+same name for each option you want to change.
+\index{setupchronology}\index{setupchronoevent} \index{setupchronoperiode}.
+
+\startalignment[middle]
+\starttypingTEX
+\setupchrono<text>[...]{1.}
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC \color[blue] <text> \NC \type{periode} \em or \type{event} or \type{logy} or \type{graduation}\FR
+\NC \color[blue] ...\NC name of the command to customize (except for \tex{setupchronology}, and\FR
+\NC \NC for\tex{setupchronograduation} it is the style of the graduation ; see \in[definecommands])\FR
+\NC \color[blue] 1. \NC options (see \in[Personnalisation])\FR
+\stoptabulate
+
+N.B.: Again, in \CONTEXT, the syntax is :
+
+\startalignment[middle]
+\starttypingTEX
+\setupchrono<text>[...][1.]
+\stoptypingTEX
+\stopalignment
+
+The option \type {name of the command to customize} is only available for \crlf \tex{setupchronoevent} and \tex{setupchronoperiode}, and in the case of \crlf\tex{setupchronograduation} it matches the style of graduation (\type{event} or \type{period}).
+
+If it is not given, the changes will affect \type {\chronoperiode} and \tex{chronoevent} , otherwise they will affect the command given in
+option.
+
+For example,
+
+\starttypingTEX
+\setupchronology{startyear=1000,color=darkblue,stopdate=false}
+\setupchronoperiode{color=darkgreen}
+\setupchronoevent{textstyle=\it}
+\setupchronograduation[event]{markdepth=2cm}
+\startchronology
+\chronograduation{250}
+\chronoperiode{1050}{1450}{Anything you want}
+\chronoevent{1600}{Anything else}
+\chronoperiode{1800}{1899}{19\high{th} century}
+\stopchronology
+\stoptypingTEX
+
+\setupchronology[startyear=1000,color=darkblue,stopdate=false]
+\setupchronoperiode[color=darkgreen]
+\setupchronoevent[textstyle=\it]
+\setupchronograduation[event][markdepth=2cm]
+\startchronology
+\chronograduation{250}
+\chronoperiode{1050}{1450}{Anything you want}
+\chronoevent{1600}{Anything else}
+\chronoperiode{1800}{1899}{19\high{th} century}
+\stopchronology\bigskip
+\bigskip N.B.: if you want to reapply the automatic colour's alternation of the periods, use
+
+\startalignment[middle]
+\starttypingTEX
+\setupchronoperiode{color=\chronoperiodcolor}
+\stoptypingTEX
+\stopalignment
+
+\setupchronoperiode[color=\chronoperiodcolor]
+\startchronology
+\chronograduation{250}
+\chronoperiode{1050}{1450}{Anything you want}
+\chronoperiode{1800}{1899}{19\high{th} century}
+\chronoevent{1600}{Anything else}
+\stopchronology
+
+\completeindex
+\midaligned{\button{Go to table of contents}[content]}
+\midaligned{\button{Exit}[ExitViewer]}
+\stoptext \ No newline at end of file
diff --git a/macros/latex/contrib/chronosys/docchronosys_fr.pdf b/macros/latex/contrib/chronosys/docchronosys_fr.pdf
new file mode 100644
index 0000000000..c735f33541
--- /dev/null
+++ b/macros/latex/contrib/chronosys/docchronosys_fr.pdf
Binary files differ
diff --git a/macros/latex/contrib/chronosys/docchronosys_fr.tex b/macros/latex/contrib/chronosys/docchronosys_fr.tex
new file mode 100644
index 0000000000..dfa6d90f75
--- /dev/null
+++ b/macros/latex/contrib/chronosys/docchronosys_fr.tex
@@ -0,0 +1,708 @@
+% This is is the code for the french documentation of the `chronosys' package.
+%
+% The maintener of this work is Mathieu Long.
+% email : mlong.tex@hotmail.fr
+% the `chronosys' package consists in the 9 files :
+% -- `docchronosys_en.tex' and `docchronosys_en.pdf' (english manual)
+% -- `docchronosys_fr.tex' and `docchronosys_fr.pdf' (french manual)
+% -- README
+% -- `chronosys.tex' (file for plain TeX)
+% -- `chronosyschr.tex' (main file of the `chronosys' package)
+% -- `chronosys.sty' (file for LaTeX)
+% -- `x-chronosys.tex' (file for ConTeXt)
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Mathieu Long.
+%
+\starttext
+\enableregime[utf8]
+\setupinteraction[title=Chronosys - Documentation, author=Mathieu Long, title=Documentation de chronosys -français-,
+ subtitle=Dessinez des frises chronologiques]
+\setupcolors[state=start]
+\unless\ifdefined\XeTeXpicfile \unless\ifdefined\directlua
+\setupoutput[pdftex]
+\fi\fi
+\setupheadertexts%
+[chapter][section]
+\setupheader[text][style=\ss]
+\mainlanguage[fr]
+\setupbodyfont[14pt,regular]
+\setuppapersize[B4]
+\setupinteraction[state=start,color=middlered]
+\setupcapitals[sc=yes]
+\setupindenting[yes,20pt]
+\setuppagenumbering[location={bottom,right},left=--~]
+\definetyping[typingTEX][option=TEX]
+\setuptyping[typingTEX][color=darkblue]
+\setupwhitespace[big]
+\setupcolors[state=start]
+\useURL[MetaPost_TUG][http://www.tug.org/docs/metapost/mpman.pdf]
+\useURL[Tikz_CTAN][http://mirror.ctan.org/graphics/pgf/base/doc/generic/pgf/pgfmanual.pdf]
+
+\unprotect
+\placebookmarks[chapter,section,subsection][chapter,section]
+\usemodule[chronosys]
+\startstandardmakeup
+\switchtobodyfont[16pt]
+\midaligned{Chronosys}
+\midaligned{Réalisez des frises chronologiques !}
+\bigskip
+\startchronology[width=\hsize,height=7ex,stopyear=\numexpr\year+38\relax,startyear=1982,color=darkgreen,dates=true]
+\chronoevent[textwidth=7cm]{2011}{Création de \type{chronosys}}
+\stopchronology
+\bigskip\bigskip
+\midaligned{Mathieu \sc Long}
+\midaligned{\color[darkgreen]mlong.tex@hotmail.fr}
+\stopstandardmakeup
+\completecontent[level=subsection,interaction=pagenumber]
+
+\startmode[mkiv]
+\def\METAPOST{MetaPost}
+\stopmode
+
+\def\HeadTitle#1#2%
+{\hbox to \hsize
+{ \vbox{\hrule\par\noindent\vrule height1.15cm depth0pt\leaders\hrule\hskip10pt \lower5pt\vbox{\hbox{ #1\hskip10pt#2 }}\leaders\hrule\hfill\vrule height1.15cm depth0pt}
+}}
+\setuphead[chapter][command=\HeadTitle]
+\unprotect
+\parskip 1cm
+\chapter{Introduction}
+
+\type{Chronosys} est distribué sous licence LaTeX Project Public Licence. Il utilise l'extension \type{tikz}\footnote{pour plus d'informations sur \type{tikz}, voir \from[Tikz_CTAN]} pour réaliser les dessins de frises. Il nécessite l'utilisation de \ETEX. Ce package fournit des commandes pour la création de frises chronologiques.
+\blank
+
+Le fichier est actuellement en version \unprotect\catcode`\@=11\relax\chron@sysversion , d'autres versions seront susceptibles de venir par la suite.
+\bigskip
+Il est recommandé de ne pas charger le fichier \type{color.tex} lors de son utilisation en plain \TeX.
+\bigskip
+
+\type{Chronosys} se charge de la façon habituelle selon votre format~:
+\startitemize[4]
+\item \tex{usemodule[chronosys]} pour \CONTEXT.
+\item \tex{usepackage{chronosys}} pour \LaTeX.
+\item \tex{input chronosys} pour plain \TeX.
+\stopitemize
+
+\subject{Historique des mises à jour}
+\startitemize[2]
+\item 1.10 :
+ajout de la possibilité de modifier l'alignement des frises sur la page, de modifier la largeur des textes de commentaire des
+événements, meilleur support des événements placés au-dessus de la frise, ajout de la possibilité de colorer le fond des textes des événements et périodes.
+\item 1.15 : ajout de la possibilité de créer ses propres nouvelles commandes, de graduer automatiquement les frises, changer l'alternance de couleurs
+des périodes et corrige quelques problèmes de compatibilité.
+\item 1.2 (version actuelle) : réduit l'utilisation du module \type{tikz} au minimum possible, retire la limitation de l'impossibilité
+de changer la valeur par défaut de \type{textwidth}. Sous \CONTEXT, ajout de la possibilité d'utiliser \METAPOST\footnote{pour plus d'informations sur \METAPOST, voir \from[MetaPost_TUG]} à la place de \type{tikz} (et
+réciproquement, de réutiliser \type{tikz} à la place de \METAPOST{}) via les commandes \tex{chronoswitchtomodeMP} et \tex{chronoswitchtomodeTikz}~; sous
+la version Mark IV utilisation de \METAPOST{} par défaut.
+
+\stopitemize
+
+\blank
+
+\hairline
+Je tiens à remercier Gonçalo {\sc Pereira} pour son idée de colorer l'arrière-fond des textes des périodes et événements en blanc, afin qu'il ne soit pas mélangés avec d'autres éléments de la frise, tels des traits verticaux.
+
+\blank
+\hrule
+
+\chapter{Première utilisation}
+
+\section{Fonction principale : \tex{startchronology}}
+
+La macro \tex{startchronology}\index{startchronology} est la première à retenir\footnote{Il existe aussi \tex{begin}\arg{chronology} et \tex{end}\arg{chronology} pour \LaTeX}~: elle prépare la frise chronologique. Voici sa structure :
+
+
+
+\startalignment[middle]
+\starttypingTEX
+\startchronology[...=...]
+\stoptypingTEX
+\stopalignment
+\leftaligned{\switchtobodyfont[12.4pt] On se reportera à \in[startchronologyoptions] pour connaître les différentes options}
+\blank[small]
+\noindent La suivante à retenir est \tex{stopchronology}\index{stopchronology}\footnote{ou \tex{end}\arg{chronology}}, elle termine le tout :
+
+\startalignment[middle]
+\starttypingTEX
+\stopchronology
+\stoptypingTEX
+\stopalignment
+ Voyons maintenant le résultat~:
+
+\starttypingTEX
+\startchronology
+\stopchronology
+\stoptypingTEX
+
+\startchronology
+\stopchronology
+\bigskip
+Une première observation~: par défaut, d'une part la frise occupe toute la largeur de la page, d'autre part elle place au début et à la fin l'année {\os 0} et
+l'année courante ({\os\number\year} lors de la compilation de ce document). Ces dates sont les dates de début et de fin de
+la frise, dates par rapport auxquelles \type{chronosys} comparera les événements et périodes donnés (voir \in[event] et \in[period]).
+\blank[small] Maintenant voyons comment rajouter des événements sur la frise.
+
+\section[event]{Les événements : \tex{chronoevent}}
+
+Il est possible de rajouter des événements sur la frise chronologique via \tex{chronoevent}\index{chronoevent}~:
+
+
+\startalignment[middle]
+\starttypingTEX
+\chronoevent[...=...]{1.}{2.}
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC \color[darkblue]\tt...=...\NC arguments optionnels (voir \in[eventoptions])\NC\NR
+\NC \color[darkblue]1. \NC date ({\em nombre})\NC\NR
+\NC \color[darkblue]2. \NC commentaire \NC\NR
+\stoptabulate
+
+ Cette commande prend deux arguments~: le premier est la date\footnote{voir \in[eventnewdate] pour plus de détails sur la façon de spécifier la date} et le second est le texte relatif à cet événement.
+
+\blank[small]
+Voyons un exemple.
+\starttypingTEX
+\startchronology
+\chronoevent{1977}{Création de \TeX}
+\stopchronology
+\stoptypingTEX
+\startchronology
+\chronoevent{1977}{Création de \TeX}
+\stopchronology
+\bigskip
+L'événement a été placé entre {\os 0} et {\os\the\year}, proportionnellement en fonction de l'écart entre {\os0}, {\os1977} et {\os\the\year}. Il est également possible de préciser plusieurs événements~:
+
+\starttypingTEX
+\startchronology
+\chronoevent{476}{Chute de l'empire romain}
+\chronoevent{1492}{Découverte de l'Amérique}
+\chronoevent{1969}{Premiers pas sur la Lune}
+\stopchronology
+\stoptypingTEX
+
+\switchtobodyfont[9pt]
+\startchronology
+\chronoevent{476}{Chute de l'empire romain}
+\chronoevent{1492}{Découverte de l'Amérique}
+\chronoevent{1969}{\quad Premiers pas sur la Lune}
+\stopchronology
+\switchtobodyfont[14pt]
+\bigskip Note : la taille d'écriture a été réduite lors de la création de cette frise afin que les textes ne se chevauchent pas~; une meilleure méthode sera donnée plus loin (voir \in[eventoptions]).\blank
+
+\type{Chronosys} ne produira pas d'erreur si un événement a une date en dehors de l'intervalle de la frise, mais il sera ignoré. La personnalisation des frises pour modifier les dates de début et de fin de frise sera vue plus loin (voir \in[startchronologyoptions]).
+
+\section[period]{Les périodes : \tex{chronoperiode}}
+
+Il est également possible de placer toute une période (ou plusieurs\footnote{si plusieurs périodes se chevauchent sur la frise, la dernière donnée écrase l'autre}) sur la frise grâce à \tex{chronoperiode}\index{chronoperiode} :
+
+\startalignment[middle]
+\starttypingTEX
+\chronoperiode[...=...]{1.}{2.}{3.}
+\stoptypingTEX
+\stopalignment
+\starttabulate[|l|l|]
+\NC \tt\color[darkblue]...=...\NC options (voir \in[periodoptions])\NC\NR
+\NC \color[darkblue]1. \NC date de début ({\em nombre})\NC\NR
+\NC \color[darkblue]2. \NC date de fin ({\em nombre}) \NC\NR
+\NC\color[darkblue]3. \NC commentaire \NC\NR
+\stoptabulate
+
+\starttypingTEX
+\startchronology
+\chronoperiode{1000}{1999}{2$^{\rm è}$ millénaire}
+\chronoperiode{192}{476}{Bas-Empire romain}
+\chronoevent{1969}{Premiers pas sur la Lune}
+\stopchronology
+\stoptypingTEX
+\switchtobodyfont[9pt]
+\startchronology
+\chronoperiode{1000}{1999}{2\high{è} millénaire}
+\chronoperiode{192}{476}{Bas-Empire romain}
+\chronoevent{1969}{\quad Premiers pas sur la Lune}
+\stopchronology
+\switchtobodyfont[14pt]
+\blank
+Note : sur la période de {\os1000} à {\os1999} de fond bleu, le trait vertical marquant la position de l'événement sur la frise est visible. Il est possible de le désactiver (voir \in[eventoptions]), mais s'il est souhaité il est recommandé de placer les événements après les périodes afin qu'ils ne soient pas écrasés.
+
+La couleur a automatiquement été placée afin de rendre bien visible la période sur la frise, ainsi que les dates (voir \in[periodoptions] pour les désactiver) et le
+texte de commentaire. La couleur automatique alterne entre cinq couleurs : bleu, rouge, cyan, violet, jaune, sauf si la frise est d'une de ces couleurs, dans
+ce cas cette couleur est ignorée. Il est également possible de spécifier la couleur de la période (voir \in[periodoptions]).
+
+\section[chronograduation]{Graduation automatique : \tex{chronograduation}}
+
+Pour graduer automatiquement la frise, utilisez \tex{chronograduation}\index{chronograduation}.
+
+\startalignment[middle]
+\starttypingTEX
+\chronograduation[style][...=...]{1.}
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC \color[blue] \type{style} \NC \type{periode} \em ou \type{event}\FR
+\NC \color[blue] ...=... \NC options (voir \in[chronoperiodsoptions] et \in[chronoeventsoptions]) \FR
+\NC \color[blue] 1. \NC intervalle ({\em nombre})\FR
+\stoptabulate
+
+\starttypingTEX
+\startchronology
+\chronograduation{100}
+\stopchronology
+\startchronology
+\chronograduation[periode][dateselevation=0pt]{100}
+\stopchronology
+\stoptypingTEX
+\startchronology
+\chronograduation[][]{100}
+\stopchronology
+\startchronology
+\chronograduation[periode][dateselevation=\z@]{100}
+\stopchronology
+
+\chapter[Personnalisation]{Personnalisation des frises}
+
+\section{\tex{startchronology}}
+\subsection{Exemple}
+\tex{startchronology} accepte des arguments optionnels spécifié entre crochets.
+Voyons un exemple :
+
+\starttypingTEX
+\startchronology
+[startyear=-800,stopyear=500,
+color=darkblue,height=7ex,width=\hsize]
+\chronoevent{-753}{Fondation de Rome}
+\stopchronology
+\stoptypingTEX
+\startchronology
+[startyear=-800,stopyear=500,color=darkblue,height=7ex,width=\hsize]
+\chronoevent{-753}{Fondation de Rome}
+\stopchronology
+\bigskip
+Le style de la frise ainsi que les années de début et de fin ont été modifiées~.
+\subsection{Options possibles}
+Les différentes options de \tex{startchronology}\index{startchronology} sont les suivantes~:
+\startitemize[2]
+\head \type{startyear}\index{startyear} :\par année de début de la frise chronologique. Elle doit être un \type{nombre} valide. Elle vaut par défaut {\os0}
+\head \type{stopyear}\index{stopyear} :\par année de fin de la frise chronologique. Elle doit aussi être un \type{nombre} valide. Elle vaut par défaut l'année en cours.
+\head \type{color}\index{color} :\par couleur de la frise. Elle doit être une \type{couleur} valide. Elle est noire par défaut.
+\head \type{height}\index{height} :\par hauteur de la frise. Elle doit être une \type{dimension} valide et vaut \type{0.7pc} par défaut.
+\head \type{width}\index{width} :\par largeur de la frise. Elle doit être une \type{dimension} valide et vaut \tex{hsize}\footnote{\tex{textwidth} en \LaTeX} par défaut.
+\head \type{datesstyle}\index{datessyle} :\par style à appliquer aux dates. Ce doit être une \type{commande} (pouvant prendre un argument entre accolades, qui sera chacune des deux dates), est vide par défaut.
+\head \type{dateselevation}\index{dateselevation} :\par hauteur des dates par rapport à la frise, elle doit être une \type{dimension} valide et vaut \type{20pt} par défaut.
+\head \type{startdate}\index{startdate} :\par valeur booléenne qui indique si la date de début doit être placée. Elle doit être soit \type{true} soit \type{false} et vaut \type{true} par défaut.
+\head \type{stopdate}\index{stopdate} :\par valeur booléenne qui indique si la date de fin doit être placée. Elle doit être soit \type{true} soit \type{false} et vaut \type{true} par défaut.
+\head \type{dates}\index{dates} :\par valeur booléenne qui indique si les deux dates doivent être placées. Elle doit être soit \type{true} soit \type{false} et vaut \type{true} par défaut.
+\head\type{arrow}\index{arrow} :\par valeur booléenne qui indique si une pointe de flèche doit être placée en fin de frise. Elle doit être soit \type{true} soit \type{false} et vaut \type{true} par défaut.
+\head \type{arrowheight}\index{arrowheight} :\par hauteur de la pointe de flèche. Elle doit être une \type{dimension} valide et est identique à la hauteur de la frise par défaut.
+\head \type{arrowwidth}\index{arrowwidth} :\par largeur de la pointe de la flèche. Elle empiète sur la largeur totale (\type{width}) de la frise. Elle doit être une \type{dimension} valide et vaut 1/10\high{è} de la largeur totale (\type{width}) par défaut.
+\head \type{arrowcolor}\index{arrowcolor} :\par couleur de la pointe de la flèche. Elle doit être une \type{couleur} reconnue par l'extension tikz. Elle est identique à la couleur de la frise par défaut.
+\head \type{box}\index{box} :\par valeur booléenne qui indique si la frise doit être repassée d'un trait noir. Elle doit être soit \type{true} soit \type{false} et vaut \type{false} par défaut.
+\head \type{align} \index{align} :\par alignement de la frise sur la page. Il peut être soit \type{center} pour centré, soit \type{left} pour aligné à gauche soit \type{right} pour aligné à droite. Il vaut \type{center} par défaut.
+
+\stopitemize
+\subsection[startchronologyoptions]{Résumé}
+\placetable[here][fig:startchronologyoptions]{Options de \type{startchronology}}
+\starttable[|l|c|l|]
+\HL\VL\use{3}\ReFormat[cB]{\tex{startchronology[}\em ...=...\type{]}}\VL\SR
+\VL\type{startyear} \NC=\NC\type{<nombre>}
+\VL\FR\VL
+\type{stopyear} \NC=\NC\type{<nombre>}\VL\FR
+\VL
+\type{color} \NC=\NC\type{<couleur>}\VL\FR
+\VL
+\type{height} \NC=\NC\type{<dimension>}\VL\FR
+\VL
+\type{width} \NC=\NC\type{<dimension>}\VL\FR
+\VL
+\type{datesstyle} \NC=\NC\type{<commande>} {\em ou} \type{<commande#1>}\VL\FR
+\VL
+\type{dateselevation} \NC=\NC\type{<dimension>}\VL\FR
+\VL
+\type{startdate} \NC=\NC\type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{stopdate} \NC=\NC\type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{dates} \NC=\NC\type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{arrow} \NC=\NC\type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{arrowheight} \NC=\NC\type{<dimension>}\VL\FR
+\VL\type{arrowwidth} \NC=\NC\type{<dimension>}\VL\FR
+\VL\type{arrowcolor} \NC=\NC\type{<couleur>}\VL\FR
+\VL\type{box} \NC=\NC\type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{align} \NC =\NC \type{<right>} {\em ou} \type{<center>} {\em ou} \type{<left>} \VL\FR\HL
+\stoptable
+
+\page[yes]
+
+\section{\tex{chronoperiode}}
+\subsection{Exemple}
+Tout comme \tex{startchronology}, \tex{chronoperiode} admet des arguments optionnels pour la personnalisation de la période.
+\starttypingTEX
+\startchronology[startyear=-800,stopyear=500,
+color=darkgreen, height=3cm]
+\chronoperiode[color=orange,bottomdepth=1cm, topheight=2cm,
+textstyle=\it, dateselevation=-15pt, ifcolorbox=false,
+box=true]{-753}{-509}{Période royale romaine}
+\chronoperiode[color=cyan,startdate=false, textstyle=\bf,
+textdepth=30pt, bottomdepth=1cm, topheight=2cm,
+ifcolorbox=false, dateselevation=-15pt,
+box=true]{-509}{-27}{République romaine}
+\stopchronology
+\stoptypingTEX
+\startchronology[startyear=-800,stopyear=500,color=darkgreen, height=3cm]
+\chronoperiode[color=orange,bottomdepth=1cm, topheight=2cm, textstyle=\it, dateselevation=-15pt, ifcolorbox=false, box=true]{-753}{-509}{Période royale romaine}
+\chronoperiode[color=cyan,startdate=false, textstyle=\bf,textdepth=30pt, bottomdepth=1cm, topheight=2cm, ifcolorbox=false, dateselevation=-15pt, box=true]{-509}{-27}{République romaine}
+\stopchronology
+
+\subsection{Couleur d'arrière-plan}
+Afin d'éviter que d'éventuels traits verticaux soit superposés avec le texte des périodes sur la frise, \type{chronosys} colorie l'arrière-plan du texte de commentaire en
+blanc par défaut. Il est possible de changer cette couleur ou de désactiver cette colorisation (voir \in[chronoperiodsoptions]).
+
+\subsection{Alternance des couleurs}
+
+Comme vu précédemment, la couleur des périodes alterne par défaut entre bleu, rouge, cyan, violet et jaune. Il est possible de modifier ces couleurs
+grâce à \crlf\tex{chronoperiodecoloralternation}\index{chronoperiodecoloralternation}.
+
+\startalignment[middle]
+\starttypingTEX
+\chronoperiodecoloralternation{1.}
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC\color[darkblue] 1. \NC couleurs ({\em\type{couleur}, \type{couleur},... \type{couleur}})\FR
+\stoptabulate
+
+\blank[big]
+
+Exemple d'utilisation :
+
+\starttypingTEX
+\chronoperiodecoloralternation{orange, darkgreen,
+ violet, purple, cyan}
+\startchronology
+\chronoperiode[startdate=false]{0}{500}{}
+\chronoperiode[startdate=false]{500}{1000}{}
+\chronoperiode[startdate=false]{1000}{1500}{}
+\stopchronology
+\stoptypingTEX
+
+\restartchronoperiodecolor
+\startchronology
+\chronoperiodecoloralternation{orange, darkgreen,
+ violet, purple, cyan}
+\chronoperiode[startdate=false]{0}{500}{}
+\chronoperiode[startdate=false]{500}{1000}{}
+\chronoperiode[startdate=false]{1000}{1500}{}
+\stopchronology
+
+Enfin il est également possible de restaurer l'alternance des couleurs, au début ou bien sur une couleur précise grâce à
+\tex{restartchronoperiodecolor}\index{restartchronoperiodecolor}.
+
+\startalignment[middle]
+\starttypingTEX
+\restartchronoperiodecolor[...]
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC\color[darkblue] ... \NC nom d'une couleur de l'alternance automatique ({\em couleur})\FR
+\stoptabulate
+
+\subsection[chronoperiodsoptions]{Différentes options}
+
+Les différentes options de \tex{chronoperiode}\index{chronoperiode} sont listées ici~:
+
+\startitemize[2]
+\head \type{startdate}\index{startdate} :\par valeur booléenne. Elle indique si la date de départ doit être affichée, et doit être soit \type{true} soit \type{false}. Elle vaut \type{true} par défaut.
+\head \type{stopdate}\index{stopdate} :\par valeur booléenne. Elle indique si la date de fin doit être affichée, et doit être soit \type{true} soit \type{false}. Elle vaut \type{true} par défaut.
+\head \type{dates}\index{dates} :\par valeur booléenne. Elle indique si les dates de début et de fin doivent être affichées, et doit être soit \type{true} soit \type{false}. Elle vaut \type{true} par défaut.
+\head \type{datesstyle}\index{datesstyle} : \par définit les style à appliquer aux dates. Elle doit être une \type{commande} ou \type{commande#1} et est vide par défaut.
+\head \type{textstyle}\index{textstyle} : \par définit les style à appliquer au texte de commentaire. Elle doit être une \type{commande} ou \type{commande#1} et est vide par défaut.
+\head \type{color}\index{color} :\par couleur de la période sur la frise. Ce doit être une \type{couleur} valide. Elle alterne entre bleu, rouge, cyan, violet et jaune par défaut.
+\head \type{dateselevation}\index{dateselevation} :\par hauteur des dates par rapport à la frise. Elle doit être une \type{dimension} valide et vaut \type{0pt} par défaut.
+\head \type{textdepth}\index{textdepth} :\par profondeur du texte par rapport à la frise. Elle doit être une \type{dimension} valide et vaut {15pt} par défaut.
+\head \type{ifcolorbox} \index{ifcolorbox}: \par valeur booléenne qui indique si le fond du texte de commentaire de la période doit être colorié. Elle doit valoir soit \type{true} soit \type{false} et vaut \type{true} par défaut.
+\head \type{colorbox}\index{colorbox} : \par couleur du fond du commentaire. Ce doit être une \type{couleur} valide et vaut \type{white} par défaut.
+\head \type{topheight}\index{topheight} : \par hauteur du haut de la période sur la frise. Ce doit être une \type{dimension} valide et est égale à la \type{hauteur de la frise} par défaut.
+\head \type{bottomdepth}\index{bottomdepth} : \par hauteur du bas de la période sur la frise. Ce doit être une \type{dimension} valide et est égale à la \type{0pt} par défaut.
+\stopitemize
+
+\subsection[periodoptions]{Résumé}
+
+\placetable[here][fig:chronoperiodeoptions]{Options de \type{chronoperiode}}
+\starttable[|l|c|l|]
+\HL\VL\use{3}\ReFormat[cB]{\tex{chronoperiode[}\em ...=...\type{]{...}{...}{...}}}\VL\SR
+\VL\type{startdate} \NC=\NC\type{<true>} {\em ou} \type{<false>}\VL\LR
+\VL\type{stopdate} \NC=\NC\type{<true>} {\em ou} \type{<false>}\VL\LR
+\VL\type{dates} \NC=\NC\type{<true>} {\em ou} \type{<false>}\VL\LR
+\VL\type{datesstyle} \NC=\NC\type{<commande>} {\em ou} \type{<commande#1>}\VL\LR
+\VL\type{textstyle} \NC=\NC\type{<commande>} {\em ou} \type{<commande#1>}\VL\LR
+\VL\type{color} \NC=\NC\type{<couleur>}\VL\LR
+\VL\type{dateselevation} \NC=\NC\type{<dimension>}\VL\LR
+\VL\type{textdeph} \NC=\NC\type{<dimension>}\VL\LR
+\VL\type{ifcolorbox} \NC =\NC \type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{colorbox} \NC =\NC \type{<couleur>}\VL\FR
+\VL\type{topheight} \NC =\NC \type{<dimension>}\VL\FR
+\VL\type{bottomdepth} \NC =\NC \type{<dimension>}\VL\FR\HL
+\stoptable
+
+\section{\tex{chronoevent}}
+
+
+De même que \tex{startchronology} et \tex{chronoperiode}, \tex{chronoevent} accepte lui-aussi un argument optionnel entre crochets qui contient les options de personnalisation.
+\subsection{Exemple}
+
+\starttypingTEX
+\def\MyIcon{{\color{orange}\vrule height5pt width5pt}}
+\startchronology[startyear=-800,stopyear=500,
+color=darkgreen,height=7ex]
+\chronoevent[textstyle=\bf,
+datesstyle=\it,datesseparation=/,
+conversionmonth=false,icon=\MyIcon,
+year=false, textwidth=5cm]{15/3/-44}
+{\qquad Ides de mars~; \endgraf
+assassinat de Jules César}
+\stopchronology
+\stoptypingTEX
+\def\MyIcon{{\color[orange]\vrule height5pt width5pt\relax}}
+\startchronology[startyear=-800,stopyear=500,color=darkgreen,height=7ex]
+\chronoevent[textstyle=\bf,datesstyle=\it,datesseparation=/,conversionmonth=false,icon=\MyIcon,year=false, textwidth=5cm]{15/3/-44}{\qquad Ides de mars~; \hfill\null\penalty-10000 assassinat de Jules César}
+\stopchronology
+
+\subsection{Spécificités}
+\subsubsection{Couleur d'arrière-plan}
+De même que pour les périodes, \type{chronosys} colorie le fond des textes et dates des événements en blanc, afin de ne pas obtenir ceci :
+\starttypingTEX
+\startchronology
+\chronoevent{1500}{Texte A}
+\chronoevent{1525}{Texte B}
+\stopchronology
+\stoptypingTEX
+\startchronology
+\chronoevent{1500}{Texte A}
+\chronoevent[markdepth=70pt,ifcolorbox=false]{1525}{Texte B}
+\stopchronology
+mais bien ceci :
+\startchronology
+\chronoevent[markdepth=70pt]{1525}{Texte B}
+\chronoevent{1500}{Texte A}
+\stopchronology
+
+Vous devez placer les événements dans l'ordre du plus éloigné de la frise au plus proche. Vous pouvez bien sûr changer la couleur par défaut ou désactiver ceci (voir \in[chronoeventsoptions]).
+
+\subsubsection[eventnewdate]{Une nouvelle façon d'exprimer la date}
+
+Il est possible de préciser la date précise d'un événement toujours en utilisant \tex{chronoevent}\index{chronoevent}. Nous avons vu que taper
+\tex{chronoevent}\arg{-44}\arg{Assassinat de César} permettait de spécifier l'année d'un événement, et toujours sur le même principe nous allons voir comment spécifier
+le mois ou le jour d'un événement. Il faut pour cela adopter la notation \type{<numéro du jour>/<numéro du mois>/année}, mais seule l'année est obligatoire.
+
+Ainsi il est possible de donner uniquement le mois et l'année, juste l'année comme nous l'avons vu ou encore le jour, le mois et l'année. Le numéro du mois est automatiquement transformé en le nom du mois correspondant en français. Il est possible de désactiver cette conversion (voir \in[eventoptions]). La commande de conversion est définie ainsi :
+\starttypingTEX
+\def\chron@selectmonth#1{\ifcase#1\or janvier\or f\'evrier\or
+mars\or avril\or mai\or juin\or juillet\or
+ao\^ut\or septembre\or octobre\or novembre\or
+d\'ecembre\fi}
+\stoptypingTEX
+
+Pour changer la langue, il suffit de redéfinir la commande suivant le même modèle.
+\bigskip
+Voyons un exemple :
+\starttypingTEX
+\startchronology[startyear=-44,
+stopyear=-43,color=darkgreen,height=7ex]
+\chronoevent{15/03/-44}
+{Assassinat de César}
+\stopchronology
+\stoptypingTEX
+\startchronology[startyear=-44,stopyear=-43,color=darkgreen,height=7ex]
+\chronoevent{15/03/-44}{Assassinat de César}
+\stopchronology
+\blank
+
+\subsection[chronoeventsoptions]{Options possibles}
+
+Voici la liste des options possibles\index{chronoevent}.
+\startitemize[2]
+\head \type{barre}\index{barre} :\par valeur booléenne qui indique si une barre noire verticale doit être placée sur la frise à l'endroit de l'événement. Elle doit valeur \type{true} ou \type{false} et vaut \type{true} par défaut.
+\head \type{date}\index{date} :\par valeur booléenne qui indique si la date de l'événement doit être placée. Elle doit valeur \type{true} ou \type{false} et vaut \type{true} par défaut.
+\head \type{conversionmonth}\index{conversionmonth} :\par valeur booléenne qui indique si le mois de l'événement doit être transformé en nom de mois. Elle doit valeur \type{true} ou \type{false} et vaut \type{true} par défaut.
+\head \type{mark}\index{mark} :\par valeur booléenne qui indique si une barre verticale en-dessous de la frise à l'endroit de l'événement doit être placée. Elle doit valeur \type{true} ou \type{false} et vaut \type{true} par défaut.
+\head \type{year}\index{year} :\par valeur booléenne qui indique si l'année de l'événement doit être placée. Elle doit valeur \type{true} ou \type{false} et vaut \type{true} par défaut.
+\head \type{icon}\index{icon} :\par symbole à rajouter sur la frise à l'endroit de l'événement. Ce peut être du texte ou une commande. Il est vide par défaut.
+\head \type{markdepth}\index{markdepth} : \par profondeur du texte par rapport à la frise et désigne aussi la profondeur de la barre verticale en-dessous de la frise. Elle doit
+être une \type{dimension} valide et vaut \type{10pt} par défaut.
+\head \type{iconheight}\index{iconheight} :\par hauteur de l'icône sur la frise. Elle doit être une \type{dimension} valide et vaut la moitié de la hauteur de la frise par défaut.
+\head \type{textstyle}\index{textstyle} :\par style à appliquer au texte de commentaire. Ce doit être une \type{commande} ou \type{commande#1}.
+\head \type{datesseparation}\index{datesseparation} :\par symbole de séparation entre chaque partie de la date, si le mois ou le jour est donné. Ce peut être une commande ou du texte et correspond à une espace par défaut.
+\head \type{datestyle}\index{datestyle} :\par style à appliquer à l'ensemble de la date, symboles de séparation compris. Ce doit être une \type{commande} ou \type{commande#1}.
+Elle est vide par défaut.
+\head \type{datesstyle}\index{datesstyle} :\par style à appliquer à chaque élément de la date séparément, symbole de séparations exclus. Ce doit être une \type{commande} ou \type{commande#1}. Elle est vide par défaut.
+\head \type{ifcolorbox} \index{ifcolorbox}: \par valeur booléenne qui indique si le fond du texte de commentaire et de la date de l'événement doivent être coloriés. Elle doit valoir soit \type{true} soit \type{false} et vaut \type{true} par défaut.
+\head \type{colorbox}\index{colorbox} : \par couleur du fond du commentaire et de la date. Ce doit être une \type{couleur} valide et vaut \type{white} par défaut.
+\head \type{textwidth}\index{textwidth} :\par
+largeur du texte de commentaire sur la page. Ce doit être une \type{dimension} valide.
+\stopitemize
+
+\subsection[eventoptions]{Résumé}
+
+\placetable[here][fig:chronoeventoptions]{Options de \type{chronoevent}}
+\starttable[|l|c|l|]
+\HL\VL\use{3}\ReFormat[cB]{\tex{chronoevent[}\em ...=...\type{]{...}{...}}}\VL\SR
+\VL\type{barre}\NC=\NC \type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{date}\NC=\NC \type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{conversionmonth}\NC=\NC \type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{mark}\NC=\NC \type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{icon}\NC=\NC \type{<séquence de texte>} {\em ou} \type{<commande>} \bf\dots\VL\FR
+\VL\type{datesseparation}\NC=\NC \type{<séquence de texte>} {\em ou} \type{<commande>} \bf\dots\VL\FR
+\VL\type{markdepth}\NC=\NC \type{<dimension>}\VL\FR
+\VL\type{iconheight}\NC=\NC \type{<dimension>}\VL\FR
+\VL\type{textstyle}\NC=\NC \type{<commande>} {\em ou} \type{<commande#1>}\VL\FR
+\VL\type{datestyle}\NC=\NC \type{<commande>} {\em ou} \type{<commande#1>}\VL\FR
+\VL\type{datesstyle}\NC=\NC \type{<commande>} {\em ou} \type{<commande#1>}\VL\FR
+\VL\type{ifcolorbox} \NC =\NC \type{<true>} {\em ou} \type{<false>}\VL\FR
+\VL\type{colorbox} \NC =\NC \type{<couleur>}\VL\FR
+\VL\type{textwidth} \NC =\NC \type{<dimension>}\VL\FR\HL
+\stoptable
+
+\page[yes]
+\chapter[permanentchanges]{Changements permanents}
+\section[definecommands]{Créer de nouvelles commandes}
+
+Les commandes \tex{definechronoevent}\index{definechronoevent} et \tex{definechronoperiode}
+\index{definechronoperiode} permettent de définir de nouvelles commandes pour placer respectivement
+des événements et des périodes.
+
+\startalignment[middle]
+\starttypingTEX
+\definechronoperiode{1.}[...=...]
+\definechronoevent{1.}[...=...]
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC \color[blue] 1. \NC nom pour définir la nouvelle commande \FR
+\NC \color[blue] ...=... \NC options du type de commande définie(voir \in[Personnalisation])\FR
+\stoptabulate
+
+\blank
+Note : pour \CONTEXT, la syntaxe est
+
+\startalignment[middle]
+\starttypingTEX
+\definechronoperiode[1.][...=...]
+\definechronoevent[1.][...=...]
+\stoptypingTEX
+\stopalignment
+
+Les commandes \tex{chrono<nom de la commande>} sont désormais définies. Voyons un exemple :
+
+\starttypingTEX
+\definechronoperiode{MaPeriode}[color=yellow, textstyle=\it]
+\definechronoevent{MonEvent}[textstyle=\it, barre=false]
+\startchronology[color=darkgreen]
+\chronoMaPeriode{100}{500}{Quelque chose}
+\chronoMonEvent{800}{Autre chose}
+\stopchronology
+\stoptypingTEX
+
+
+\definechronoperiode[MaPeriode] [color=yellow, textstyle=\it]
+\definechronoevent[MonEvent][textstyle=\it, barre=false]
+\startchronology[color=darkgreen]
+\chronoMaPeriode{100}{500}{Quelque chose}
+\chronoMonEvent{800}{Autre chose}
+\stopchronology
+
+\section[setupdefaultvalues]{Modifier les valeurs par défaut}
+Il est également possible de changer les valeurs par défaut de chaque commande en utilisant \tex{setupchronology}, \tex{setupchronoevent} et
+\tex{setupchronoperiode}.\index{setupchronology}\index{setupchronoperiode} \index{setupchronoevent} Chacu\-ne de ces commandes prennent les mêmes
+options que nous avons vu auparavant respectivement.
+
+\startalignment[middle]
+\starttypingTEX
+\setupchrono<text>[...]{1.}
+\stoptypingTEX
+\stopalignment
+
+\starttabulate[|l|l|]
+\NC \color[blue] <text> \NC \type{periode} \em ou \type{event} ou \type{logy} ou \type{graduation}\FR
+\NC \color[blue] ...\NC nom de la commande à personnaliser (sauf pour \tex{setupchronology}, et \FR
+\NC\NC pour \tex{setupchronograduation} il s'agit du style de graduation ; voir \in[definecommands])\FR
+\NC \color[blue] 1. \NC options (voir \in[Personnalisation])\FR
+\stoptabulate
+
+
+
+Note : de même pour \CONTEXT, la syntaxe est :
+
+\startalignment[middle]
+\starttypingTEX
+\setupchrono<text>[...][1.]
+\stoptypingTEX
+\stopalignment
+
+L'option \type{nom de la commande à personnaliser} n'est disponible que pour \crlf\tex{setupchronoevent} et \tex{setupchronoperiode}, et dans le cas de \tex{setupchronograduation} elle correspond au style de graduation (\type{event} ou \type{periode}).
+
+Si elle n'est pas donnée, les modifications affecteront \tex{chronoperiode} et \tex{chronoevent}, sinon elles affecteront la commande donnée en
+option.
+
+Ainsi, on peut avoir :
+\starttypingTEX
+\definechronoperiode{MaPeriode} [color=yellow, textstyle=\it]
+\setupchronology{startyear=1000,color=darkblue,
+stopdate=false}
+\setupchronoperiode{color=darkgreen}
+\setupchronoevent{textstyle=\it}
+\setupchronoperiode[MaPeriode]{color=red}
+\setupchronograduation[event]{markdepth=2cm}
+\startchronology
+\chronograduation{250}
+\chronoperiode{1050}{1450}{Quelque chose}
+\chronoevent{1600}{autre chose}
+\chronoMaPeriode {1800}{1900}{Encore autre chose}
+\stopchronology
+\stoptypingTEX
+
+\setupchronology[startyear=1000,color=darkblue,stopdate=false]
+\setupchronoperiode[color=darkgreen]
+\setupchronoevent[textstyle=\it]
+\setupchronoperiode[MaPeriode][color=red]
+\setupchronograduation[event][markdepth=2cm]
+\startchronology
+\chronograduation{250}
+\chronoperiode{1050}{1450}{Quelque chose}
+\chronoevent{1600}{autre chose}
+\chronoMaPeriode {1800}{1900}{Encore autre chose}
+\stopchronology
+
+Si vous souhaitez reprendre l'alternance automatique des couleurs des périodes, utilisez
+
+\startalignment[middle]
+\starttypingTEX
+\setupchronoperiode{color=\chronoperiodcolor}
+\stoptypingTEX
+\stopalignment
+\catcode`\@=11
+Ainsi, on réobtient
+\setupchronoperiode[color=\chronoperiodcolor]
+\startchronology
+\chronograduation{250}
+\chronoperiode{1050}{1450}{Quelque chose}
+\chronoevent{1600}{autre chose}
+\chronoperiode{1800}{1900}{Encore autre chose}
+\stopchronology
+
+\completeindex
+\midaligned{\button{Aller à la table des matières}[content]}
+\midaligned{\button{Quitter}[ExitViewer]}
+\stoptext \ No newline at end of file
diff --git a/macros/latex/contrib/chronosys/x-chronosys.tex b/macros/latex/contrib/chronosys/x-chronosys.tex
new file mode 100644
index 0000000000..0e647c9173
--- /dev/null
+++ b/macros/latex/contrib/chronosys/x-chronosys.tex
@@ -0,0 +1,127 @@
+% This is is the ConTeXt file for the `chronosys' package.
+%
+% The maintener of this work is Mathieu Long.
+% email : mlong.tex@hotmail.fr
+% the `chronosys' package consists in the 9 files :
+% -- `docchronosys_en.tex' and `docchronosys_en.pdf' (english manual)
+% -- `docchronosys_fr.tex' and `docchronosys_fr.pdf' (french manual)
+% -- README
+% -- `chronosys.tex' (file for plain TeX)
+% -- `chronosyschr.tex' (main file of the `chronosys' package)
+% -- `chronosys.sty' (file for LaTeX)
+% -- `x-chronosys.tex' (file for ConTeXt)
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Mathieu Long.
+%
+% % % %
+%
+%Charger Tikz si MKII ou non si MKIV
+\startnotmode[mkiv]%
+\usemodule[tikz]%
+\stopnotmode
+%
+%CHANGEMENT DES CATCODES
+\catcode`\@=11%
+\catcode`\!=11%
+%
+%DEFINITION DE \!CHR@VERIF
+\def\!chr@verif#1#2{\ifdefined#2\error!message \fi #1#2}%
+%
+%DEFINITION DES SYSTEMES DE COLORISATION DU FOND DES EVENEMENTS ET PERIODE
+\defineframed[chreventframedcolorbox][background=color,backgroundcolor=\!chr@eventcolorbox,frame=off,backgroundoffset=\z@,location=low]%
+\defineframed[chrperiodframedcolorbox][background=color,backgroundcolor=\!chr@periodcolorbox,frame=off,backgroundoffset=\z@,location=low]%
+\let\!chreventcolorbox\chreventframedcolorbox
+\let\!chrperiodcolorbox\chrperiodframedcolorbox
+%
+%CHARGER CHRONOSYSCHR
+\input chronosyschr.tex%
+%
+%READAPTER LA SYNTAXE A CELLE DE CONTEXT
+%
+\def\setupchronology{\dosingleempty\dosetupchronology}%
+\def\dosetupchronology[#1]{\iffirstargument \!chrtraitingargvirgule{#1}{!chrdefault}\fi}%
+%
+\def\setupchronoevent{\def\@@string@a{event}\dodoubleempty\dosetupchronoeventandperiode}%
+\def\dosetupchronoeventandperiode[#1][#2]{\iffirstargument
+\ifsecondargument
+\def\@@string@a{#1}\def\@@string@b{#2}\else\def\@@string@b{#1}\fi \expandafter\!chr@parcoursoptions\@@string@b,\end\fi}%
+%
+\def\setupchronoperiode{\def\@@string@a{periode}\dodoubleempty\dosetupchronoeventandperiode}%
+\def\definechronoperiode{\dosingleempty\dodefinechronoperiode}%
+\def\dodefinechronoperiode[#1]{%
+\iffirstargument
+\def\@@string@a{#1}%
+\!chrverifdefines{%
+\expandafter\expandafter\expandafter\!chrtraitingargvirgule\expandafter\expandafter\expandafter{\csname !chr#1defaultoptions\endcsname}{!chr@period}%
+\!chrtraiteoneargument\dochronoperiode}%
+\if!chrverifdefines
+\expandafter\def\csname !chr#1defaultoptions\endcsname{textdepth=15pt, dates=true,%
+ color=\!chrperiodedef@ultcolor, datesstyle=\relax,%
+ startdate=true, stopdate=true, textstyle=\relax,%
+ dateselevation=0pt, ifcolorbox=true,%
+ colorbox=white, bottomdepth=0pt, topheight=\!chrheight, box=false,%
+ textwidth=\relax}\fi\fi
+\ifnexttoken[{\!chr@defineorsetupoptions}{}}%
+%
+\def\definechronoevent{\dosingleempty\dodefinechronoevent}%
+\!chrverif\def\dodefinechronoevent[#1]{%
+\iffirstargument
+\def\@@string@a{#1}%
+\!chrverifdefines{%
+\expandafter\expandafter\expandafter\!chrtraitingargvirgule\expandafter\expandafter\expandafter{\csname !chr#1defaultoptions\endcsname}{!chr@event}%
+\!chrtraiteoneargument\dochronoevent}%
+\if!chrverifdefines
+\expandafter\def\csname !chr#1defaultoptions\endcsname{barre=true, icon=\relax,%
+markdepth=10pt, textstyle=\relax, mark=true,%
+date=true, datesseparation=\space, conversionmonth=true,%
+datestyle=\relax, datesstyle=\relax, year=true,%
+iconheight=0.5\!chrheight, ifcolorbox=true, colorbox=white,%
+textwidth=\relax}\fi\fi
+\ifnexttoken[{\!chr@defineorsetupoptions}{}}%
+%
+\setupchronoevent[!!eventgradu@tion][datesstyle=\tfxx]%
+\setupchronoperiode[!!periodegradu@tion][datesstyle=\tfxx]%
+%
+%DEFINITION DE \!CHRUSECOLOR ET DES COULEURS A UTILISER NON EXISTANTES DANS LE FORMAT
+\def\!chrusecolor#1{\color[#1]}%
+\definecolor[purple][r=0.5, g=0, b=0.5]%
+\definecolor[violet][r=0.75, g=0, b=0.25]%
+%
+%SYSTEME DE CHANGEMENT DE MOTEUR DE DESSIN
+%
+\!chrverif\def\chronoswitchtomodeMP{\long\def\!chrstarttikzpicture##1\!chrstoptikzpicture{\begingroup\edef\@@string@d{##1}\edef\@@string@d{\@@string@d}\expandafter\startMPcode\@@string@d\stopMPcode\endgroup}%
+\def\!chrstoptikzpicture{\stopMPcode}%
+\def\!chrfill[color=##1]##2;{fill ##2 withcolor \MPcolor{##1};}%
+\def\!chrfilldraw[color=##1]##2;{filldraw ##2 withcolor \MPcolor{##1};}%
+\def\!chrdraw[color=##1]##2;{draw ##2 withcolor \MPcolor{##1};}}%
+%
+\!chrverif\def\chronoswitchtomodeTikz{%
+\unless\ifdefined\starttikzpicture
+ \usemodule[tikz]%
+\fi
+\let\!chrstarttikzpicture\starttikzpicture
+\let\!chrstoptikzpicture\stoptikzpicture
+\def\!chrfill{\fill}%
+\def\!chrfilldraw{\filldraw}%
+\def\!chrdraw{\draw}}%
+%
+\startmode[mkiv]%
+\chronoswitchtomodeMP
+\stopmode
+\startnotmode[mkiv]%
+\chronoswitchtomodeTikz
+\stopnotmode
+%
+\catcode`\@=12%
+\catcode`\!=12%
+\endinput \ No newline at end of file