texlive[50228] Master/texmf-dist: moderntimeline (4mar19)

commits+karl at tug.org commits+karl at tug.org
Mon Mar 4 23:12:11 CET 2019


Revision: 50228
          http://tug.org/svn/texlive?view=revision&revision=50228
Author:   karl
Date:     2019-03-04 23:12:11 +0100 (Mon, 04 Mar 2019)
Log Message:
-----------
moderntimeline (4mar19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/moderntimeline/moderntimeline.pdf
    trunk/Master/texmf-dist/source/latex/moderntimeline/moderntimeline.dtx
    trunk/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/moderntimeline/README.md

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/moderntimeline/README

Deleted: trunk/Master/texmf-dist/doc/latex/moderntimeline/README
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/moderntimeline/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/moderntimeline/README.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/moderntimeline/README.md	2019-03-04 22:12:11 UTC (rev 50228)
@@ -0,0 +1,15 @@
+Moderntimeline
+==============
+
+[![Join the chat at https://gitter.im/raphink/moderntimeline](https://badges.gitter.im/raphink/moderntimeline.svg)](https://gitter.im/raphink/moderntimeline?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+[![Build Status](https://img.shields.io/travis/raphink/moderntimeline/master.svg)](https://travis-ci.org/raphink/moderntimeline)
+[![CTAN](https://img.shields.io/ctan/v/moderntimeline.svg)](https://www.ctan.org/pkg/moderntimeline)
+[![CTAN license](https://img.shields.io/ctan/l/moderntimeline.svg)](https://www.ctan.org/pkg/moderntimeline)
+
+Timelines for use with moderncv.
+
+This LaTeX package provides commands to configure and to draw
+timeline diagrams; such diagrams are designed to fit into
+*Curriculum Vitae* documents written using the
+[moderncv](https://www.ctan.org/pkg/moderncv) class.
+


Property changes on: trunk/Master/texmf-dist/doc/latex/moderntimeline/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/moderntimeline/moderntimeline.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/moderntimeline/moderntimeline.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/moderntimeline/moderntimeline.dtx	2019-03-04 22:11:56 UTC (rev 50227)
+++ trunk/Master/texmf-dist/source/latex/moderntimeline/moderntimeline.dtx	2019-03-04 22:12:11 UTC (rev 50228)
@@ -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 at splitlabels@auxi\@tempa\@nnil%
+  \ifx\tl at startlabel\empty\relax%
+    \gdef\tl at startlabel{#1}
+  \fi
+  \ifissince%
+    \xdef\tl at startlabel{\tl at since \tl at startlabel}
+  \fi
 }
 %    \end{macrocode}
 % \end{macro}
@@ -588,7 +604,8 @@
 %    \begin{macrocode}
 \issincefalse
 \tl at formatstartyear{#2}
-\cventry{\tikz{
+\cventry{\tikz[baseline=0pt]{
+    \useasboundingbox (0,-1.5ex) rectangle (\hintscolumnwidth,1ex);
      \fill [\tl at runningcolor] (0,0)
         rectangle (\hintscolumnwidth,\tl at runningwidth);
      \fill [#1] (0,0)
@@ -667,6 +684,7 @@
 %    \begin{macrocode}
 \tl at formatendyear{#3}
 \tl at formatstartyear{#2}
+\tl at splitlabels{#4}
  \cventry{\tikz[baseline=0pt]{
      \fill [\tl at runningcolor] (0,0)
         rectangle (\hintscolumnwidth,\tl at runningwidth);
@@ -674,8 +692,10 @@
         rectangle (\hintscolumnwidth,1ex);
      \fill [#1] (0,0)
         ++(\tl at startfraction*\hintscolumnwidth,0pt)
-        node [tl at startyear] {#4}
-        rectangle (\tl at endfraction*\hintscolumnwidth,\tl at width-1pt) ;
+        node [tl at startyear] {\tl at startlabel}
+        rectangle (\tl at endfraction*\hintscolumnwidth,\tl at width-1pt)
+        node [tl at endyear] {\tl at endlabel}
+        (\hintscolumnwidth,0pt) ;
     \ifissince
        \newdimen\fullcolorwidth
        \pgfmathsetlength\fullcolorwidth{\tl at startfraction*(1+(1-\tl at startfraction)*\tl at nsfrac)*\hintscolumnwidth}

Modified: trunk/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty	2019-03-04 22:11:56 UTC (rev 50227)
+++ trunk/Master/texmf-dist/tex/latex/moderntimeline/moderntimeline.sty	2019-03-04 22:12:11 UTC (rev 50228)
@@ -140,6 +140,12 @@
   \begingroup%
   \edef\@tempa{#1///}%
   \expandafter\endgroup\expandafter\tl at splitlabels@auxi\@tempa\@nnil%
+  \ifx\tl at startlabel\empty\relax%
+    \gdef\tl at startlabel{#1}
+  \fi
+  \ifissince%
+    \xdef\tl at startlabel{\tl at since \tl at startlabel}
+  \fi
 }
 \newcommand{\tl at splitlabels@auxi}[2]{}
 \def\tl at splitlabels@auxi#1///#2\@nnil{%
@@ -177,7 +183,8 @@
 \newcommand{\tldatelabelcventry}[8][color1]{%
 \issincefalse
 \tl at formatstartyear{#2}
-\cventry{\tikz{
+\cventry{\tikz[baseline=0pt]{
+    \useasboundingbox (0,-1.5ex) rectangle (\hintscolumnwidth,1ex);
      \fill [\tl at runningcolor] (0,0)
         rectangle (\hintscolumnwidth,\tl at runningwidth);
      \fill [#1] (0,0)
@@ -235,6 +242,7 @@
 \newcommand{\tllabelcventry}[9][color1]{%
 \tl at formatendyear{#3}
 \tl at formatstartyear{#2}
+\tl at splitlabels{#4}
  \cventry{\tikz[baseline=0pt]{
      \fill [\tl at runningcolor] (0,0)
         rectangle (\hintscolumnwidth,\tl at runningwidth);
@@ -242,8 +250,10 @@
         rectangle (\hintscolumnwidth,1ex);
      \fill [#1] (0,0)
         ++(\tl at startfraction*\hintscolumnwidth,0pt)
-        node [tl at startyear] {#4}
-        rectangle (\tl at endfraction*\hintscolumnwidth,\tl at width-1pt) ;
+        node [tl at startyear] {\tl at startlabel}
+        rectangle (\tl at endfraction*\hintscolumnwidth,\tl at width-1pt)
+        node [tl at endyear] {\tl at endlabel}
+        (\hintscolumnwidth,0pt) ;
     \ifissince
        \newdimen\fullcolorwidth
        \pgfmathsetlength\fullcolorwidth{\tl at startfraction*(1+(1-\tl at startfraction)*\tl at nsfrac)*\hintscolumnwidth}



More information about the tex-live-commits mailing list