diff options
Diffstat (limited to 'macros/latex/contrib/chronosys/chronosys.sty')
-rw-r--r-- | macros/latex/contrib/chronosys/chronosys.sty | 47 |
1 files changed, 47 insertions, 0 deletions
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 |