summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/progressbar
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-02-19 23:32:34 +0000
committerKarl Berry <karl@freefriends.org>2012-02-19 23:32:34 +0000
commit04fb8cc057e192c9406dd61df56c808f88eeb3c5 (patch)
treedd23a0fcb16b53ca93c94aab2ffa3d99cf53733e /Master/texmf-dist/tex/latex/progressbar
parentbec520863474a2c3743eeefb46847f4c09de096f (diff)
progressbar (19feb12)
git-svn-id: svn://tug.org/texlive/trunk@25431 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/progressbar')
-rw-r--r--Master/texmf-dist/tex/latex/progressbar/progressbar.sty22
1 files changed, 13 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/progressbar/progressbar.sty b/Master/texmf-dist/tex/latex/progressbar/progressbar.sty
index ac50bf87f4a..167dbbcc64d 100644
--- a/Master/texmf-dist/tex/latex/progressbar/progressbar.sty
+++ b/Master/texmf-dist/tex/latex/progressbar/progressbar.sty
@@ -1,10 +1,9 @@
-
% ProgressBar
%
% kindly supported by mrunix-forum: http://www.mrunix.de/
%
%% progressbar.sty
-%% Copyright 2010 Marcel Jira
+%% Copyright 2012 Marcel Jira
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -22,22 +21,27 @@
%
\NeedsTeXFormat{LaTeX2e}%
%
-\ProvidesPackage{progressbar}[2010/10/02 v1.0b: progressbar]%
+\ProvidesPackage{progressbar}[2012/02/18 v1.0b~2: progressbar]%
%
\newcommand{\progressbarpackagename}{progressbar}%
\newcommand{\progressbar@PackageWarning}[1]{\PackageWarning{\progressbarpackagename}{#1}}%
-\newcommand{\progressbar@LoadFile@IfExist}[1]{%
- \IfFileExists{#1.sty}{%
- \RequirePackage{#1}%
+\newcommand{\progressbar@LoadFile@IfExist}[2][]{%
+ \IfFileExists{#2.sty}{%
+ \@ifpackagelater{#2}{#1}{%
+ \RequirePackage{#2}%
+ }{%
+ \progressbar@PackageWarning{The package #2 is older than #1\MessageBreak%
+ but a version from or newer #1 is required by \progressbarname}%
+ }%
}{%
- \progressbar@PackageWarning{The package #1 does not exist\MessageBreak%
+ \progressbar@PackageWarning{The package #2 does not exist\MessageBreak%
but it is required by \progressbarname}%
}%
}%
%
\progressbar@LoadFile@IfExist{calc}%
\progressbar@LoadFile@IfExist{tikz}%
-\progressbar@LoadFile@IfExist{kvoptions}%
+\progressbar@LoadFile@IfExist[2011/08/03]{kvoptions}%
\progressbar@LoadFile@IfExist{kvsetkeys}%
%
% Define lengths for later use
@@ -173,4 +177,4 @@
% Rounded Corners again
\draw[rounded corners=\BarRoundedCorners,line width=\BarBorderWidth,color=\progressbarlocal@linecolor] (Begin) rectangle (End);%
\end{tikzpicture}%
-}% \ No newline at end of file
+}%