diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/varsfromjobname/varsfromjobname.sty | 21 |
1 files changed, 15 insertions, 6 deletions
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 |