summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/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/source/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/source/latex/moderntimeline')
-rw-r--r--Master/texmf-dist/source/latex/moderntimeline/moderntimeline.dtx28
1 files changed, 24 insertions, 4 deletions
diff --git a/Master/texmf-dist/source/latex/moderntimeline/moderntimeline.dtx b/Master/texmf-dist/source/latex/moderntimeline/moderntimeline.dtx
index 856eb01c4ea..ff31f0fcdc4 100644
--- a/Master/texmf-dist/source/latex/moderntimeline/moderntimeline.dtx
+++ b/Master/texmf-dist/source/latex/moderntimeline/moderntimeline.dtx
@@ -43,7 +43,7 @@
%</driver>
% \fi
%
-% \CheckSum{333}
+% \CheckSum{352}
%
% \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
@@ -62,6 +62,7 @@
% Right brace \} Tilde \~}
%
%
+% \changes{0.10}{2019/03/04}{Add support to specify label for end date, thanks to ypid and Astrinus}
% \changes{0.9}{2015/08/31}{Add month support, thanks to Astrinus}
% \changes{0.8}{2015/02/25}{Add the tlsetnotshadedfraction command, thanks to Stefano Gronchi}
% \changes{0.7}{2012/04/26}{Various fixes by Jake to allow fractional years in tllabelcventry}
@@ -287,6 +288,15 @@
% {The Internet}{}{Tried Scribus for a short while}
% \end{verbatim}
%
+% It is also possible to place a label where the end date would by making use
+% of the separator |///|:
+%
+% \begin{verbatim}
+% \tllabelcventry[magenta]{2002}{2003}{July///November 2002}
+% {Scribus Student}{GNU School}
+% {The Internet}{}{Tried Scribus for a short while}
+% \end{verbatim}
+%
% You can enter months for adjusting bar length as in |\tlcventry|.
%
%
@@ -529,6 +539,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
}
% \end{macrocode}
% \end{macro}
@@ -588,7 +604,8 @@
% \begin{macrocode}
\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)
@@ -667,6 +684,7 @@
% \begin{macrocode}
\tl@formatendyear{#3}
\tl@formatstartyear{#2}
+\tl@splitlabels{#4}
\cventry{\tikz[baseline=0pt]{
\fill [\tl@runningcolor] (0,0)
rectangle (\hintscolumnwidth,\tl@runningwidth);
@@ -674,8 +692,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}