From 1126b0b2fc4f6c72769f048ebe0f42dde3fcb38d Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Wed, 14 May 2008 13:44:43 +0000 Subject: varsfromjobname v0.4 (2008/05/12) git-svn-id: svn://tug.org/texlive/trunk@8135 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/varsfromjobname/README | 14 ++++++++------ .../doc/latex/varsfromjobname/varsfromjobname.pdf | Bin 29271 -> 33585 bytes .../doc/latex/varsfromjobname/varsfromjobname.tex | 3 ++- .../tex/latex/varsfromjobname/varsfromjobname.sty | 21 +++++++++++++++------ Master/tlpkg/bin/ctan2tds | 1 - 5 files changed, 25 insertions(+), 14 deletions(-) diff --git a/Master/texmf-dist/doc/latex/varsfromjobname/README b/Master/texmf-dist/doc/latex/varsfromjobname/README index 2077fd693f1..f496249dc01 100644 --- a/Master/texmf-dist/doc/latex/varsfromjobname/README +++ b/Master/texmf-dist/doc/latex/varsfromjobname/README @@ -1,10 +1,12 @@ README --------- -varsfromjobname.sty extracts variables from the name of the LaTeX file. +varsfromjobname.sty is based on code by supplied by Friedrich Vosberg and Markus Kohm, help from Rolf Niepraschk, Sven Naumann, Ulrich Schwarz +and Andreas Mathias was greatly appreciated. The package extracts variables from the name of the LaTeX file. -If the name of the file consists of tokens separated by hyphen, the -package offers the following commands: +If the name of the file consists of tokens separated by hyphen, the package offers the following commands: + +\getfromjobname{} with in the range of 1 to 9, which calls one of the following commands then, also available: \getonefromjobname \gettwofromjobname @@ -26,8 +28,8 @@ b) Load the package by putting \usepackage{varsfromjobname} in the preamble of c) Use the commands given above to address the specific parts of the filename. d) Adressing a token which is not available gives an error, so make sure to request - only those tokens which are actually available. + only those tokens that are actually available. -If you find this package useful, please give me feedback: +If you find this package useful, feel free to give me feedback: -Uwe Ziegenhagen, 2008-04-14 \ No newline at end of file +Uwe Ziegenhagen, 2008-05-12 \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.pdf b/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.pdf index 3c6e4297795..3c61a551ec8 100644 Binary files a/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.pdf and b/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.pdf differ diff --git a/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.tex b/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.tex index e6031ad7ee5..0d21439e048 100644 --- a/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.tex +++ b/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.tex @@ -4,7 +4,7 @@ \usepackage{varsfromjobname} -\date{April 14th 2008} +\date{May 12th 2008} \author{Uwe Ziegenhagen} \title{Jobdate Description} @@ -18,6 +18,7 @@ \noindent and offers the following commands: \begin{itemize} + \item \verb|\|getfromjobname\{\textit{param}\}, with \textit{param} in the range of 1 to 9 (highlevel interface to the following commands) \item \verb|\|getonefromjobname \item \verb|\|gettwofromjobname \item \verb|\|getthreefromjobname diff --git a/Master/texmf-dist/tex/latex/varsfromjobname/varsfromjobname.sty b/Master/texmf-dist/tex/latex/varsfromjobname/varsfromjobname.sty index a6694674b0a..c2e731f5151 100644 --- a/Master/texmf-dist/tex/latex/varsfromjobname/varsfromjobname.sty +++ b/Master/texmf-dist/tex/latex/varsfromjobname/varsfromjobname.sty @@ -1,12 +1,9 @@ -%% LaTeX2e file `varsfromjobname.sty' -%% generated by the `filecontents' environment -%% from source `one-two-three-four-five-six-seven' on 2008/04/10. -%% %begin of varsfromjobname.sty \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{varsfromjobname}[2008/04/14 v. 0.3 extracts tokens from jobname (UZ)] +\ProvidesPackage{varsfromjobname}[2008/05/12 v. 0.4 extracts tokens from jobname (UZ)] +\RequirePackage{ifthen} -%Author: Uwe Ziegenhagen +% Author: Uwe Ziegenhagen % based on code supplied by Friedrich Vosberg and Markus Kohm % help by Rolf Niepraschk and Sven Naumann, Ulrich Schwarz % and Andreas Mathias was greatly appreciated @@ -99,5 +96,17 @@ #9% } +\newcommand{\getfromjobname}[1]{ +\ifthenelse{\equal{#1}{1}}{\getonefromjobname}{} +\ifthenelse{\equal{#1}{2}}{\gettwofromjobname}{} +\ifthenelse{\equal{#1}{3}}{\getthreefromjobname}{} +\ifthenelse{\equal{#1}{4}}{\getfourfromjobname}{} +\ifthenelse{\equal{#1}{5}}{\getfivefromjobname}{} +\ifthenelse{\equal{#1}{6}}{\getsixfromjobname}{} +\ifthenelse{\equal{#1}{7}}{\getsevenfromjobname}{} +\ifthenelse{\equal{#1}{8}}{\geteightfromjobname}{} +\ifthenelse{\equal{#1}{9}}{\getninefromjobname}{} +} + \makeatother % end of jobdate.sty diff --git a/Master/tlpkg/bin/ctan2tds b/Master/tlpkg/bin/ctan2tds index 4c667b3dab5..30521bab42b 100755 --- a/Master/tlpkg/bin/ctan2tds +++ b/Master/tlpkg/bin/ctan2tds @@ -585,7 +585,6 @@ $standarddest = "texmf-dist"; 'thumbpdf', 'generic', 'trajan', 'fonts', 'variations', 'generic', - 'varsfromjobname', "die 'skipping, erroneous tds.zip (forwarded 2008/05/13)'", 'velthuis', 'fonts', 'wasy2', 'fonts', 'xltxtra', 'xelatex', -- cgit v1.2.3