summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/chronology/README17
-rw-r--r--Master/texmf-dist/doc/latex/chronology/README.txt1
-rw-r--r--Master/texmf-dist/doc/latex/chronology/chronology.hd0
-rw-r--r--Master/texmf-dist/doc/latex/chronology/chronology.pdfbin113948 -> 0 bytes
-rw-r--r--Master/texmf-dist/doc/latex/chronology/example.pdfbin0 -> 14227 bytes
-rw-r--r--Master/texmf-dist/doc/latex/chronology/example.tex24
-rw-r--r--Master/texmf-dist/source/latex/chronology/chronology.dtx216
-rw-r--r--Master/texmf-dist/source/latex/chronology/chronology.ins58
-rw-r--r--Master/texmf-dist/tex/latex/chronology/chronology.sty158
9 files changed, 123 insertions, 351 deletions
diff --git a/Master/texmf-dist/doc/latex/chronology/README b/Master/texmf-dist/doc/latex/chronology/README
index a2444e878e0..724e04e2031 100644
--- a/Master/texmf-dist/doc/latex/chronology/README
+++ b/Master/texmf-dist/doc/latex/chronology/README
@@ -1 +1,16 @@
-A new timeline package. Allows labeling of events with per day granularity. Other features include relative positioning with unit specification, adjustable tick mark step size, and scaling to specified width.
+chronology.sty
+Copyright 2011 Levi Wiseman
+
+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 Levi Wiseman.
+
+This work consists of the file chronology.sty.
diff --git a/Master/texmf-dist/doc/latex/chronology/README.txt b/Master/texmf-dist/doc/latex/chronology/README.txt
deleted file mode 100644
index a2444e878e0..00000000000
--- a/Master/texmf-dist/doc/latex/chronology/README.txt
+++ /dev/null
@@ -1 +0,0 @@
-A new timeline package. Allows labeling of events with per day granularity. Other features include relative positioning with unit specification, adjustable tick mark step size, and scaling to specified width.
diff --git a/Master/texmf-dist/doc/latex/chronology/chronology.hd b/Master/texmf-dist/doc/latex/chronology/chronology.hd
deleted file mode 100644
index e69de29bb2d..00000000000
--- a/Master/texmf-dist/doc/latex/chronology/chronology.hd
+++ /dev/null
diff --git a/Master/texmf-dist/doc/latex/chronology/chronology.pdf b/Master/texmf-dist/doc/latex/chronology/chronology.pdf
deleted file mode 100644
index 3e29be988e1..00000000000
--- a/Master/texmf-dist/doc/latex/chronology/chronology.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/chronology/example.pdf b/Master/texmf-dist/doc/latex/chronology/example.pdf
new file mode 100644
index 00000000000..90c14a66b2b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/chronology/example.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/chronology/example.tex b/Master/texmf-dist/doc/latex/chronology/example.tex
new file mode 100644
index 00000000000..94bc8734912
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/chronology/example.tex
@@ -0,0 +1,24 @@
+\documentclass{article}
+\usepackage{chronology}
+\begin{document}
+\begin{chronology}[5]{1983}{2010}{10cm}[7cm]
+\event{1984}{\color{blue}{one}}
+\event[1985]{1986}{\small{two}}
+\event{\decimaldate{25}{12}{2001}}{\huge{three}}
+\end{chronology}
+\vspace{5cm}
+
+\begin{chronology}*[5]{1983}{2010}{10cm}
+\event{1984}{\color{blue}{one}}
+\event[1985]{1986}{\small{two}}
+\event{\decimaldate{25}{12}{2001}}{\huge{three}}
+\end{chronology}
+\vspace{5cm}
+
+\begin{chronology}[5]{1983}{2010}{10cm}[13cm]
+\event{1984}{\color{blue}{one}}
+\event[1985]{1986}{\small{two}}
+\event{\decimaldate{25}{12}{2001}}{\huge{three}}
+\end{chronology}
+\end{document}
+
diff --git a/Master/texmf-dist/source/latex/chronology/chronology.dtx b/Master/texmf-dist/source/latex/chronology/chronology.dtx
deleted file mode 100644
index 9ab2273f749..00000000000
--- a/Master/texmf-dist/source/latex/chronology/chronology.dtx
+++ /dev/null
@@ -1,216 +0,0 @@
-% \iffalse meta-comment
-%
-% Copyright (C) 2010 by Levi Wiseman
-%
-% 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 Levi Wiseman.
-%
-% This work consists of the file chronology.dtx and the derived files
-% chronology.ins, chronology.pdf, and chronology.sty.
-%
-% \fi
-%
-% \iffalse
-%<*internal>
-\iffalse
-%</internal>
-%<*readme>
-A new timeline package. Allows labeling of events with per day granularity. Other features include relative positioning with unit specification, adjustable tick mark step size, and scaling to specified width.
-%</readme>
-%<*internal>
-\fi
-\def\nameofplainTeX{plain}
-\ifx\fmtname\nameofplainTeX\else
- \expandafter\begingroup
-\fi
-%</internal>
-%<*install>
-\input docstrip.tex
-\keepsilent
-\askforoverwritefalse
-\preamble
-
-This is a generated file.
-
-Copyright (C) 2010 by Levi Wiseman
-
-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 Levi Wiseman.
-
-This work consists of the file chronology.dtx and the derived files
-chronology.ins, chronology.pdf, and chronology.sty.
-
-\endpreamble
-\usedir{tex/latex/chronology}
-\generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}}
-%</install>
-%<install>\endbatchfile
-%<*internal>
-\usedir{source/latex/chronology}
-\generate{\file{\jobname.ins}{\from{\jobname.dtx}{install}}}
-\nopreamble\nopostamble
-\usedir{doc/latex/chronology}
-\generate{\file{README.txt}{\from{\jobname.dtx}{readme}}}
-\ifx\fmtname\nameofplainTeX
- \expandafter\endbatchfile
-\else
- \expandafter\endgroup
-\fi
-%</internal>
-%<*package>
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{chronology}[2010/6/12 v1.0 Horizontal timeline]
-\RequirePackage{calc}
-\RequirePackage{tikz}
-\RequirePackage{ifthen}
-%</package>
-%<*driver>
-\documentclass{ltxdoc}
-\usepackage{\jobname}
-\usepackage{alltt}
-\usepackage[numbered]{hypdoc}
-\EnableCrossrefs
-\CodelineIndex
-\RecordChanges
-\begin{document}
- \DocInput{\jobname.dtx}
-\end{document}
-%</driver>
-% \fi
-%
-% \CheckSum{105}
-%
-% \CharacterTable
-% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-% Digits \0\1\2\3\4\5\6\7\8\9
-% Exclamation \! Double quote \" Hash (number) \#
-% Dollar \$ Percent \% Ampersand \&
-% Acute accent \' Left paren \( Right paren \)
-% Asterisk \* Plus \+ Comma \,
-% Minus \- Point \. Solidus \/
-% Colon \: Semicolon \; Less than \<
-% Equals \= Greater than \> Question mark \?
-% Commercial at \@ Left bracket \[ Backslash \\
-% Right bracket \] Circumflex \^ Underscore \_
-% Grave accent \` Left brace \{ Vertical bar \|
-% Right brace \} Tilde \~}
-%
-% \changes{v1.0}{2010/6/12}{Initial version}
-%
-% \GetFileInfo{\jobname.sty}
-%
-% \DoNotIndex{\addtocounter,\begin,\draw,\else,\end,\fi,\foreach,\ifx,\newcommand,\newcounter,\newenvironment,\newlength,\newsavebox,\node,\pgfmathsetcounter,\pgfmathsetlength,\raisebox,\resizebox,\setcounter,\setlength,\thedeltayears,\thestep,\thestepstart,\thestepstop,\theyearstart,\theyearstop,\timelinebox,\timelinewidth,\unit,\usebox,\x,\xstart,\xstop}
-%
-% \title{The \textsf{\jobname} package\thanks{This document corresponds to \textsf{\jobname}~\fileversion, dated~\filedate.}}
-% \author{Levi Wiseman \\ \texttt{levi.wiseman@gmail.com}}
-%
-% \maketitle
-%
-% \begin{abstract}
-% A new timeline package. Allows labeling of events with per day granularity. Other features include relative positioning with unit specification, adjustable tick mark step size, and scaling to specified width.
-% \end{abstract}
-%
-% \section{Introduction}
-% Most timeline packages and solutions for {\LaTeX} are used to convey a lot of information and are therefore designed vertically. If you are just attempting to assign labels to dates, a more traditional timeline might be more appropriate. That's what {\jobname} is for.
-%
-% \section{Usage}
-% \DescribeEnv{chronology}
-% Declare a |chronology| as follows:
-% \begin{alltt}\verb|\begin{chronology}|\oarg{step}\marg{startYear}\marg{endYear}\marg{unit}\marg{width}\\\meta{events}\\\verb|\end{chronology}|\end{alltt}
-% Where \marg{width} is the final width of the timeline. The width can be specified as a command (e.g.\ \cmd{\textwidth}). \marg{unit} specifies the distance between minor ticks. \oarg{step} (unitless) specifies how many units between major ticks, where the first starts $\equiv_{\bmod {\langle step\rangle}}0$. The timeline runs from \marg{startYear} to \marg{endYear}.
-% \DescribeMacro{\event}
-% Label an \cmd{\event} as follows:
-% \begin{alltt}\cmd{\event}\oarg{startDate}\marg{endDate}\marg{label}\end{alltt}
-% An \cmd{\event} with the label \marg{label} is created. If \oarg{startDate} is specified the \cmd{\event} should span to \marg{endDate}, otherwise the \cmd{\event} specifies a specific date. All dates are unitless.
-% \DescribeMacro{\decimaldate}
-% Specify a \cmd{\decimaldate} as follows:
-% \begin{alltt}\cmd{\decimaldate}\marg{day}\marg{month}\marg{year}\end{alltt}
-%
-% \StopEventually{\PrintChanges\PrintIndex}
-%
-% \section{Implementation}
-% \iffalse
-%<*package>
-% \fi
-%
-% \begin{environment}{chronology}
-% |chronology| creates the graphic first and then scales it to size. Using a large unit size results in a large prescaled graphic, and therefore finer postscaled details.
-% \begin{macrocode}
-\newenvironment{chronology}[5][5]{%
- \newcounter{step}\newcounter{stepstart}\newcounter{stepstop}%
- \newcounter{yearstart}\newcounter{yearstop}\newcounter{deltayears}%
- \newlength{\xstart}\newlength{\xstop}%
- \newlength{\unit}\newlength{\timelinewidth}%
- \setcounter{step}{#1}%
- \setcounter{yearstart}{#2}\setcounter{yearstop}{#3}%
- \setcounter{deltayears}{\theyearstop-\theyearstart}%
- \setlength{\unit}{#4}%
- \setlength{\timelinewidth}{#5}%
- \pgfmathsetcounter{stepstart}%
- {\theyearstart+\thestep-mod(\theyearstart,\thestep)}%
- \pgfmathsetcounter{stepstop}{\theyearstop-mod(\theyearstop,\thestep)}%
- \addtocounter{step}{\thestepstart}%
- \newsavebox{\timelinebox}%
- \begin{lrbox}{\timelinebox}%
- \begin{tikzpicture}[baseline={(current bounding box.north)}]%
- \draw [|->] (0,0) -- (\thedeltayears*\unit+\unit, 0);%
- \foreach \x in {1,...,\thedeltayears}%
- \draw[xshift=\x*\unit] (0,-.1\unit) -- (0,.1\unit);%
- \addtocounter{deltayears}{1}%
- \foreach \x in {\thestepstart,\thestep,...,\thestepstop}{%
- \pgfmathsetlength\xstop{(\x-\theyearstart)*\unit}%
- \draw[xshift=\xstop] (0,-.3\unit) -- (0,.3\unit);%
- \node at (\xstop,0) [below=.2\unit] {\x};}}{%
- \end{tikzpicture}%
- \end{lrbox}%
- \raisebox{2ex}{\resizebox{\timelinewidth}{!}{\usebox{\timelinebox}}}}%
-% \end{macrocode}
-% \end{environment}
-%
-% \begin{macro}{\event}
-% \begin{macrocode}
-\newcommand{\event}[3][e]{%
- \pgfmathsetlength\xstop{(#2-\theyearstart)*\unit}%
- \ifx #1e%
- \draw[fill=black,draw=none,opacity=0.5]%
- (\xstop, 0) circle (.2\unit)%
- node[opacity=1,rotate=45,right=.5\unit] {#3};%
- \else%
- \pgfmathsetlength\xstart{(#1-\theyearstart)*\unit}%
- \draw[fill=black,draw=none,opacity=0.5,rounded corners=.2\unit]%
- (\xstart,-.2\unit) rectangle%
- node[opacity=1,rotate=45,right=.5\unit] {#3} (\xstop,.2\unit);%
- \fi}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\decimaldate}
-% \begin{macrocode}
-\newcommand{\decimaldate}[3]{(#1-1)/31/12+(#2-1)/12+#3}
-% \end{macrocode}
-% \end{macro}
-% \iffalse
-%</package>
-% \fi
-%
-% \Finale
-\endinput
diff --git a/Master/texmf-dist/source/latex/chronology/chronology.ins b/Master/texmf-dist/source/latex/chronology/chronology.ins
deleted file mode 100644
index 20513dd2997..00000000000
--- a/Master/texmf-dist/source/latex/chronology/chronology.ins
+++ /dev/null
@@ -1,58 +0,0 @@
-%%
-%% This is file `chronology.ins',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% chronology.dtx (with options: `install')
-%%
-%% This is a generated file.
-%%
-%% Copyright (C) 2010 by Levi Wiseman
-%%
-%% 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 Levi Wiseman.
-%%
-%% This work consists of the file chronology.dtx and the derived files
-%% chronology.ins, chronology.pdf, and chronology.sty.
-%%
-\input docstrip.tex
-\keepsilent
-\askforoverwritefalse
-\preamble
-
-This is a generated file.
-
-Copyright (C) 2010 by Levi Wiseman
-
-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 Levi Wiseman.
-
-This work consists of the file chronology.dtx and the derived files
-chronology.ins, chronology.pdf, and chronology.sty.
-
-\endpreamble
-\usedir{tex/latex/chronology}
-\generate{\file{\jobname.sty}{\from{\jobname.dtx}{package}}}
-\endbatchfile
-\endinput
-%%
-%% End of file `chronology.ins'.
diff --git a/Master/texmf-dist/tex/latex/chronology/chronology.sty b/Master/texmf-dist/tex/latex/chronology/chronology.sty
index b97a7dca3ac..911f3a8519b 100644
--- a/Master/texmf-dist/tex/latex/chronology/chronology.sty
+++ b/Master/texmf-dist/tex/latex/chronology/chronology.sty
@@ -1,76 +1,84 @@
-%%
-%% This is file `chronology.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% chronology.dtx (with options: `package')
-%%
-%% This is a generated file.
-%%
-%% Copyright (C) 2010 by Levi Wiseman
-%%
-%% 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 Levi Wiseman.
-%%
-%% This work consists of the file chronology.dtx and the derived files
-%% chronology.ins, chronology.pdf, and chronology.sty.
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{chronology}[2010/6/12 v1.0 Horizontal timeline]
-\RequirePackage{calc}
-\RequirePackage{tikz}
-\RequirePackage{ifthen}
-\newenvironment{chronology}[5][5]{%
- \newcounter{step}\newcounter{stepstart}\newcounter{stepstop}%
- \newcounter{yearstart}\newcounter{yearstop}\newcounter{deltayears}%
- \newlength{\xstart}\newlength{\xstop}%
- \newlength{\unit}\newlength{\timelinewidth}%
- \setcounter{step}{#1}%
- \setcounter{yearstart}{#2}\setcounter{yearstop}{#3}%
- \setcounter{deltayears}{\theyearstop-\theyearstart}%
- \setlength{\unit}{#4}%
- \setlength{\timelinewidth}{#5}%
- \pgfmathsetcounter{stepstart}%
- {\theyearstart+\thestep-mod(\theyearstart,\thestep)}%
- \pgfmathsetcounter{stepstop}{\theyearstop-mod(\theyearstop,\thestep)}%
- \addtocounter{step}{\thestepstart}%
- \newsavebox{\timelinebox}%
- \begin{lrbox}{\timelinebox}%
- \begin{tikzpicture}[baseline={(current bounding box.north)}]%
- \draw [|->] (0,0) -- (\thedeltayears*\unit+\unit, 0);%
- \foreach \x in {1,...,\thedeltayears}%
- \draw[xshift=\x*\unit] (0,-.1\unit) -- (0,.1\unit);%
- \addtocounter{deltayears}{1}%
- \foreach \x in {\thestepstart,\thestep,...,\thestepstop}{%
- \pgfmathsetlength\xstop{(\x-\theyearstart)*\unit}%
- \draw[xshift=\xstop] (0,-.3\unit) -- (0,.3\unit);%
- \node at (\xstop,0) [below=.2\unit] {\x};}}{%
- \end{tikzpicture}%
- \end{lrbox}%
- \raisebox{2ex}{\resizebox{\timelinewidth}{!}{\usebox{\timelinebox}}}}%
+\NeedsTeXFormat{LaTeX2e}%
+\ProvidesPackage{chronology}[2010/6/12 v1.0 Horizontal timeline]%
+\RequirePackage{calc}%
+\RequirePackage{tikz}%
+\RequirePackage{ifthen}%
+\newcounter{step}\newcounter{stepstart}\newcounter{stepstop}%
+\newcounter{yearstart}\newcounter{yearstop}\newcounter{deltayears}%
+\newlength{\xstart}\newlength{\xstop}%
+\newlength{\unit}\newlength{\timelinewidth}%
+\newsavebox{\timelinebox}%
+\makeatletter%
+\newif\ifchronology@star%
+\newenvironment{chronology}{%
+ \@ifstar{\chronology@startrue\chronology@i*}{\chronology@starfalse\chronology@i*}%
+}{%
+ \end{tikzpicture}%
+ \end{lrbox}%
+ \raisebox{2ex}{\resizebox{\timelinewidth}{!}{\usebox{\timelinebox}}}%
+}%
+\def\chronology@i*{%
+ \@ifnextchar[{\chronology@ii*}{\chronology@ii*[{5}]}%
+}%
+\def\chronology@ii*[#1]#2#3#4{%
+ \@ifnextchar[{\chronology@iii*[{#1}]{#2}{#3}{#4}}{\chronology@iii*[{#1}]{#2}{#3}{#4}[{#4}]}%
+}%
+\def\chronology@iii*[#1]#2#3#4[#5]{%
+ \newif\ifflipped%
+ \ifchronology@star%
+ \flippedtrue%
+ \else%
+ \flippedfalse%
+ \fi%
+ \setcounter{step}{#1}%
+ \setcounter{yearstart}{#2}\setcounter{yearstop}{#3}%
+ \setcounter{deltayears}{\theyearstop-\theyearstart}%
+ \setlength{\unit}{#5/\thedeltayears}%
+ \setlength{\timelinewidth}{#4}%
+ \pgfmathsetcounter{stepstart}{\theyearstart+\thestep-mod(\theyearstart,\thestep)}%
+ \pgfmathsetcounter{stepstop}{\theyearstop-mod(\theyearstop,\thestep)}%
+ \addtocounter{step}{\thestepstart}%
+ \begin{lrbox}{\timelinebox}%
+ \begin{tikzpicture}[baseline={(current bounding box.north)}]%
+ \draw [|->] (0,0) -- (\thedeltayears*\unit+\unit, 0);%
+ \foreach \x in {1,...,\thedeltayears}%
+ \draw[xshift=\x*\unit] (0,-.1\unit) -- (0,.1\unit);%
+ \addtocounter{deltayears}{1}%
+ \foreach \x in {\thestepstart,\thestep,...,\thestepstop}{%
+ \pgfmathsetlength\xstop{(\x-\theyearstart)*\unit}%
+ \draw[xshift=\xstop] (0,-.3\unit) -- (0,.3\unit);%
+ \ifflipped%
+ \node at (\xstop,0) [above=.2\unit] {\x};%
+ \else%
+ \node at (\xstop,0) [below=.2\unit] {\x};%
+ \fi%
+ }%
+}%
+\makeatother%
\newcommand{\event}[3][e]{%
- \pgfmathsetlength\xstop{(#2-\theyearstart)*\unit}%
- \ifx #1e%
- \draw[fill=black,draw=none,opacity=0.5]%
- (\xstop, 0) circle (.2\unit)%
- node[opacity=1,rotate=45,right=.5\unit] {#3};%
- \else%
- \pgfmathsetlength\xstart{(#1-\theyearstart)*\unit}%
- \draw[fill=black,draw=none,opacity=0.5,rounded corners=.2\unit]%
- (\xstart,-.2\unit) rectangle%
- node[opacity=1,rotate=45,right=.5\unit] {#3} (\xstop,.2\unit);%
- \fi}%
-\newcommand{\decimaldate}[3]{(#1-1)/31/12+(#2-1)/12+#3}
-\endinput
-%%
-%% End of file `chronology.sty'.
+ \pgfmathsetlength\xstop{(#2-\theyearstart)*\unit}%
+ \ifx #1e%
+ \ifflipped%
+ \draw[fill=black,draw=none,opacity=0.5]%
+ (\xstop, 0) circle (.2\unit)%
+ node[opacity=1,rotate=-45,right=.5\unit] {#3};%
+ \else%
+ \draw[fill=black,draw=none,opacity=0.5]%
+ (\xstop, 0) circle (.2\unit)%
+ node[opacity=1,rotate=45,right=.5\unit] {#3};%
+ \fi%
+ \else%
+ \pgfmathsetlength\xstart{(#1-\theyearstart)*\unit}%
+ \ifflipped%
+ \draw[fill=black,draw=none,opacity=0.5,rounded corners=.2\unit]%
+ (\xstart,-.2\unit) rectangle%
+ node[opacity=1,rotate=-45,right=.5\unit] {#3} (\xstop,.2\unit);%
+ \else%
+ \draw[fill=black,draw=none,opacity=0.5,rounded corners=.2\unit]%
+ (\xstart,-.2\unit) rectangle%
+ node[opacity=1,rotate=45,right=.5\unit] {#3} (\xstop,.2\unit);%
+ \fi%
+ \fi}%
+\newcommand{\decimaldate}[3]{(#1-1)/31/12+(#2-1)/12+#3}%
+\endinput%
+