summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex')
-rw-r--r--Master/texmf-dist/source/latex/currfile/currfile.dtx23
1 files changed, 18 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/currfile/currfile.dtx b/Master/texmf-dist/source/latex/currfile/currfile.dtx
index 40041d304f8..de45aa88537 100644
--- a/Master/texmf-dist/source/latex/currfile/currfile.dtx
+++ b/Master/texmf-dist/source/latex/currfile/currfile.dtx
@@ -29,10 +29,10 @@
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesFile{currfile.dtx}[%
%<=*DATE>
- 2013/02/01
+ 2015/04/23
%<=/DATE>
%<=*VERSION>
- v0.7b
+ v0.7c
%<=/VERSION>
DTX file for currfile package]
@@ -59,7 +59,7 @@
%</driver>
% \fi
%
-% \CheckSum{1115}
+% \CheckSum{1114}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -89,6 +89,7 @@
% \changes{v0.7}{2012/05/15}{Added support for parent file paths.}
% \changes{v0.7a}{2012/10/28}{Fixed issue with \pkg{enumitem} package which redefines \cs{value}.}
% \changes{v0.7b}{2013/02/01}{Support for \cs{\subinput*} etc.\ from the \pkg{import} package which requires a different path search order.}
+% \changes{v0.7c}{2015/04/23}{Removed stack underflow warning if loaded by other package. Set default file name in this case to main file name.}
%
% \GetFileInfo{currfile.dtx}
%
@@ -110,6 +111,19 @@
% Optionally also the absolute location of current input file can be provided if a special compiler option is enabled.
% \end{abstract}
%
+% \tableofcontents
+%
+% \section{Important notice}
+% This package relies heavily on the package \pkg{filehook} by the same author and installs at-begin and at-end hooks for all files.
+% The provided macros for the file names \emph{will only work for files loaded \emph{after} the package}.
+% This means only for files which are getting opened afterwards and where not yet opened, as the at-begin hook is required to run.
+% The macros will therefore not work correctly in a package which loaded \pkg{currfile}, but for all further loaded packages.
+%
+% The options \opt{abspath} and \opt{realmainfile} may be used to improve the behavior in such cases.
+%
+% However, it is simply recommended to load \pkg{currfile} as early as possible. It can even be loaded before the class using
+% \Macro\RequirePackage{currfile}.
+%
% \section{Usage}
%
% \DescribeMacro{\currfiledir}
@@ -631,7 +645,6 @@
\relax
\global\advance\c@currfiledepth by\m@ne
\else
- \PackageWarning{currfile}{File stack underflow!}%
\global\let\currfile@stack\currfile@stackinit
\global\c@currfiledepth=\z@
\fi
@@ -777,7 +790,6 @@
\let\currfileabsdir\@empty
\newcounter{currfiledepth}
\global\c@currfiledepth\m@ne
-\currfile@push
\ifcurrfile@realmainfile
\getmainfile
\ifx\themainfile\@empty
@@ -788,6 +800,7 @@
\else
\currfile@set{\currfile@maindir\jobname.\currfile@mainext}
\fi
+\currfile@push
\let\currfile@stackinit\currfile@stack
% \end{macrocode}
% \end{macro}