diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/generic/chronosys/README | 15 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/chronosys/docchronosys_en.pdf | bin | 0 -> 93399 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/chronosys/docchronosys_en.tex | 408 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/chronosys/docchronosys_fr.pdf | bin | 0 -> 96055 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/chronosys/docchronosys_fr.tex | 387 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/chronosys/chronosys.sty | 40 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/chronosys/chronosys.tex | 35 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/chronosys/chronosyschr.tex | 199 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/chronosys/x-chronosys.tex | 31 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rwxr-xr-x | Master/tlpkg/libexec/ctan2tds | 3 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/chronosys.tlpsrc | 0 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc | 1 |
13 files changed, 1120 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/generic/chronosys/README b/Master/texmf-dist/doc/generic/chronosys/README new file mode 100644 index 00000000000..166752c03d2 --- /dev/null +++ b/Master/texmf-dist/doc/generic/chronosys/README @@ -0,0 +1,15 @@ +This is the `chronosys' package v1.0, 2011/11/11. +_____________________________________________________________ + +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 enables the commandes \startchronology, \stopchronology, \chronoevent and \chronoperiode. + +It uses the package `tikz' for drawing. + +_____________________________________________________________ + +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/Master/texmf-dist/doc/generic/chronosys/docchronosys_en.pdf b/Master/texmf-dist/doc/generic/chronosys/docchronosys_en.pdf Binary files differnew file mode 100644 index 00000000000..ace6ffd3b45 --- /dev/null +++ b/Master/texmf-dist/doc/generic/chronosys/docchronosys_en.pdf diff --git a/Master/texmf-dist/doc/generic/chronosys/docchronosys_en.tex b/Master/texmf-dist/doc/generic/chronosys/docchronosys_en.tex new file mode 100644 index 00000000000..2d2694f00cf --- /dev/null +++ b/Master/texmf-dist/doc/generic/chronosys/docchronosys_en.tex @@ -0,0 +1,408 @@ +% This is is the english code for the 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] +\mainlanguage[en] +\setupbodyfont[14pt,regular] +\setuppapersize[B4] +\setupinteraction[state=start,menu=on,color=middlered] +\setupinteractionmenu[right][state=start] +\setupcapitals[sc=yes] +\setupindenting[yes,20pt] +\setuppagenumbering[location={bottom,right},left=--~] + +\startuniqueMPgraphic{LinearShade} +fill (-\the\hsize/2,\the\vsize/2)--(\the\hsize/2,\the\vsize/2)--(\the\hsize/2,-\the\vsize/2)--(-\the\hsize/2,-\the\vsize/2)--cycle withcolor 0.825white; + + +path p; +picture mypicture; +mypicture:=nullpicture; +p:=(-2.5cm,0)--(2.5cm,0)--(2.5cm,-0.75cm)--(-2.5cm,-0.75cm)--cycle; +color marron; marron:=(165/255,66/255,0); + +path sablier; sablier:= (-2.05cm,-0.75cm){down}..{dir -45}(-0.65cm,-4.25cm)..{down}(-0.35cm,-5.25cm)--(0.35cm,-5.25cm){up}..(0.65cm,-4.25cm){dir 45}..{up}(2.05cm,-0.75cm)--cycle; + +addto mypicture contour unitsquare scaled 3cm xscaled 2 shifted(-2cm,-6cm) withcolor yellow; +clip mypicture to sablier xscaled 0.99; addto currentpicture also mypicture; + +fill (-0.35cm,-5.25cm){dir -45}..(-0.05cm,-5.55cm){down}..{down}(-0.05cm,-8cm){dir 225}..(-1.85cm,-10.5cm)--(1.85cm,-10.5cm)..{dir 135}(0.05cm,-8cm){up}..{up}(0.05cm,-5.55cm)..{dir 45}(0.35cm,-5.25cm)--cycle withcolor yellow; +fill sablier--reverse sablier xscaled 0.85--cycle withcolor (96/255,204/255,1); +fill sablier--reverse sablier xscaled 0.85--cycle reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor (96/255,204/255,1); +draw sablier withcolor black; +draw sablier reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor black; +draw sablier xscaled 0.85 withcolor black; +draw sablier xscaled 0.85 reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor black; + +fill p withcolor marron; +fill p reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor marron; +draw p withcolor black; +draw p reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor black; + +\stopuniqueMPgraphic + + +\defineoverlay[shaded][\useMPgraphic{LinearShade}] +\setupbackgrounds[page][background={shaded}] + +\placebookmarks[chapter,section,subsection][chapter,section] +\usemodule[chronosys] +\startstandardmakeup\switchtobodyfont[16pt] +\midaligned{Chronosys} +\midaligned{Make chronological friezes !} +\bigskip +\startchronology[width=\hsize,height=7ex,stopyear=2050,startyear=1982,color=darkgreen] +\chronoevent{2011}{\type{chronosys}'s creation} +\stopchronology +\stopstandardmakeup +\completecontent[alternative=c,interaction=all] + +\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. It uses the \type{tikz} package for drawing the friezes. +\blank + +This package is version {\unprotect\chron@sysversion\protect}, anothers versions might be created later. +\bigskip +It is recommanded not to load the \type{color.tex} file if you use plain \TeX. +\bigskip + +You can load \type{chronosys} by~: +\startitemize[4] +\item \type{\usemodule[chronosys]} in \CONTEXT. +\item \type{\usepackage{chronosys}} in \LaTeX. +\item \type{\input chronosys} in plain \TeX. +\stopitemize + +\chapter{First use} + +\section{Main fonction: \type{\startchronology}} + +The control sequence \type{\startchronology}\index{startchronology} is the first one you need to know.\footnote{There are \type{\begin{chronology}} and \type{\end{chronology}} for \LaTeX}~: it starts the chronological frieze. +\blank[small] +The next one is \type{\stopchronology}\index{stopchronology}\footnote{or \type{\end{chronology}}}, it ends the frieze. Let's have a look on the result~: +\starttyping +\startchronology +\stopchronology\stoptyping + +\startchronology +\stopchronology +\bigskip +You can see the frieze 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 frieze. + +\section[event]{Events: \type{\chronoevent}} + +You can add events with \type{\chronoevent}\index{chronoevent}. This control sequence needs two arguments: the first one is the date of the event\footnote{you can see further to see another way of specifying the date} and the second is the label of this event. + +\blank[small] +For example: +\starttyping +\startchronology +\chronoevent{1977}{\TeX's creation} +\stopchronology +\stoptyping +\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: + +\starttyping +\startchronology +\chronoevent{476}{Fall of the Roman empire} +\chronoevent{1492}{Discovery of America} +\chronoevent{1969}{first steps on the Moon} +\stopchronology +\stoptyping + +\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 frieze, especially the starting year and ending year, will be seen further(see \in[startchronologyoptions]). + +\section[period]{Periods: \type{\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 \type{\chronoperiode}\index{chronperiode}. + +\starttyping +\startchronology +\chronoperiode{1000}{1999}{2\high{nd} Millennium} +\chronoperiode{476}{1453}{Eastern Roman Empire} +\chronoevent{1969}{first steps on the Moon} +\stopchronology +\stoptyping +\switchtobodyfont[9pt] +\startchronology +\chronoperiode{1000}{1999}{2\high{nd} Millennium} +\chronoperiode{14}{476}{Roman empire (without Augustus)} +\chronoevent{1969}{first steps on the Moon} +\stopchronology +\switchtobodyfont[14pt] +\blank +N.B.: on the period from {\os1000} to {\os1999}, blue on the frieze, 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]). + +\chapter[Personnalisation]{Friezes' customization} + +\section{\type{\startchronology}} +\subsection{Example} +\type{\startchronology} can have an optional argument in brackets. +For example: +\starttyping +\startchronology +[startyear=-800,stopyear=500,color=darkblue,height=7ex,width=\hsize] +\chronoevent{-753}{Rome's foundation} +\stopchronology +\stoptyping +\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 \type{\startchronology}\index{startchronology} are: +\startitemize +\head \type{startyear}\index{startyear} :\par starting year of the frieze. It needs to be a valid \type{number}. It is by default {\os0} +\head \type{stopyear}\index{stopyear} :\par ending year of the frieze. 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 \type{colour} recognized by the \type{tikz} package. 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 \type{\hsize}\footnote{\type{\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 frieze, 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} :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 frieze 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 frieze (\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 frieze should be passed back with a black line. It must be either \type{true} or \type{false} and it is \type{false} by default. + +\stopitemize +\subsection[startchronologyoptions]{Summary} +\placetable[here][fig:startchronologyoptions]{\type{startchronology}'s options} +\starttable[|l|c|l|] +\HL\VL\use{3}\ReFormat[cB]{\type{\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\HL +\stoptable + +\section{\type{\chronoperiode}} +\subsection{Example} +\type{\chronoperiode} can have an optional argument for the options' customization. +\starttyping +\startchronology[startyear=-800,stopyear=500,color=darkgreen] +\chronoperiode[color=orange,stopdate=false,textstyle=\it] +{-753}{-509}{Roman Royal period} +\chronoperiode[color=cyan,textstyle=\bf,textdepth=35pt] +{-509}{-27}{Roman Republic} +\stopchronology +\stoptyping +\startchronology[startyear=-800,stopyear=500,color=darkgreen] +\chronoperiode[color=orange,stopdate=false,textstyle=\it] +{-753}{-509}{Roman Royal period} +\chronoperiode[color=cyan,textstyle=\bf,textdepth=35pt] +{-509}{-27}{Roman Republic} +\stopchronology + +\subsection{Different options} + +The different options of \type{\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 \type{control sequence} ou \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} ou \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 \type{colour} recognized by \type{tikz}. 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{dateselevation}\index{textdepth} :\par depth of the label from the frieze. It must be a valid \type{dimen} and it is \type{15pt} by default. + +\subsection[periodoptions]{Summary} + +\placetable[here][fig:chronoperiodeoptions]{\type{chronoperiode}'s options} +\starttable[|l|c|l|] +\HL\VL\use{3}\ReFormat[cB]{\type{\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{<commande#1>}\VL\LR +\VL\type{textstyle} \NC=\NC\type{<control sequence>} \em or \type{<commande#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 +\stoptable + +\section{\type{\chronoevent}} + +\subsection[eventnewdate]{A new way for specifying the date} + +You can specify with more precision the date with \type{\chronoevent}\index{chronoevent}. We saw that typing +\type{\chronoevent{-44}{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: +\starttyping +\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} +\stoptyping + +To change the language, you only need to redefine the control sequence, for example for english as: +\starttyping +\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} +\stoptyping +\bigskip +For example, +\starttyping +\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 +\stoptyping +\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 +Furthermore, \type{\chronoevent} can also have an optional argument for customization. +\subsection{Example} + +\starttyping +\def\MyIcon{{\starttikzpicture \filldraw +[color=orange](0,0)--(0,5pt)--(5pt,5pt) +--(5pt,0)--cycle;\stoptikzpicture}} + +\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={\switchtobodyfont[sansserif]}, +datesstyle=\os,datesseparation=/,conversionmonth=false, +icon=\MyIcon,year=false]{15/3/-44} +{\vbox{\hbox{\qquad ides of March;}\hbox{assassination of Caesar}}} +\stopchronology +\stoptyping +\def\MyIcon{{\starttikzpicture \filldraw[color=orange](0,0)--(0,5pt)--(5pt,5pt)--(5pt,0)--cycle;\stoptikzpicture}} +\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={\switchtobodyfont[sansserif]},datesstyle=\os,datesseparation=/,conversionmonth=false,icon=\MyIcon,year=false]{15/3/-44} +{\vbox{\hbox{\qquad ides of March;}\hbox{assassination of Caesar}}} +\stopchronology + +\subsection{Different options} + +Here are the different possible options\index{chronoevent}. +\startitemize +\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 frieze 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 frieze. 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 \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}. +\stopitemize + +\subsection[eventoptions]{Summary} + +\placetable[here][fig:chronoeventoptions]{\type{chronoevent}'s options} +\starttable[|l|c|l|] +\HL\VL\use{3}\ReFormat[cB]{\type{\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\HL +\stoptable + +\completeindex +\midaligned{\button{Go to table of contents}[content]} +\midaligned{\button{Exit}[ExitViewer]} +\stoptext
\ No newline at end of file diff --git a/Master/texmf-dist/doc/generic/chronosys/docchronosys_fr.pdf b/Master/texmf-dist/doc/generic/chronosys/docchronosys_fr.pdf Binary files differnew file mode 100644 index 00000000000..fe0d4ca5015 --- /dev/null +++ b/Master/texmf-dist/doc/generic/chronosys/docchronosys_fr.pdf diff --git a/Master/texmf-dist/doc/generic/chronosys/docchronosys_fr.tex b/Master/texmf-dist/doc/generic/chronosys/docchronosys_fr.tex new file mode 100644 index 00000000000..2a4ead035eb --- /dev/null +++ b/Master/texmf-dist/doc/generic/chronosys/docchronosys_fr.tex @@ -0,0 +1,387 @@ +\setupinteraction[title=Chronosys - Documentation] +\mainlanguage[fr] +\setupbodyfont[14pt,regular] +\setuppapersize[B4] +\setupinteraction[state=start,menu=on,color=middlered] +\setupinteractionmenu[right][state=start] +\setupcapitals[sc=yes] +\setupindenting[yes,20pt] +\setuppagenumbering[location={bottom,right},left=--~] + +\startuniqueMPgraphic{LinearShade} +fill (-\the\hsize/2,\the\vsize/2)--(\the\hsize/2,\the\vsize/2)--(\the\hsize/2,-\the\vsize/2)--(-\the\hsize/2,-\the\vsize/2)--cycle withcolor 0.825white; + + +path p; +picture mypicture; +mypicture:=nullpicture; +p:=(-2.5cm,0)--(2.5cm,0)--(2.5cm,-0.75cm)--(-2.5cm,-0.75cm)--cycle; +color marron; marron:=(165/255,66/255,0); + +path sablier; sablier:= (-2.05cm,-0.75cm){down}..{dir -45}(-0.65cm,-4.25cm)..{down}(-0.35cm,-5.25cm)--(0.35cm,-5.25cm){up}..(0.65cm,-4.25cm){dir 45}..{up}(2.05cm,-0.75cm)--cycle; + +addto mypicture contour unitsquare scaled 3cm xscaled 2 shifted(-2cm,-6cm) withcolor yellow; +clip mypicture to sablier xscaled 0.99; addto currentpicture also mypicture; + +fill (-0.35cm,-5.25cm){dir -45}..(-0.05cm,-5.55cm){down}..{down}(-0.05cm,-8cm){dir 225}..(-1.85cm,-10.5cm)--(1.85cm,-10.5cm)..{dir 135}(0.05cm,-8cm){up}..{up}(0.05cm,-5.55cm)..{dir 45}(0.35cm,-5.25cm)--cycle withcolor yellow; +fill sablier--reverse sablier xscaled 0.85--cycle withcolor (96/255,204/255,1); +fill sablier--reverse sablier xscaled 0.85--cycle reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor (96/255,204/255,1); +draw sablier withcolor black; +draw sablier reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor black; +draw sablier xscaled 0.85 withcolor black; +draw sablier xscaled 0.85 reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor black; + +fill p withcolor marron; +fill p reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor marron; +draw p withcolor black; +draw p reflectedabout ((-5cm,-5.25cm),(5cm,-5.25cm)) withcolor black; + +\stopuniqueMPgraphic + + +\defineoverlay[shaded][\useMPgraphic{LinearShade}] +\setupbackgrounds[page][background={shaded}] + +\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=2050,startyear=1982,color=darkgreen] +\chronoevent{2011}{Création de \type{chronosys}} +\stopchronology +\stopstandardmakeup +\completecontent[alternative=c,interaction=all] + +\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} est distribué sous license LaTeX Project Public License. Il utilise l'extension \type{tikz} pour réaliser les dessins de frises. +\blank + +Le fichier est actuellement en version {\unprotect\chron@sysversion\protect}, 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 \type{\usemodule[chronosys]} pour \CONTEXT. +\item \type{\usepackage{chronosys}} pour \LaTeX. +\item \type{\input chronosys} pour plain \TeX. +\stopitemize + +\chapter{Première utilisation} + +\section{Fonction principale : \type{\startchronology}} + +La macro \type{\startchronology}\index{startchronology} est la première fonction à retenir\footnote{Il existe aussi \type{\begin{chronology}} et \type{\end{chronology}} pour \LaTeX}~: elle prépare la frise chronologique. +\blank[small] +La suivante à retenir est \type{\stopchronology}\index{stopchronology}\footnote{ou \type{\end{chronology}}}, elle termine le tout. Voyons maintenant le résultat~: +\starttyping +\startchronology +\stopchronology\stoptyping + +\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 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 un peu comment rajouter des événements sur la frise. + +\section[event]{Les événements : \type{\chronoevent}} + +Il est possible de rajouter des événements sur la frise chronologique via \type{\chronoevent}\index{chronoevent}. Cette commande prend deux arguments~: le premier est la date\footnote{voir après 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. +\starttyping +\startchronology +\chronoevent{1977}{Création de \TeX} +\stopchronology +\stoptyping +\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} et {\os1977}. Il est également possible de préciser plusieurs événements~: + +\starttyping +\startchronology +\chronoevent{476}{Chute de l'empire romain} +\chronoevent{1492}{Découverte de l'Amérique} +\chronoevent{1870}{III\high{è} République} +\stopchronology +\stoptyping + +\switchtobodyfont[9pt] +\startchronology +\chronoevent{476}{Chute de l'empire romain} +\chronoevent{1492}{Découverte de l'Amérique\ } +\chronoevent{1870}{\ III\high{è} République} +\stopchronology +\switchtobodyfont[14pt] +\bigskip Note : la taille d'écriture a été réduite lorq 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 étendre +(ou raccourcir) les dates de début et de fin de frise sera vue plus loin (voir \in[startchronologyoptions]). + +\section[period]{Les périodes : \type{\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 à \type{\chronoperiode}\index{chronoperiode}. + +\starttyping +\startchronology +\chronoperiode{1000}{1999}{2\high{è} millénaire} +\chronoperiode{192}{476}{Bas-Empire romain} +\chronoevent{1492}{Découverte de l'Amérique\ } +\chronoevent{1870}{\ III\high{è} République} +\stopchronology +\stoptyping +\switchtobodyfont[9pt] +\startchronology +\chronoperiode{1000}{1999}{2\high{è} millénaire} +\chronoperiode{192}{476}{Bas-Empire romain} +\chronoevent{1870}{\ III\high{è} République} +\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]). + +\chapter[Personnalisation]{Personnalisation des frises} + +\section{\type{\startchronology}} +\subsection{Exemple} +\type{\startchronology} accepte un argument optionnel spécifié entre crochets. +Voyons un exemple : +\starttyping +\startchronology +[startyear=-800,stopyear=500,color=darkblue,height=7ex,width=\hsize] +\chronoevent{-753}{Fondation de Rome} +\stopchronology +\stoptyping +\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 \type{\startchronology}\index{startchronology} sont les suivantes~: +\startitemize +\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} reconnue par l'extension tikz. 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 \type{\hsize}\footnote{\type{\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. + +\stopitemize +\subsection[startchronologyoptions]{Résumé} +\placetable[here][fig:startchronologyoptions]{Options de \type{startchronology}} +\starttable[|l|c|l|] +\HL\VL\use{3}\ReFormat[cB]{\type{\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\HL +\stoptable + +\section{\type{\chronoperiode}} +\subsection{Exemple} +Tout comme \type{\startchronology}, \type{\chronoperiode} admet un argument optionnel contenant les options de personnalisation de la période. +\starttyping +% This is is the french code for the 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. +% +\startchronology[startyear=-800,stopyear=500,color=darkgreen] +\chronoperiode[color=orange,stopdate=false,textstyle=\it] +{-753}{-509}{Période royale romaine} +\chronoperiode[color=cyan,textstyle=\bf,textdepth=35pt] +{-509}{-27}{République romaine} +\stopchronology +\stoptyping +\startchronology[startyear=-800,stopyear=500,color=darkgreen] +\chronoperiode[color=orange,stopdate=false,textstyle=\it]{-753}{-509}{Période royale romaine} +\chronoperiode[color=cyan,textstyle=\bf,textdepth=35pt]{-509}{-27}{République romaine} +\stopchronology + +\subsection{Différentes options} + +Les différentes options de \type{\chronoperiode}\index{chronoperiode} sont listées ici~: + +\startitemize +\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} reconnue par \type{tikz}. 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. + +\subsection[periodoptions]{Résumé} + +\placetable[here][fig:chronoperiodeoptions]{Options de \type{chronoperiode}} +\starttable[|l|c|l|] +\HL\VL\use{3}\ReFormat[cB]{\type{\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\HL +\stoptable + +\section{\type{\chronoevent}} + +\subsection[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 \type{\chronoevent}\index{chronoevent}. Nous avons vu que taper +\type{\chronoevent{-44}{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 : +\starttyping +\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} +\stoptyping + +Pour changer la langue, il suffit de redéfinir la commande suivant le même modèle. +\bigskip +Voyons un exemple : +\starttyping +\startchronology[startyear=-44,stopyear=-43,color=darkgreen,height=7ex] +\chronoevent{15/03/-44}{Assassinat de César} +\stopchronology +\stoptyping +\startchronology[startyear=-44,stopyear=-43,color=darkgreen,height=7ex] +\chronoevent{15/03/-44}{Assassinat de César} +\stopchronology +\blank +En outre, \type{\chronoevent} accepte lui-aussi un argument optionnel entre crochets qui contient les options de personnalisation. +\subsection{Exemple} + +\starttyping +\def\MyIcon{{\starttikzpicture \filldraw +[color=orange](0,0)--(0,5pt)--(5pt,5pt) +--(5pt,0)--cycle;\stoptikzpicture}} +\startchronology[startyear=-800,stopyear=500, +color=darkgreen,height=7ex] +\chronoevent[textstyle={\switchtobodyfont[sansserif]}, +datesstyle=\os,datesseparation=/,conversionmonth=false, +icon=\MyIcon,year=false]{15/3/-44} +{\vbox{\hbox{\qquad Ides de mars~;}\hbox{assassinat de Jules César}}} +\stopchronology +\stoptyping +\def\MyIcon{{\starttikzpicture \filldraw[color=orange](0,0)--(0,5pt)--(5pt,5pt)--(5pt,0)--cycle;\stoptikzpicture}} +\startchronology[startyear=-800,stopyear=500,color=darkgreen,height=7ex] +\chronoevent[textstyle={\switchtobodyfont[sansserif]},datesstyle=\os,datesseparation=/,conversionmonth=false,icon=\MyIcon,year=false]{15/3/-44}{\vbox{\hbox{\qquad Ides de mars~;}\hbox{assassinat de Jules César}}} +\stopchronology + +\subsection{Options possibles} + +Voici la liste des options possibles\index{chronoevent}. +\startitemize +\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. +\stopitemize + +\subsection[eventoptions]{Résumé} + +\placetable[here][fig:chronoeventoptions]{Options de \type{chronoevent}} +\starttable[|l|c|l|] +\HL\VL\use{3}\ReFormat[cB]{\type{\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\HL +\stoptable + +\completeindex +\midaligned{\button{Aller à la table des matières}[content]} +\midaligned{\button{Quitter}[ExitViewer]} +\stoptext
\ No newline at end of file diff --git a/Master/texmf-dist/tex/generic/chronosys/chronosys.sty b/Master/texmf-dist/tex/generic/chronosys/chronosys.sty new file mode 100644 index 00000000000..a77bf8a08d3 --- /dev/null +++ b/Master/texmf-dist/tex/generic/chronosys/chronosys.sty @@ -0,0 +1,40 @@ +% 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{color} + +\makeatletter\catcode`\!=11 +\def\!chr@verif#1#2{\ifdefined#2\error!message \fi #1#2} % +\input chronosyschr.tex + +%\newenvironment{chronology}{\startchronology}{\stopchronology} +\let\starttikzpicture\tikzpicture \let\stoptikzpicture\endtikzpicture +\let\chronology\startchronology \let\endchronology\stopchronology +\def\!chrdefaultwidth{\textwidth} +\ProvidesPackage{chronosys} +\makeatother +\endinput diff --git a/Master/texmf-dist/tex/generic/chronosys/chronosys.tex b/Master/texmf-dist/tex/generic/chronosys/chronosys.tex new file mode 100644 index 00000000000..8ef38106963 --- /dev/null +++ b/Master/texmf-dist/tex/generic/chronosys/chronosys.tex @@ -0,0 +1,35 @@ +% 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. +% +\catcode`\@=11 +\unless\ifdefined\tikzpicture +\catcode`\!=12\input tikz.tex \relax \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,positioning,fit,petri}\fi +\catcode`\!=11 +\let\!chr@verif\relax +\def\starttikzpicture{\tikzpicture} \def\stoptikzpicture{\endtikzpicture} +\input chronosyschr.tex + +\catcode`\!=12 +\endinput
\ No newline at end of file diff --git a/Master/texmf-dist/tex/generic/chronosys/chronosyschr.tex b/Master/texmf-dist/tex/generic/chronosys/chronosyschr.tex new file mode 100644 index 00000000000..51d49402551 --- /dev/null +++ b/Master/texmf-dist/tex/generic/chronosys/chronosyschr.tex @@ -0,0 +1,199 @@ +% 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 d\'ej`a \'et\'e charg\'e}\endinput\fi +\ifx\numexpr\UNDEFINED\immediate\write16{D\'esol\'e, 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`\@} +\def\chron@sysversion{1.0} +\catcode`\@=11 +\catcode`\!=11 + +\def\error!message{\errmessage{La commande a d\'ej\`a \'et\'e d\'efinie.}} % +% +\def\!chrverif#1#2{\ifdefined#2\error!message \fi #1#2} % +% +\!chrverif\def\!gobblethree#1#2#3{} +\!chrverif\def\!gobble#1{} +\ifdefined\@ifnextchar \def\:{\let\ifnexttoken=\@ifnextchar\let\!gobble=\@gobble}\expandafter\:\else +\ifdefined\doifnextcharelse \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\ifonearg \newif\iftwoarg +\!chrverif\def\traiteoneargument#1{\ifnexttoken[{\oneargtrue#1}{\oneargfalse#1[]}} + +\!chrverif\def\traitetwoargument#1{\let\todoafterarg#1% +\ifnexttoken[{\oneargtrue\savefirsttwoarg}{\oneargfalse\twoargfalse#1[][]}} +\!chrverif\def\savefirsttwoarg[#1]{\ifnexttoken[{\twoargtrue \todoafterarg[#1]}{\twoargfalse \todoafterarg[#1][]}} +\!chr@verif\newif\ifarvirgule + +\!chrverif\def\traitingargvirgule[#1]#2{\def\!tr@itintargvirgule{#2} \tr@itingargvirgule#1,\end} +\!chrverif\def\tr@itingargvirgule#1,{\ifnexttoken\end{\dotraiteargvirgule#1,=\end,\!gobble}{\dotraiteargvirgule#1,=\end,\tr@itingargvirgule}} +\!chrverif\def\dotraiteargvirgule#1=#2,{\ifx\end#2\else \dotr@iteargvirgule#1=#2,\expandafter\!gobblethree\fi} +\!chrverif\def\dotr@iteargvirgule#1=#2,{\ifcsname \!tr@itintargvirgule#1\endcsname \expandafter\def\csname \!tr@itintargvirgule#1\endcsname{#2}\fi } + +\!chrverif\def\startchronology{\traiteoneargument\dostartchronology} + +\!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\!chrdefaultarrowheight{\!chrheight} \!chrverif\def\!chrdefaultcolor{black} \!chrverif\def\!chrdefaultarrowcolor{\!chr@color} +\!chrverif\def\!chrdefaultdatesstyle{} \!chrverif\def\!chrdefaultstartdate{true} \!chrverif\def\!chrdefaultstopdate{true} \!chrverif\def\!chrdefaultdateselevation{20pt} +\!chrverif\def\!chrdefaultbox{false} + +\!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 \!chrverif\def\!chr@color{black} +\!chrverif\def\!chr@arrowcolor{\!chrdefaultarrowcolor} \!chr@verif\newdimen\!chr!realwidth \!chrverif\def\!chr@datesstyle{} \!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} + +\!chrverif\def\dostartchronology[#1]{\begingroup\parindent\z@\par\def\!chr@startyear{\!chrdefaultstartyear}% +\def\!chr@height{\!chrdefaultheight}\def\!chr@stopyear{\!chrdefaultstopyear}\def\!chr@width{\!chrdefaultwidth}\def\!chr@dates{\!chrdefaultdates}% +\def\!chr@arrow{\!chrdefaultarrow}\def\!chr@arrowwidth{\!chrdefaultarrowwidth}\def\!chr@arrowheight{\!chrdefaultarrowheight}\def\!chr@color{\!chrdefaultcolor}% +\def\!chr@arrowcolor{\!chrdefaultarrowcolor}\def\!chr@datesstyle{\!chrdefaultdatesstyle}\def\!chr@startdate{\!chrdefaultstartdate}% +\def\!chr@stopdate{\!chrdefaultstopdate}\def\!chr@dateselevation{\!chrdefaultdateselevation}% +\def\!chr@box{\!chrdefaultbox}% +\ifonearg \traitingargvirgule[#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 \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% +% % +\setbox\!chrflechebox\hbox{% +\if!chrdates\if!chrstartdate\raise\dimen@i\relax % % +\hbox to\z@{\hss\!chr@datesstyle{\the\!chrstartyear}\hss}\fi\fi% +\starttikzpicture\filldraw[color=\!chr@color](0,0)--(\!chr!realwidth,0)--(\!chr!realwidth,\!chrheight)--(0,\!chrheight)--cycle;\if!chrbox\draw[color=black](-0.4pt,-0.4pt)--(\!chr!realwidth+0.4pt,-0.4pt)--(\!chr!realwidth+0.4pt,\!chrheight+0.4pt)--(-0.4pt,\!chrheight)--cycle;\fi % +\if!chrarrow\ifx\!chr@color\!chr@arrowcolor\else\draw[color=\!chr!periodeschwarzodergr@u](\!chr!realwidth,0)--(\!chr!realwidth,\!chrheight);\fi\fi\stoptikzpicture % +\if!chrdates\if!chrstopdate\raise\dimen@i\hbox to\z@{\hss\!chr@datesstyle{\the\!chrstopyear}\hss}\fi\fi% +% +\if!chrarrow\raise0.5\dimen@\hbox{\starttikzpicture\filldraw[color=\!chr@arrowcolor](0,0.5\!chrarrowheight)--(\!chrarrowwidth,0)--(0,-0.5\!chrarrowheight)--cycle;\if!chrbox\draw[color=black](-0.4pt,0.5\!chrarrowheight+0.4pt)--(\!chrarrowwidth+0.4pt,0)--(-0.4pt,-0.5\!chrarrowheight-0.4pt)--cycle;\fi \stoptikzpicture}\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{\traitingargvirgule[#1]{!chrdefault}} + +\!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 \!chrverif\def\!chrperiodedefaultdates{true} +\!chr@verif\newif\if!chrperiodstartdate \!chr@verif\newif\if!chrperiodstopdate \!chrverif\def\!chrperiodedefaultstartdate{true} \!chrverif\def\!chrperiodedefaultstopdate{true} +\!chr@verif\newdimen\!chrperioddateselevation \!chrverif\def\!chrperiodedefaultdateselevation{0pt} + + +\!chrverif\def\!chr!periodec@lor{\ifcase\!chr!periodecolornum blue\or red\or cyan\or purple\or yellow\fi} +\!chrverif\def\!chr!periodecolor{\edef\!chrperiodedefaultcolor{\!chr!periodec@lor}\ifx\!chr!periodec@l@r\!chr@color\!chr!periodecoloradvance\!chr!periodecolor\fi} +\!chrverif\def\!chr!periodecoloradvance{\global\advance\!chr!periodecolornum\@ne\relax\ifnum\!chr!periodecolornum=5\relax\global\!chr!periodecolornum\z@\fi} +\!chrverif\def\!chrperiodedefaultdatesstyle{} \!chrverif\def\!chrperiodedefaulttextstyle{} + + +\!chrverif\def\chronoperiode{\traiteoneargument\dochronoperiode} +\!chrverif\def\dochronoperiode[#1]#2#3#4{\def\!chr@periodtextdepth{\!chrperiodedefaulttextdepth}\def\!chr@perioddates{\!chrperiodedefaultdates}% +\def\!chr@periodcolor{\!chrperiodedefaultcolor}\def\!chr@perioddatesstyle{\!chrperiodedefaultdatesstyle}% +\def\!chr@periodstartdate{\!chrperiodedefaultstartdate}\def\!chr@periodstopdate{\!chrperiodedefaultstopdate}% +\def\!chr@periodtextstyle{\!chrperiodedefaulttextstyle}\def\!chr@perioddates{\!chrperiodedefaultdates}% +\def\!chr@perioddateselevation{\!chrperiodedefaultdateselevation}% +\ifonearg +\traitingargvirgule[#1]{!chr@period}\fi\!chrperiodtextdepth\!chr@periodtextdepth +\csname !chrperioddates\!chr@perioddates\endcsname \csname !chrperiodstartdate\!chr@periodstartdate\endcsname \csname !chrperiodstopdate\!chr@periodstopdate\endcsname +\!chrperioddateselevation\!chr@perioddateselevation \advance\!chrperioddateselevation 1.25\!chrheight\relax +\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\ifnum\count@>\z@\relax +\!chr!starttingtraitement\numexpr#2-\!chrstartyear\relax\dimen@\dimexpr\count@\!chr!unitperyear\relax +\!chr!dimentraitement\dimexpr\!chr!starttingtraitement\!chr!unitperyear\relax +% % +\dimen@i\wd\!chrflechebox +\setbox\!chrflechebox\hbox{\unhbox\!chrflechebox\kern-\dimen@i\kern\!chr!dimentraitement\lower\!chrperiodtextdepth\hbox to\z@{\hbox to\dimen@{\hss\!chr@periodtextstyle{#4}\hss}\hss}% +\if!chrperioddates\if!chrperiodstartdate\raise\!chrperioddateselevation\hbox to\z@{\hss\!chr@perioddatesstyle{#2}\hss}\fi\fi\!chr!periodecolor \starttikzpicture\filldraw[color=\!chr@periodcolor](0,0)--(\dimen@,0)--(\dimen@,\!chrheight)--(0,\!chrheight)--cycle;\draw[color=\!chr!periodeschwarzodergr@u](0,0)--(0,\!chrheight);\draw [color=\!chr!periodeschwarzodergr@u](\dimen@,0)--(\dimen@,\!chrheight);\if!chrbox\draw[color=black](0,-0.2pt)--(\dimen@,-0.2pt)\fi\stoptikzpicture +\if!chrperioddates\if!chrperiodstopdate\raise\!chrperioddateselevation \hbox to\z@{\hss\!chr@perioddatesstyle{#3}\hss}\fi\fi}\!chr!periodecoloradvance\fi\fi\fi\fi\fi} + +\!chrverif\def\setupchronoperiode#1{\traitingargvirgule[#1]{!chrperiodedefault}} + +\!chrverif\def\chronoevent{\traiteoneargument\dochronoevent} +\!chr@verif\newif\if!chreventspecifiedday\!chr@verif\newif\if!chreventspecifiedmonth \!chr@verif\newif\if!chreventbarre \!chrverif\def\!chreventdefaultbarre{true} +\!chrverif\def\!chreventdefaulticon{} \!chr@verif\newdimen\!chreventmarkdepth \!chrverif\def\!chreventdefaultmarkdepth{10pt} +\!chrverif\def\!chreventdefaulttextstyle{} \!chr@verif\newif\if!chreventmark \!chrverif\def\!chreventdefaultmark{true} +\!chr@verif\newif\if!chreventdate \!chrverif\def\!chreventdefaultdate{true} \!chr@verif\let\!chreventdefaultdatesseparation\space +\!chr@verif\newif\if!chreventconversionmonth \!chrverif\def\!chreventdefaultconversionmonth{true} +\!chrverif\def\!chreventdefaultdatestyle{} \!chrverif\def\!chreventdefaultdatesstyle{} \!chr@verif\newif\if!chreventyear \!chrverif\def\!chreventdefaultyear{true} +\!chrverif\def\!chreventdefaulticonheight{0.5\!chrheight} \!chr@verif\newdimen\!chreventiconheight + +\!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\dochronoevent[#1]#2#3{% +\def\!chr@eventbarre{\!chreventdefaultbarre}\def\!chr@eventicon{\!chreventdefaulticon}\def\!chr@eventmarkdepth{\!chreventdefaultmarkdepth}% +\def\!chr@eventtextstyle{\!chreventdefaulttextstyle}\def\!chr@eventmark{\!chreventdefaultmark}% +\def\!chr@eventdate{\!chreventdefaultdate}\def\!chr@eventdatesseparation{\!chreventdefaultdatesseparation}% +\def\!chr@eventconversionmonth{\!chreventdefaultconversionmonth}\def\!chr@eventdatestyle{\!chreventdefaultdatestyle}% +\def\!chr@eventdatesstyle{\!chreventdefaultdatesstyle}\def\!chr@eventyear{\!chreventdefaultyear}\def\!chr@eventiconheight{\!chreventdefaulticonheight}% +\ifonearg \traitingargvirgule[#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 +\!chreventmarkdepth\!chr@eventmarkdepth \!chreventiconheight\!chr@eventiconheight +\!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 % +\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 +% % +\dimen@i\wd\!chrflechebox +\setbox\!chrflechebox\hbox{\unhbox\!chrflechebox\kern-\dimen@i\kern\!chr!dimentraitement +\if!chreventbarre\starttikzpicture\draw[color=black](0,0)--(0,\!chrheight);\stoptikzpicture\fi\kern-0.4pt\raise\!chreventiconheight\hbox to\z@{\hss\!chr@eventicon\hss}\lower\dimexpr\!chreventmarkdepth+2pt\relax\hbox to\z@{\vbox to\z@{\ifdim\!chreventmarkdepth<0pt\relax\vss\fi +\if!chreventdate\hbox to\z@ {\hss\!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\hbox to\z@{\hss\!chr@eventtextstyle{#3}\hss}\ifdim\!chreventmarkdepth>0pt\relax\vss\fi}}\if!chreventmark\vrule height0pt depth\!chreventmarkdepth\fi \setbox0\vbox{\if!chreventdate\hbox{#2}\fi\hbox{#3}}\lower\dimexpr\dp0+\ht0+\!chreventmarkdepth+2pt\relax\hbox{}} +\fi\fi\fi} + +\!chrverif\def\setupchronoevent#1{\traitingargvirgule[#1]{!chreventdefault}} +\!chrverif\def\stopchronology{\goodbreak\box\!chrflechebox\endgroup\bigskip} + +\catcode`\!=11
\ No newline at end of file diff --git a/Master/texmf-dist/tex/generic/chronosys/x-chronosys.tex b/Master/texmf-dist/tex/generic/chronosys/x-chronosys.tex new file mode 100644 index 00000000000..d4745992c59 --- /dev/null +++ b/Master/texmf-dist/tex/generic/chronosys/x-chronosys.tex @@ -0,0 +1,31 @@ +% 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. +% +\usemodule[tikz] +\catcode`\@=11 +\catcode`\!=11 +\def\!chr@verif#1#2{\ifdefined#2\error!message \fi #1#2} % +\input chronosyschr.tex +\endinput
\ No newline at end of file diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 562af74d4e9..d41cf5eb6f8 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -85,7 +85,7 @@ my @TLP_working = qw( chemarrow chembst chemcompounds chemcono chemexec chemfig chemmacros chemnum chemstyle cherokee chess chess-problem-diagrams chessboard chessfss chet chextras - chicago chicago-annote chletter chngcntr chronology chscite + chicago chicago-annote chletter chngcntr chronology chronosys chscite circ circuitikz cite cjhebrew cjk cjkpunct classicthesis clefval cleveref diff --git a/Master/tlpkg/libexec/ctan2tds b/Master/tlpkg/libexec/ctan2tds index 255a4c670e2..30d31f96267 100755 --- a/Master/tlpkg/libexec/ctan2tds +++ b/Master/tlpkg/libexec/ctan2tds @@ -1003,6 +1003,7 @@ $standarddest = "texmf-dist"; 'barr', 'generic', 'bghyphen', 'generic', 'bibtex', 'generic', + 'chronosys', 'generic', 'circ', 'latex', 'cirth', 'generic', 'dehyph-exptl','generic', @@ -1107,6 +1108,7 @@ $standardtex='\.(.bx|cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$'; 'carlisle', '\.sty|\.ltx', 'chemfig', '(t-)?chemfig.tex|' . $standardtex, 'chemstyle', '\.jdf|' . $standardtex, + 'chronosys', '^(x-)?chronosys', 'cirth', 'num\.tex', 'cjw', '\.tex|' . $standardtex, 'clock', '\.sty|clock\.tex', @@ -1355,6 +1357,7 @@ $standardtex='\.(.bx|cfg|sty|clo|ldf|cls|def|fd|cmap|4ht)$'; 'cc-pl', 'fonts', 'chicago-annote', 'bibtex', 'chemarrow', 'fonts', + 'chronosys', 'generic', 'circ', 'latex', 'cirth', 'fonts', 'cjhebrew', 'fonts', diff --git a/Master/tlpkg/tlpsrc/chronosys.tlpsrc b/Master/tlpkg/tlpsrc/chronosys.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/chronosys.tlpsrc diff --git a/Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc index d0478ed7117..3d48b6895c0 100644 --- a/Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-genericextra.tlpsrc @@ -7,6 +7,7 @@ depend abstyles depend barr depend borceux depend c-pascal +depend chronosys depend colorsep depend dinat depend dirtree |