summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/moderntimeline
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-04 22:12:11 +0000
committerKarl Berry <karl@freefriends.org>2019-03-04 22:12:11 +0000
commitcdcd34b4700774946edede081d49d6a110feba9c (patch)
treebf0489c54cfc24c73fb834d0596ef8bd2ee95224 /Master/texmf-dist/tex/latex/moderntimeline
parent01c4eb229994ba11e086f958fb74bb7fc7406cfb (diff)
moderntimeline (4mar19)
git-svn-id: svn://tug.org/texlive/trunk@50228 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderntimeline')
-rw-r--r--Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty16
1 files changed, 13 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty b/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty
index a366c1cda8c..4e93ed18950 100644
--- a/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty
+++ b/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty
@@ -140,6 +140,12 @@
\begingroup%
\edef\@tempa{#1///}%
\expandafter\endgroup\expandafter\tl@splitlabels@auxi\@tempa\@nnil%
+ \ifx\tl@startlabel\empty\relax%
+ \gdef\tl@startlabel{#1}
+ \fi
+ \ifissince%
+ \xdef\tl@startlabel{\tl@since \tl@startlabel}
+ \fi
}
\newcommand{\tl@splitlabels@auxi}[2]{}
\def\tl@splitlabels@auxi#1///#2\@nnil{%
@@ -177,7 +183,8 @@
\newcommand{\tldatelabelcventry}[8][color1]{%
\issincefalse
\tl@formatstartyear{#2}
-\cventry{\tikz{
+\cventry{\tikz[baseline=0pt]{
+ \useasboundingbox (0,-1.5ex) rectangle (\hintscolumnwidth,1ex);
\fill [\tl@runningcolor] (0,0)
rectangle (\hintscolumnwidth,\tl@runningwidth);
\fill [#1] (0,0)
@@ -235,6 +242,7 @@
\newcommand{\tllabelcventry}[9][color1]{%
\tl@formatendyear{#3}
\tl@formatstartyear{#2}
+\tl@splitlabels{#4}
\cventry{\tikz[baseline=0pt]{
\fill [\tl@runningcolor] (0,0)
rectangle (\hintscolumnwidth,\tl@runningwidth);
@@ -242,8 +250,10 @@
rectangle (\hintscolumnwidth,1ex);
\fill [#1] (0,0)
++(\tl@startfraction*\hintscolumnwidth,0pt)
- node [tl@startyear] {#4}
- rectangle (\tl@endfraction*\hintscolumnwidth,\tl@width-1pt) ;
+ node [tl@startyear] {\tl@startlabel}
+ rectangle (\tl@endfraction*\hintscolumnwidth,\tl@width-1pt)
+ node [tl@endyear] {\tl@endlabel}
+ (\hintscolumnwidth,0pt) ;
\ifissince
\newdimen\fullcolorwidth
\pgfmathsetlength\fullcolorwidth{\tl@startfraction*(1+(1-\tl@startfraction)*\tl@nsfrac)*\hintscolumnwidth}