texlive[64673] Master/texmf-dist: currfile (10oct22)

commits+karl at tug.org commits+karl at tug.org
Mon Oct 10 22:22:26 CEST 2022


Revision: 64673
          http://tug.org/svn/texlive?view=revision&revision=64673
Author:   karl
Date:     2022-10-10 22:22:26 +0200 (Mon, 10 Oct 2022)
Log Message:
-----------
currfile (10oct22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/currfile/README
    trunk/Master/texmf-dist/doc/latex/currfile/currfile.pdf
    trunk/Master/texmf-dist/source/latex/currfile/currfile.dtx
    trunk/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty
    trunk/Master/texmf-dist/tex/latex/currfile/currfile.sty

Modified: trunk/Master/texmf-dist/doc/latex/currfile/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/currfile/README	2022-10-10 20:22:05 UTC (rev 64672)
+++ trunk/Master/texmf-dist/doc/latex/currfile/README	2022-10-10 20:22:26 UTC (rev 64673)
@@ -1,8 +1,8 @@
 LaTeX package 'currfile'
 ~~~~~~~~~~~~~~~~~~~~~~~~
-Copyright (c) 2010-2020 by Martin Scharrer <martin at 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 at 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.

Modified: trunk/Master/texmf-dist/doc/latex/currfile/currfile.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/currfile/currfile.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/currfile/currfile.dtx	2022-10-10 20:22:05 UTC (rev 64672)
+++ trunk/Master/texmf-dist/source/latex/currfile/currfile.dtx	2022-10-10 20:22:26 UTC (rev 64673)
@@ -1,7 +1,7 @@
 % \iffalse meta-comment
 %<=*COPYRIGHT>
 %%
-%% Copyright (c) 2010-2020 by Martin Scharrer <martin at scharrer-online.de>
+%% Copyright (c) 2010-2022 by Martin Scharrer <martin.scharrer at 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 at scharrer-online.de}
-% \repository{https://sourceforge.net/projects/currfile/}
+% \email{martin.scharrer at web.de}
+% \repository{https://github.com/MartinScharrer/currfile}
 % \maketitle
 %
 % \begin{abstract}
@@ -529,6 +530,16 @@
 % \end{macro}
 %
 %
+% \begin{macro}{\currfile at openin}[2]{file handle}{file path}
+% Opens the given file for reading.
+%    \begin{macrocode}
+\def\currfile at openin#1#2{%
+\openin#1="#2"\relax
+}
+%    \end{macrocode}
+% \end{macro}
+%
+%
 % \begin{macro}{\currfile at 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 at path} support.}
 %    \begin{macrocode}
 \def\currfile at checkpath{%
-    \openin\@inputcheck\@filef at und\relax
+\currfile at openin{\@inputcheck}{\@filef at und}%
     \ifeof\@inputcheck
         \currfile at check@inputpath
     \fi
@@ -554,7 +565,7 @@
     \expandafter\@tfor
     \expandafter\@tempb
     \expandafter:\expandafter=\input at path\do{%
-        \openin\@inputcheck\@tempb\@filef at und\relax
+\currfile at openin{\@inputcheck}{\@tempb\@filef at und}%
         \ifeof\@inputcheck\else
             \edef\@filef at und{\@tempb\@filef at und}%
             \@break at tfor
@@ -572,7 +583,7 @@
     \ifx\IfFileExists\@iffileonpath
         \currfile at check@inputpath
     \else
-        \openin\@inputcheck\@filef at und\relax
+\currfile at openin{\@inputcheck}{\@filef at und}%
         \ifeof\@inputcheck
             \currfile at check@inputpath
         \fi

Modified: trunk/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty	2022-10-10 20:22:05 UTC (rev 64672)
+++ trunk/Master/texmf-dist/tex/latex/currfile/currfile-abspath.sty	2022-10-10 20:22:26 UTC (rev 64673)
@@ -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{}

Modified: trunk/Master/texmf-dist/tex/latex/currfile/currfile.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/currfile/currfile.sty	2022-10-10 20:22:05 UTC (rev 64672)
+++ trunk/Master/texmf-dist/tex/latex/currfile/currfile.sty	2022-10-10 20:22:26 UTC (rev 64673)
@@ -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 at setparent\relax
 \fi
+\def\currfile at openin#1#2{%
+\openin#1="#2"\relax
+}
 \def\currfile at checkpath{%
-    \openin\@inputcheck\@filef at und\relax
+\currfile at openin{\@inputcheck}{\@filef at und}%
     \ifeof\@inputcheck
         \currfile at check@inputpath
     \fi
@@ -116,7 +119,7 @@
     \expandafter\@tfor
     \expandafter\@tempb
     \expandafter:\expandafter=\input at path\do{%
-        \openin\@inputcheck\@tempb\@filef at und\relax
+\currfile at openin{\@inputcheck}{\@tempb\@filef at und}%
         \ifeof\@inputcheck\else
             \edef\@filef at und{\@tempb\@filef at und}%
             \@break at tfor
@@ -128,7 +131,7 @@
     \ifx\IfFileExists\@iffileonpath
         \currfile at check@inputpath
     \else
-        \openin\@inputcheck\@filef at und\relax
+\currfile at openin{\@inputcheck}{\@filef at und}%
         \ifeof\@inputcheck
             \currfile at check@inputpath
         \fi



More information about the tex-live-commits mailing list.