summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/currfile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/currfile')
-rw-r--r--Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty4
-rw-r--r--Master/texmf-dist/tex/latex/currfile/currfile.sty14
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