diff options
author | Karl Berry <karl@freefriends.org> | 2012-10-30 00:37:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-10-30 00:37:51 +0000 |
commit | 589c808de60d7786108243b9b141e21fda476e0b (patch) | |
tree | 808e7812dd006eb70cbf7ce98767c16d20a2233c /Master/texmf-dist/tex/latex/currfile | |
parent | 0e4ef3ad025d03f0ead2e0fda9dc43f8f059920c (diff) |
currfile (29oct12)
git-svn-id: svn://tug.org/texlive/trunk@28118 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/currfile')
-rw-r--r-- | Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/currfile/currfile.sty | 14 |
2 files changed, 9 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty b/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty index 0b733d0a2af..01e37626b0c 100644 --- a/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty +++ b/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty @@ -1,7 +1,7 @@ \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{currfile-abspath}[% - 2012/05/15 - v0.7 + 2012/10/28 + v0.7a Provides absolute file paths, the parent working directory and the main file name] \newcommand*\thepwd{} \newcommand*\theabspath{} diff --git a/Master/texmf-dist/tex/latex/currfile/currfile.sty b/Master/texmf-dist/tex/latex/currfile/currfile.sty index 6bb2bf48b73..be5358989e5 100644 --- a/Master/texmf-dist/tex/latex/currfile/currfile.sty +++ b/Master/texmf-dist/tex/latex/currfile/currfile.sty @@ -1,7 +1,7 @@ \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{currfile}[% - 2012/05/15 - v0.7 + 2012/10/28 + v0.7a Provides the file path elements of the current input file] \RequirePackage{kvoptions} \SetupKeyvalOptions{family=currfile,prefix=currfile@} @@ -79,7 +79,7 @@ \global\let\currfileabspath\theabspath \xdef\currfileabsdir{\theabsdir\currfiledir}% \fi - \addtocounter{currfiledepth}\@ne + \global\advance\c@currfiledepth by\@ne \endgroup } \ifcurrfile@parent @@ -162,13 +162,13 @@ \def\currfile@pop{% \ifcase0% \ifx\currfile@stack\empty 1\else - \ifnum\value{currfiledepth}<\@ne 1\fi\fi + \ifnum\c@currfiledepth<\@ne 1\fi\fi \relax - \addtocounter{currfiledepth}\m@ne + \global\advance\c@currfiledepth by\m@ne \else \PackageWarning{currfile}{File stack underflow!}% \global\let\currfile@stack\currfile@stackinit - \setcounter{currfiledepth}\z@ + \global\c@currfiledepth=\z@ \fi \expandafter\currfile@pop@\currfile@stack\relax \relax\relax\relax\relax\relax\relax\relax @@ -272,7 +272,7 @@ \let\currfileabspath\@empty \let\currfileabsdir\@empty \newcounter{currfiledepth} -\setcounter{currfiledepth}\m@ne +\global\c@currfiledepth\m@ne \currfile@push \ifcurrfile@realmainfile \getmainfile |