diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-05-14 13:44:43 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2008-05-14 13:44:43 +0000 |
commit | 1126b0b2fc4f6c72769f048ebe0f42dde3fcb38d (patch) | |
tree | 5c06f5a41812cb4f78c562732e123960e753bae2 /Master/texmf-dist/tex/latex/varsfromjobname/varsfromjobname.sty | |
parent | 08f3b2dad37e6f0acf8b8090c3e2207acb0b940f (diff) |
varsfromjobname v0.4 (2008/05/12)
git-svn-id: svn://tug.org/texlive/trunk@8135 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/varsfromjobname/varsfromjobname.sty')
-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 |