diff options
author | Karl Berry <karl@freefriends.org> | 2022-10-10 20:22:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-10-10 20:22:26 +0000 |
commit | 793d2c31e077f91a0573b85c8a499a45dd4a2e0e (patch) | |
tree | 2fd653aa245771e097d0a963d25a7ebaff864f79 | |
parent | 10978f66143b953f5a492189a55b3ebb40d44583 (diff) |
currfile (10oct22)
git-svn-id: svn://tug.org/texlive/trunk@64673 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/currfile/README | 6 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/currfile/currfile.pdf | bin | 172948 -> 182606 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/currfile/currfile.dtx | 29 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty | 4 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/currfile/currfile.sty | 13 |
5 files changed, 33 insertions, 19 deletions
diff --git a/Master/texmf-dist/doc/latex/currfile/README b/Master/texmf-dist/doc/latex/currfile/README index d8c9f7be4cc..26eb70dd626 100644 --- a/Master/texmf-dist/doc/latex/currfile/README +++ b/Master/texmf-dist/doc/latex/currfile/README @@ -1,8 +1,8 @@ LaTeX package 'currfile' ~~~~~~~~~~~~~~~~~~~~~~~~ -Copyright (c) 2010-2020 by Martin Scharrer <martin@scharrer-online.de> -WWW: https://sourceforge.net/projects/currfile/ -Code repository: https://sourceforge.net/p/currfile/code/ +Copyright (c) 2010-2022 by Martin Scharrer <martin.scharrer@web.de> +Repository: https://github.com/MartinScharrer/currfile +Issues: https://github.com/MartinScharrer/currfile/issues Provides macros holding the file name information (dir, base name, extension, full name and full path) for files read by LaTeX's \input and \include macros. diff --git a/Master/texmf-dist/doc/latex/currfile/currfile.pdf b/Master/texmf-dist/doc/latex/currfile/currfile.pdf Binary files differindex fa175e52482..21c3c7f4b22 100644 --- a/Master/texmf-dist/doc/latex/currfile/currfile.pdf +++ b/Master/texmf-dist/doc/latex/currfile/currfile.pdf diff --git a/Master/texmf-dist/source/latex/currfile/currfile.dtx b/Master/texmf-dist/source/latex/currfile/currfile.dtx index 5f677130a09..539c8dc728f 100644 --- a/Master/texmf-dist/source/latex/currfile/currfile.dtx +++ b/Master/texmf-dist/source/latex/currfile/currfile.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment %<=*COPYRIGHT> %% -%% Copyright (c) 2010-2020 by Martin Scharrer <martin@scharrer-online.de> +%% Copyright (c) 2010-2022 by Martin Scharrer <martin.scharrer@web.de> %% ---------------------------------------------------------------------- %% %% This work may be distributed and/or modified under the @@ -29,10 +29,10 @@ \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesFile{currfile.dtx}[% %<=*DATE> - 2020/09/29 + 2022/10/10 %<=/DATE> %<=*VERSION> - v0.7d + v0.8 %<=/VERSION> DTX file for currfile package] @@ -59,7 +59,7 @@ %</driver> % \fi % -% \CheckSum{1114} +% \CheckSum{1115} % % \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 @@ -91,6 +91,7 @@ % \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.} % \changes{v0.7d}{2020/09/29}{Updated documentation for 2020/10/01 \LaTeX\ release.} +% \changes{v0.8}{2022/10/10}{Fixed issue with filename with spaces.} % % % \GetFileInfo{currfile.dtx} @@ -103,8 +104,8 @@ % \DoNotIndex{\message,\jobname,\@namedef} % % \author{Martin Scharrer} -% \email{martin@scharrer-online.de} -% \repository{https://sourceforge.net/projects/currfile/} +% \email{martin.scharrer@web.de} +% \repository{https://github.com/MartinScharrer/currfile} % \maketitle % % \begin{abstract} @@ -529,6 +530,16 @@ % \end{macro} % % +% \begin{macro}{\currfile@openin}[2]{file handle}{file path} +% Opens the given file for reading. +% \begin{macrocode} +\def\currfile@openin#1#2{% +\openin#1="#2"\relax +} +% \end{macrocode} +% \end{macro} +% +% % \begin{macro}{\currfile@checkpath} % This loop is placed in an own macro for efficiency reasons. % In the majority of cases it should not be needed and having it as @@ -537,7 +548,7 @@ % \changes{2011/09/18}{v0.5}{New macro as part of the \cs{input@path} support.} % \begin{macrocode} \def\currfile@checkpath{% - \openin\@inputcheck\@filef@und\relax +\currfile@openin{\@inputcheck}{\@filef@und}% \ifeof\@inputcheck \currfile@check@inputpath \fi @@ -554,7 +565,7 @@ \expandafter\@tfor \expandafter\@tempb \expandafter:\expandafter=\input@path\do{% - \openin\@inputcheck\@tempb\@filef@und\relax +\currfile@openin{\@inputcheck}{\@tempb\@filef@und}% \ifeof\@inputcheck\else \edef\@filef@und{\@tempb\@filef@und}% \@break@tfor @@ -572,7 +583,7 @@ \ifx\IfFileExists\@iffileonpath \currfile@check@inputpath \else - \openin\@inputcheck\@filef@und\relax +\currfile@openin{\@inputcheck}{\@filef@und}% \ifeof\@inputcheck \currfile@check@inputpath \fi diff --git a/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty b/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty index 414162a4733..2b896d34a81 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}[% - 2020/09/29 - v0.7d + 2022/10/10 + v0.8 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 2fdfcc3a2e0..2d2b67f8004 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}[% - 2020/09/29 - v0.7d + 2022/10/10 + v0.8 Provides the file path elements of the current input file] \RequirePackage{kvoptions} \SetupKeyvalOptions{family=currfile,prefix=currfile@} @@ -105,8 +105,11 @@ \else \let\currfile@setparent\relax \fi +\def\currfile@openin#1#2{% +\openin#1="#2"\relax +} \def\currfile@checkpath{% - \openin\@inputcheck\@filef@und\relax +\currfile@openin{\@inputcheck}{\@filef@und}% \ifeof\@inputcheck \currfile@check@inputpath \fi @@ -116,7 +119,7 @@ \expandafter\@tfor \expandafter\@tempb \expandafter:\expandafter=\input@path\do{% - \openin\@inputcheck\@tempb\@filef@und\relax +\currfile@openin{\@inputcheck}{\@tempb\@filef@und}% \ifeof\@inputcheck\else \edef\@filef@und{\@tempb\@filef@und}% \@break@tfor @@ -128,7 +131,7 @@ \ifx\IfFileExists\@iffileonpath \currfile@check@inputpath \else - \openin\@inputcheck\@filef@und\relax +\currfile@openin{\@inputcheck}{\@filef@und}% \ifeof\@inputcheck \currfile@check@inputpath \fi |