diff options
author | Karl Berry <karl@freefriends.org> | 2012-04-30 23:32:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-04-30 23:32:17 +0000 |
commit | b1baea7ab01a87982814866bf3b89d45ce0e3d1e (patch) | |
tree | 3b118dcfa944de34cfe4cd87a73f602d8cc04a49 /Master/texmf-dist/tex/latex/moderntimeline | |
parent | f7ebe54a461c4bdf445f674e7bab20c684c57bdf (diff) |
moderntimeline (27apr12)
git-svn-id: svn://tug.org/texlive/trunk@26164 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/moderntimeline')
-rw-r--r-- | Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty b/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty index d3e298dabac..5a80f34bcc1 100644 --- a/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty +++ b/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty @@ -20,7 +20,7 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{moderntimeline} - [2012/01/17 0.6 Add timelines to moderncv entries] + [2012/04/27 0.7 Add timelines to moderncv entries] \ProvidesPackage{moderntimeline} \RequirePackage{tikz} \RequirePackage{kvoptions} @@ -126,7 +126,7 @@ \pgfmathsetmacro\tl@endyear{ifthenelse(#3==0,\tl@lastyear,#3)}% \pgfmathsetmacro\tl@startfraction{(#2-\tl@firstyear)/(\tl@lastyear-\tl@firstyear)}% \pgfmathsetmacro\tl@endfraction{(\tl@endyear-\tl@firstyear)/(\tl@lastyear-\tl@firstyear)}% -\ifnum #3=0 \def\tl@startlabel{\tl@since #2} \else \def\tl@startlabel{#2} \fi +\pgfmathsetlength{\pgf@xa}{#3} \ifdim\pgf@xa=0pt \def\tl@startlabel{\tl@since #2} \else \def\tl@startlabel{#2} \fi \cventry{\tikz[baseline=0pt]{ \useasboundingbox (0,-1.5ex) rectangle (\hintscolumnwidth,1ex); \fill [\tl@runningcolor] (0,0) @@ -137,7 +137,7 @@ rectangle (\tl@endfraction*\hintscolumnwidth,\tl@width-1pt) node [tl@endyear] {\pgfmathparse{ifthenelse(#3==0,,#3)}\pgfmathresult} (\hintscolumnwidth,0pt) ; - \ifnum #3=0 + \pgfmathsetlength{\pgf@xa}{#3} \ifdim\pgf@xa=0pt \shade [left color=#1] (\tl@startfraction*\hintscolumnwidth,0) rectangle (\tl@endfraction*\hintscolumnwidth,\tl@width); \else @@ -155,11 +155,13 @@ \cventry{\tikz[baseline=0pt]{ \fill [\tl@runningcolor] (0,0) rectangle (\hintscolumnwidth,\tl@runningwidth); + \useasboundingbox (0,-1.5ex) + rectangle (\hintscolumnwidth,1ex); \fill [#1] (0,0) ++(\tl@startfraction*\hintscolumnwidth,0pt) node [tl@startyear] {#4} rectangle (\tl@endfraction*\hintscolumnwidth,\tl@width-1pt); - \ifnum #3=0 + \pgfmathsetlength{\pgf@xa}{#3} \ifdim\pgf@xa=0pt \shade [left color=#1] (\tl@startfraction*\hintscolumnwidth,0) rectangle (\tl@endfraction*\hintscolumnwidth,\tl@width); \else @@ -168,7 +170,7 @@ \fi } } -{#5}{#6}{#7}{#8}{#9} +{#5}{#6}{#7}{#8}{#9}% } \endinput %% |