texlive[52727] Master: grffile

commits+karl at tug.org commits+karl at tug.org
Sun Nov 10 23:09:48 CET 2019


Revision: 52727
          http://tug.org/svn/texlive?view=revision&revision=52727
Author:   karl
Date:     2019-11-10 23:09:48 +0100 (Sun, 10 Nov 2019)
Log Message:
-----------
grffile

Modified Paths:
--------------
    trunk/Master/tlpkg/libexec/ctan2tds

Added Paths:
-----------
    trunk/Master/texmf-dist/tex/latex/grffile/
    trunk/Master/texmf-dist/tex/latex/grffile/grffile-2017-06-30.sty
    trunk/Master/texmf-dist/tex/latex/grffile/grffile.sty

Added: trunk/Master/texmf-dist/tex/latex/grffile/grffile-2017-06-30.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/grffile/grffile-2017-06-30.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/grffile/grffile-2017-06-30.sty	2019-11-10 22:09:48 UTC (rev 52727)
@@ -0,0 +1,501 @@
+%%
+%% This is file `grffile-2017-06-30.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% grffile.dtx  (with options: `package')
+%% 
+%% This is a generated file.
+%% 
+%% Project: grffile
+%% 
+%% Copyright (C) 2006-2012  Heiko Oberdiek
+%%               2016-2019 Oberdiek Package Support Group
+%%    https://github.com/ho-tex/grffile/issues
+%% 
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%%    http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%%    http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%% 
+%% This work has the LPPL maintenance status "maintained".
+%% 
+%% This Current Maintainer of this work is Heiko Oberdiek.
+%% 
+%% This work consists of the main source file grffile.dtx
+%% and the derived files
+%%    grffile.sty, grffile.pdf, grffile.ins, grffile.drv,
+%%    grffile-test1.tex.
+%% 
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{grffile}%
+  [2017/06/30 v1.18 Extended file name support for graphics (HO)]%
+\edef\grffile at RestoreCatcodes{%
+  \catcode`\noexpand\=\the\catcode`\=\relax
+  \catcode`\noexpand\:\the\catcode`\:\relax
+  \catcode`\noexpand\.\the\catcode`\.\relax
+  \catcode`\noexpand\'\the\catcode`\'\relax
+  \catcode`\noexpand\<\the\catcode`\<\relax
+  \catcode`\noexpand\>\the\catcode`\>\relax
+  \catcode`\noexpand\*\the\catcode`\*\relax
+  \catcode`\noexpand\^\the\catcode`\^\relax
+  \catcode`\noexpand\~\the\catcode`\~\relax
+}
+\@makeother\=
+\@makeother\:
+\@makeother\.
+\@makeother\'
+\@makeother\<
+\@makeother\>
+\@makeother\*
+\catcode`\^=7 %
+\catcode`\~=\active
+\RequirePackage{ifpdf}[2010/01/28]
+\RequirePackage{ifxetex}[2010/09/12]
+\RequirePackage{kvoptions}[2006/08/17]
+\SetupKeyvalOptions{%
+  family=Gin,%
+  prefix=grffile@%
+}
+\DeclareDefaultOption{\@unknownoptionerror}
+\DeclareBoolOption[true]{multidot}
+\DeclareBoolOption[true]{babel}
+\DeclareBoolOption[false]{extendedchars}
+\DeclareBoolOption{space}
+\DeclareVoidOption{encoding}{%
+  \RequirePackage{stringenc}\relax
+}
+\DeclareStringOption{inputencoding}
+\DeclareStringOption{filenameencoding}
+\DeclareDefaultOption{%
+  \PassOptionsToPackage\CurrentOption{graphics}%
+}
+\RequirePackage{pdftexcmds}[2007/11/11]
+\ifxetex
+  \grffile at spacetrue
+\else
+  \begingroup\expandafter\expandafter\expandafter\endgroup
+  \expandafter\ifx\csname pdf at filesize\endcsname\relax
+    \grffile at spacefalse
+    \let\grffile at space@disabled\@empty
+    \def\grffile at spacetrue{%
+      \PackageWarning{grffile}{%
+        Option `space' is not available,\MessageBreak
+        because it needs pdfTeX >= 1.30 or XeTeX%
+      }%
+    }%
+  \else
+    \ifpdf
+      \grffile at spacetrue
+    \else
+      \grffile at spacefalse
+    \fi
+  \fi
+\fi
+\ProcessKeyvalOptions*
+\AtBeginDocument{%
+  \DisableKeyvalOption[package=grffile]{Gin}{encoding}%
+}
+\RequirePackage{graphics}
+\newcommand*{\grffilesetup}{%
+  \setkeys{Gin}%
+}
+\let\grffile at org@Ginclude at graphics\Ginclude at graphics
+\renewcommand*{\Ginclude at graphics}{%
+  \ifx\grffile at filenameencoding\@empty
+  \else
+    \ifx\grffile at inputencoding\@empty
+      \expandafter\ifx\csname inputencodingname\endcsname\relax
+        \expandafter\ifx\csname
+            CurrentInputEncodingOption\endcsname\relax
+        \else
+          \let\grffile at inputencoding\CurrentInputEncodingOption
+        \fi
+      \else
+        \let\grffile at inputencoding\inputencodingname
+      \fi
+    \fi
+    \ifx\grffile at inputencoding\@empty
+    \else
+      \grffile at extendedcharstrue
+    \fi
+  \fi
+  \ifnum0\ifgrffile at babel 1\fi\ifgrffile at extendedchars 1\fi>\z@
+    \begingroup
+      \ifgrffile at babel
+        \csname @safe at activestrue\endcsname
+        \edef~{\string~}%
+      \fi
+      \ifgrffile at extendedchars
+        \grffile at inputenc@loop\^^A\^^H%
+        \grffile at inputenc@loop\^^K\^^K%
+        \grffile at inputenc@loop\^^N\^^_%
+        \grffile at inputenc@loop\^^?\^^ff%
+      \fi
+      \expandafter\grffile at extchar@Ginclude at graphics
+  \else
+    \expandafter\grffile at Ginclude@graphics
+  \fi
+}
+\def\grffile at extchar@Ginclude at graphics#1{%
+  \toks@{#1}%
+  \edef\grffile at filename{\the\toks@}%
+  \ifx\grffile at inputencoding\@empty
+  \else
+    \ifx\grfile at filenameencoding\@empty
+    \else
+      \ifx\grffile at inputencoding\grffile at filenameencoding
+      \else
+        \expandafter\ifx\csname StringEncodingConvert\endcsname\relax
+          \PackageError{grffile}{%
+            Package `stringenc' is not loaded,\MessageBreak
+            omitting file name conversion%
+          }\@ehc
+        \else
+          \StringEncodingConvert\grffile at temp\grffile at filename
+              \grffile at inputencoding\grffile at filenameencoding
+          \StringEncodingSuccessFailure{%
+            \let\grffile at filename\grffile at temp
+          }{%
+            \PackageError{grffile}{%
+              Filename conversion failed%
+            }\@ehc
+          }%
+        \fi
+      \fi
+    \fi
+  \fi
+  \edef\x{\endgroup
+    \noexpand\grffile at Ginclude@graphics{\grffile at filename}%
+  }%
+  \x
+}
+\def\grffile at inputenc@loop#1#2{%
+  \count@=`#1\relax
+  \loop
+    \begingroup
+      \uccode`\~=\count@
+    \uppercase{%
+      \endgroup
+      \edef~{\string~}%
+    }%
+  \ifnum\count@<`#2\relax
+    \advance\count@\@ne
+  \repeat
+}
+\def\grffile at space@getbase#1{%
+  \edef\grffile at tempa{%
+    \def\noexpand\@tempa####1#1\noexpand\@nil{%
+      \def\noexpand\Gin at base{####1}%
+    }%
+  }%
+  \grffile at IfFileExists{\filename at area\filename at base#1}{%
+    \grffile at tempa
+    \expandafter\@tempa\grffile at file@found\@nil
+    \edef\Gin at ext{#1}%
+  }{%
+  }%
+}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname pdf at filesize\endcsname\relax
+  \ifxetex
+    \long\def\grffile at XeTeX@IfFileExists#1{%
+      \openin\@inputcheck"#1" %
+      \ifeof\@inputcheck
+        \closein\@inputcheck
+        \expandafter\@secondoftwo
+      \else
+        \closein\@inputcheck
+        \expandafter\@firstoftwo
+      \fi
+    }%
+    \long\def\grffile at IfFileExists#1{%
+      \grffile at XeTeX@IfFileExists{#1}{%
+        \edef\grffile at file@found{#1}%
+        \@firstoftwo
+      }{%
+        \let\reserved at a\@secondoftwo
+        \ifx\input at path\@undefined
+        \else
+          \expandafter\@tfor\expandafter\reserved at b\expandafter
+              :\expandafter=\input at path\do{%
+            \grffile at XeTeX@IfFileExists{\reserved at b#1}{%
+              \edef\grffile at file@found{\reserved at b#1}%
+              \let\reserved at a\@firstoftwo
+              \iftrue\@break at tfor\fi
+            }{}%
+          }%
+        \fi
+        \reserved at a
+      }%
+    }%
+    \def\grffile at org@Gread at QTm#1{%
+      \IfFileExists{\Gin at base.bb}{%
+        \Gread at eps{\Gin at base.bb}%
+      }{%
+        \G at measure@QTm{\Gin at base}{\Gin at ext}%
+      }%
+    }%
+    \ifx\Gread at QTm\grffile at org@Gread at QTm
+      \def\Gread at QTm#1{%
+        \grffile at IfFileExists{\Gin at base.bb}{%
+          \Gread at eps{\Gin at base.bb}%
+        }{%
+          \G at measure@QTm{\Gin at base}{\Gin at ext}%
+        }%
+      }%
+      \PackageInfo{grffile}{\string\Gread at QTm\space patched}%
+    \else
+      \begingroup\expandafter\expandafter\expandafter\endgroup
+      \expandafter\ifx\csname Gread at QTm\endcsname\relax
+        \@ifpackagelater{graphics}{2017/06/01}
+          {}
+          {%
+            \PackageWarning{grffile}{%
+              \string\Gread at QTm\space of xetex.def not found%
+            }%
+          }%
+      \else
+        \let\grffile at org@Gread at QTm\Gread at QTm
+        \def\Gread at QTm#1{%
+          \let\grffile at saved@IfFileExists\IfFileExists
+          \let\IfFileExists\grffile at IfFileExists
+          \grffile at org@GreadQTm{#1}%
+          \let\IfFileExists\grffile at saved@IfFileExists
+        }%
+      \fi
+    \fi
+    \let\grffile at org@Gread at eps\Gread at eps
+    \def\grffile at temp#1\immediate\openin#2 #3\grffile at nil#4\grffile at NIL{%
+      \begingroup
+      \toks@{#2}%
+      \edef\grffile at temp{\the\toks@}%
+      \def\grffile at test{\@inputcheck####1}%
+      \ifx\grffile at temp\grffile at test
+        \expandafter\@firstoftwo
+      \else
+        \expandafter\@secondoftwo
+      \fi
+      {%
+        \toks@{%
+          #1%
+          \immediate\openin\@inputcheck"##1"\relax
+          #3%
+        }%
+        \expandafter\endgroup
+        \expandafter\def\expandafter\Gread at eps
+        \expandafter##\expandafter1\expandafter{%
+          \the\toks@
+        }%
+        \PackageInfo{grffile}{%
+          \string\Gread at eps\space patched%
+        }%
+      }{%
+        \@ifpackagelater{graphics}{2017/06/01}
+          {}
+          {%
+            \PackageWarning{grffile}{%
+              Unsupported \string\Gread at eps\space not patched%
+            }%
+          }%
+        \endgroup
+      }%
+    }%
+    \expandafter\grffile at temp\Gread at eps{#1}\grffile at nil
+        \immediate\openin{} \grffile at nil\grffile at NIL
+  \else
+    \begingroup
+      \let\on at line\@empty
+      \PackageInfo{grffile}{%
+        \string\grffile at IfFileExists\space without space support,%
+        \MessageBreak
+        because pdfTeX's \string\pdffilesize\space is not available%
+        \MessageBreak
+        or XeTeX is not running%
+      }%
+    \endgroup
+    \long\def\grffile at IfFileExists#1{%
+      \IfFileExists{#1}{%
+        \let\grffile at IFE@next\@firstoftwo
+      }{%
+        \let\grffile at file@found\@filef at und
+        \let\grffile at IFE@next\@secondoftwo
+      }%
+      \grffile at IFE@next
+    }%
+  \fi
+\else
+  \long\def\grffile at IfFileExists#1{%
+    \expandafter\expandafter\expandafter
+    \ifx\expandafter\expandafter\expandafter\\\pdf at filesize{#1}\\%
+      \let\reserved at a\@secondoftwo
+      \ifx\input at path\@undefined
+      \else
+        \expandafter\@tfor\expandafter\reserved at b\expandafter
+            :\expandafter=\input at path\do{%
+          \expandafter\expandafter\expandafter
+          \ifx\expandafter\expandafter\expandafter
+              \\\pdf at filesize{\reserved at b#1}\\%
+          \else
+            \edef\grffile at file@found{\reserved at b#1}%
+            \let\reserved at a\@firstoftwo
+            \@break at tfor
+          \fi
+        }%
+      \fi
+      \expandafter\reserved at a
+    \else
+      \edef\grffile at file@found{#1}%
+      \expandafter\@firstoftwo
+    \fi
+  }%
+\fi
+\def\grffile at Ginclude@graphics#1{%
+  \begingroup
+    \ifgrffile at space
+      \let\Gin at getbase\grffile at space@getbase
+    \fi
+    \ifgrffile at multidot
+      \let\filename at base\@empty
+      \let\filename at simple\grffile at filename@simple
+    \fi
+    \grffile at org@Ginclude at graphics{#1}%
+  \endgroup
+}%
+\def\grffile at filename@simple#1.#2\\{%
+  \ifx\\#2\\%
+    \def\filename at base{#1}%
+    \let\filename at ext\relax
+  \else
+    \def\filename at base{}%
+    \grffile at analyze@ext{#1}.{#2}\\%
+  \fi
+}
+\def\grffile at analyze@ext#1.#2\\{%
+  \let\grffile at next\relax
+  \ifx\\#2\\%
+    \edef\filename at base{\filename at base#1}%
+    \let\filename at ext\relax
+    \def\grffile at next{\grffile at try@extlist}%
+  \else
+    \edef\filename at base{\filename at base #1}%
+    \edef\filename at ext{\filename at dot#2\\}%
+    \expandafter\ifx\csname Gin at rule@.\filename at ext\endcsname\relax
+      \edef\filename at base{\filename at base.}%
+      \def\grffile at next{\grffile at analyze@ext#2\\}%
+    \else
+      \grffile at IfFileExists{\filename at area\filename at base.\filename at ext}{%
+        % success
+      }{%
+        \edef\filename at base{\filename at base.\filename at ext}%
+        \let\filename at ext\relax
+        \def\grffile at next{\grffile at try@extlist}%
+      }%
+    \fi
+  \fi
+  \grffile at next
+}
+\def\grffile at try@extlist{%
+  \@for\grffile at temp:=\Gin at extensions\do{%
+    \grffile at IfFileExists{\filename at area\filename at base\grffile at temp}{%
+      \ifx\filename at ext\relax
+        \edef\filename at ext{\expandafter\@gobble\grffile at temp\@empty}%
+      \fi
+    }{}%
+  }%
+  \ifx\filename at ext\relax
+    \expandafter\let\expandafter\filename at base\expandafter\@empty
+    \expandafter\grffile at use@last at ext\filename at base.\\%
+  \fi
+}
+\def\grffile at use@last at ext#1.#2\\{%
+  \ifx\\#2\\%
+    \edef\filename at base{\expandafter\filename at dot\filename at base\\}%
+    \def\filename at ext{#1}%
+    \expandafter\@gobble
+  \else
+    \edef\filename at base{\filename at base#1.}%
+    \expandafter\@firstofone
+  \fi
+  {%
+    \grffile at use@last at ext#2\\%
+  }%
+}
+\def\grffile at option@status#1{%
+  \begingroup
+    \let\on at line\@empty
+    \PackageInfo{grffile}{%
+      Option `#1' is %
+      \expandafter\ifx\csname ifgrffile@#1\expandafter\endcsname
+                      \csname iftrue\endcsname
+        set to `true'%
+      \else
+        \expandafter\ifx\csname grffile@#1 at disabled\endcsname\@empty
+          not available%
+        \else
+          set to `false'%
+        \fi
+      \fi
+    }%
+  \endgroup
+}
+\grffile at option@status{multidot}
+\grffile at option@status{extendedchars}
+\grffile at option@status{space}
+\def\grffile at Gin@ii at graphicx[#1]#2{%
+  \def\@tempa{[}%
+  \def\@tempb{#2}%
+  \ifx\@tempa\@tempb
+    \def\@tempa{\Gin at iii[#1][}% hash-ok
+    \expandafter\@tempa
+  \else
+    \begingroup
+      \@tempswafalse
+      \toks@{\Ginclude at graphics{#2}}%
+      \setkeys{Gin}{#1}%
+      \Gin at esetsize
+      \the\toks@
+    \endgroup
+  \fi
+}
+\def\grffile at Gin@ii at fixed[#1]#2{%
+  \def\@tempa{[}%
+  \begingroup
+    \toks@={#2}%
+    \edef\@tempb{\the\toks@}%
+  \expandafter\endgroup
+  \ifx\@tempa\@tempb
+    \def\@tempa{\Gin at iii[#1][}% hash-ok
+    \expandafter\@tempa
+  \else
+    \begingroup
+      \@tempswafalse
+      \toks@{\Ginclude at graphics{#2}}%
+      \setkeys{Gin}{#1}%
+      \Gin at esetsize
+      \the\toks@
+    \endgroup
+  \fi
+}
+\def\grffile at Fix@Gin at ii{%
+  \let\Gin at ii\grffile at Gin@ii at fixed
+  \begingroup
+    \escapechar=92 %
+    \PackageInfo{grffile}{\string\Gin at ii\space of package `graphicx' fixed}%
+  \endgroup
+}
+\ifx\Gin at ii\grffile at Gin@ii at graphicx
+  \grffile at Fix@Gin at ii
+\else
+  \AtBeginDocument{\grffile at Fix@Gin at ii}%
+\fi
+\grffile at RestoreCatcodes
+\endinput
+%%
+%% End of file `grffile-2017-06-30.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/grffile/grffile-2017-06-30.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Master/texmf-dist/tex/latex/grffile/grffile.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/grffile/grffile.sty	                        (rev 0)
+++ trunk/Master/texmf-dist/tex/latex/grffile/grffile.sty	2019-11-10 22:09:48 UTC (rev 52727)
@@ -0,0 +1,44 @@
+%%
+%% This is file `grffile.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% grffile.dtx  (with options: `new')
+%% 
+%% This is a generated file.
+%% 
+%% Project: grffile
+%% 
+%% Copyright (C) 2006-2012  Heiko Oberdiek
+%%               2016-2019 Oberdiek Package Support Group
+%%    https://github.com/ho-tex/grffile/issues
+%% 
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3c of this license or (at your option) any later
+%% version. This version of this license is in
+%%    http://www.latex-project.org/lppl/lppl-1-3c.txt
+%% and the latest version of this license is in
+%%    http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%% 
+%% This work has the LPPL maintenance status "maintained".
+%% 
+%% This Current Maintainer of this work is Heiko Oberdiek.
+%% 
+%% This work consists of the main source file grffile.dtx
+%% and the derived files
+%%    grffile.sty, grffile.pdf, grffile.ins, grffile.drv,
+%%    grffile-test1.tex.
+%% 
+\DeclareRelease{v1}{2017-06-30}{grffile-2017-06-30.sty}
+\DeclareCurrentRelease{}{2019-11-03}
+\ProvidesPackage{grffile}%
+  [2019/11/03 v2.0 Extended file name support for graphics (legacy)]%
+\PackageInfo{grffile}{This package is an empty stub for compatibility}
+\RequirePackage{graphicx}
+\endinput
+%%
+%% End of file `grffile.sty'.


Property changes on: trunk/Master/texmf-dist/tex/latex/grffile/grffile.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2019-11-10 22:07:38 UTC (rev 52726)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2019-11-10 22:09:48 UTC (rev 52727)
@@ -2700,6 +2700,7 @@
  'gost'         => 'latex',  # requires interaction
  'grabbox'	=> 'tex',
  'graphics-pln' => "env TEXINPUTS=$Master/texmf-dist/source/latex/base: latex",
+ 'grffile'	=> 'tex',
  'halloweenmath' => 'latex',  # requires interaction
  'hecthese'	=> 'etex',
  'hf-tikz'      => 'tex',



More information about the tex-live-commits mailing list