texlive[67973] Master/texmf-dist: chronology (18aug23)
commits+karl at tug.org
commits+karl at tug.org
Fri Aug 18 23:28:04 CEST 2023
Revision: 67973
http://tug.org/svn/texlive?view=revision&revision=67973
Author: karl
Date: 2023-08-18 23:28:04 +0200 (Fri, 18 Aug 2023)
Log Message:
-----------
chronology (18aug23)
Modified Paths:
--------------
trunk/Master/texmf-dist/tex/latex/chronology/chronology.sty
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/chronology/README
trunk/Master/texmf-dist/doc/latex/chronology/chronology.pdf
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/chronology/README.md
trunk/Master/texmf-dist/doc/latex/chronology/example.pdf
trunk/Master/texmf-dist/doc/latex/chronology/example.tex
Added: trunk/Master/texmf-dist/doc/latex/chronology/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/chronology/README (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/chronology/README 2023-08-18 21:28:04 UTC (rev 67973)
@@ -0,0 +1,15 @@
+
+chronology
+==========
+
+A package that creates timelines featuring multiple events with per-day precision. Other features include relative positioning with unit specification, adjustable tick mark step size, and scaling to specified width.
+
+
+Version 2.0
+Uploaded to CTAN on 20 August, 2023
+
+Version 1.1
+Uploaded to GitHub on 12 March 2013
+Uploaded to CTAN on 4 April 2013
+
+
Property changes on: trunk/Master/texmf-dist/doc/latex/chronology/README
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/chronology/README.md
===================================================================
(Binary files differ)
Added: trunk/Master/texmf-dist/doc/latex/chronology/chronology.pdf
===================================================================
(Binary files differ)
Index: trunk/Master/texmf-dist/doc/latex/chronology/chronology.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/chronology/chronology.pdf 2023-08-18 21:27:48 UTC (rev 67972)
+++ trunk/Master/texmf-dist/doc/latex/chronology/chronology.pdf 2023-08-18 21:28:04 UTC (rev 67973)
Property changes on: trunk/Master/texmf-dist/doc/latex/chronology/chronology.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/latex/chronology/example.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/chronology/example.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/chronology/example.tex 2023-08-18 21:27:48 UTC (rev 67972)
+++ trunk/Master/texmf-dist/doc/latex/chronology/example.tex 2023-08-18 21:28:04 UTC (rev 67973)
@@ -1,24 +0,0 @@
-\documentclass{article}
-\usepackage{chronology}
-\begin{document}
-\begin{chronology}[5]{1983}{2010}{10cm}[7cm]
-\event{1984}{\color{blue}{one}}
-\event[1985]{1986}{\small{two}}
-\event{\decimaldate{25}{12}{2001}}{\huge{three}}
-\end{chronology}
-\vspace{5cm}
-
-\begin{chronology}*[5]{1983}{2010}{10cm}
-\event{1984}{\color{blue}{one}}
-\event[1985]{1986}{\small{two}}
-\event{\decimaldate{25}{12}{2001}}{\huge{three}}
-\end{chronology}
-\vspace{5cm}
-
-\begin{chronology}[5]{1983}{2010}{10cm}[13cm]
-\event{1984}{\color{blue}{one}}
-\event[1985]{1986}{\small{two}}
-\event{\decimaldate{25}{12}{2001}}{\huge{three}}
-\end{chronology}
-\end{document}
-
Modified: trunk/Master/texmf-dist/tex/latex/chronology/chronology.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/chronology/chronology.sty 2023-08-18 21:27:48 UTC (rev 67972)
+++ trunk/Master/texmf-dist/tex/latex/chronology/chronology.sty 2023-08-18 21:28:04 UTC (rev 67973)
@@ -1,5 +1,5 @@
\NeedsTeXFormat{LaTeX2e}%
-\ProvidesPackage{chronology}[2015/03/27 v1.1.1 Horizontal timeline]%
+\ProvidesPackage{chronology}[2023/08/20 v2.0 - Horizontal Timeline]%
\RequirePackage{calc}%
\RequirePackage{tikz}%
\RequirePackage{xparse}%
@@ -9,7 +9,9 @@
\newlength{\xstart}\newlength{\xstop}%
\newlength{\unit}\newlength{\timelinewidth}%
\newsavebox{\timelinebox}%
+%
% Defining TikZ styles for labels and events
+%
\tikzset{%
,chronevent/.style={fill=black,draw=none,opacity=0.5}
,chronlabel/.style={opacity=1}
@@ -17,8 +19,11 @@
,chroneventlabel/.style={chronlabel}
,eventlabel/.style={chroneventlabel,anchor=south west,yshift=.2\unit,rotate=45}
,flippedeventlabel/.style={chroneventlabel,anchor=north west,yshift=-.2\unit,rotate=-45}
+ ,eventlabelbottom/.style={chroneventlabel,anchor=south west,yshift=-1cm,rotate=0} % Bottom label
}
+%
% For compatibity with babel. Handling of active characters in TikZ.
+%
\tikzset{
handle active characters in code,
handle active characters in nodes
@@ -69,8 +74,11 @@
\fi%
}%
}%
+%
+% Event (legacy code for compatibility)
+%
\makeatother%
-\DeclareDocumentCommand \event {o m m}{%
+\DeclareDocumentCommand \event {o m m}{% [Startdate] Enddate Label
\pgfmathsetlength\xstop{(#2-\theyearstart)*\unit}%
\IfNoValueTF {#1} {%
\ifflipped%
@@ -95,6 +103,30 @@
\fi%
}%
}
+%
+% Eventspan
+%
+\DeclareDocumentCommand \eventspan {m m m O{black} O{0.3} O{0.2} o}{% Startdate Enddate Label Fill Opacity Height Bottom?
+ \pgfmathsetlength\xstop{(#2-\theyearstart)*\unit}%
+ \pgfmathsetlength\xstart{(#1-\theyearstart)*\unit}%
+ \IfNoValueTF {#7} {%
+ \draw[style={fill=#4,draw=none,opacity=#5},rounded corners=.05\unit]%
+ (\xstart,-#6\unit) rectangle node[eventlabel] {#3} (\xstop,.2\unit);%
+ }{%
+ \draw[style={fill=#4,draw=none,opacity=#5},rounded corners=.05\unit]% Event, bottom label
+ (\xstart,-#6\unit) rectangle node[eventlabelbottom, anchor=center]{#3} (\xstop,.2\unit);%
+ }%
+}
+%
+% Eventpoint
+%
+\DeclareDocumentCommand \eventpoint {m m O{red} O{1} O{0.3}}{% Date Label Fill Opacity Height
+ \pgfmathsetlength\xstop{(#1-\theyearstart)*\unit}%
+ \draw[style={fill=#3,draw=none,opacity=#4},rounded corners=0\unit]%
+ (\xstop, .1\unit) coordinate(A) -- (\xstop-.2*#5\unit,#5\unit) coordinate(B) -- (\xstop+.2*#5\unit,#5\unit)coordinate(C)%
+ -- cycle node[eventlabel] {#2};%
+}
+%
\newcommand{\decimaldate}[3]{(#1-1)/31/12+(#2-1)/12+#3}%
+%
\endinput%
-
More information about the tex-live-commits
mailing list.