From cdcd34b4700774946edede081d49d6a110feba9c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 4 Mar 2019 22:12:11 +0000 Subject: moderntimeline (4mar19) git-svn-id: svn://tug.org/texlive/trunk@50228 c570f23f-e606-0410-a88d-b1316a301751 --- .../tex/latex/moderntimeline/moderntimeline.sty | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Master/texmf-dist/tex/latex/moderntimeline') 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} -- cgit v1.2.3