-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compatibility with older graphics.sty versions
- Loading branch information
Showing
2 changed files
with
31 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
% \iffalse meta-comment | ||
% | ||
% Copyright (C) 2018 by Max Schwarz <[email protected]> | ||
% Copyright (C) 2021 by Max Schwarz <[email protected]> | ||
% --------------------------------------------------------------------------- | ||
% This work may be distributed and/or modified under the | ||
% conditions of the BSD 3-clause license. See LICENSE for details. | ||
|
@@ -19,7 +19,7 @@ | |
%<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] | ||
%<package>\ProvidesPackage{graphicscache} | ||
%<*package> | ||
[2018/10/03 v0.1 Cache includegraphics calls] | ||
[2021/04/08 v0.2 Cache includegraphics calls] | ||
%</package> | ||
% | ||
%<*driver> | ||
|
@@ -58,6 +58,7 @@ | |
% | ||
% | ||
% \changes{v0.1}{2018/10/03}{Initial version} | ||
% \changes{v0.2}{2021/04/08}{Better compatibility with different graphicx versions} | ||
% | ||
% \DoNotIndex{\newcommand,\newenvironment} | ||
% | ||
|
@@ -465,37 +466,43 @@ | |
\begingroup | ||
\global\graphicscache@existstrue | ||
\let\input@path\Ginput@path | ||
\set@curr@file{#1}% | ||
\expandafter\filename@parse\expandafter{\@curr@file}% | ||
\ifx\filename@ext\Gin@gzext | ||
\expandafter\filename@parse\expandafter{\filename@base}% | ||
\ifx\filename@ext\relax | ||
\let\filename@ext\Gin@gzext | ||
\else | ||
\edef\Gin@ext{\Gin@ext\Gin@sepdefault\Gin@gzext}% | ||
\@ifpackagelater{graphics}{2017/06/25}{% | ||
\set@curr@file{#1}% | ||
\expandafter\filename@parse\expandafter{\@curr@file}% | ||
\ifx\filename@ext\Gin@gzext | ||
\expandafter\filename@parse\expandafter{\filename@base}% | ||
\ifx\filename@ext\relax | ||
\let\filename@ext\Gin@gzext | ||
\else | ||
\edef\Gin@ext{\Gin@ext\Gin@sepdefault\Gin@gzext}% | ||
\fi | ||
\fi | ||
\fi | ||
}{% | ||
\filename@parse{#1}% | ||
}% | ||
\ifx\filename@ext\relax | ||
\@for\Gin@temp:=\Gin@extensions\do{% | ||
\ifx\Gin@ext\relax | ||
\Gin@getbase\Gin@temp | ||
\fi}% | ||
\else | ||
\Gin@getbase{\Gin@sepdefault\filename@ext}% | ||
\ifx\Gin@ext\relax | ||
\let\Gin@savedbase\filename@base | ||
\let\Gin@savedext\filename@ext | ||
\edef\filename@base{\filename@base\Gin@sepdefault\filename@ext}% | ||
\let\filename@ext\relax | ||
\@for\Gin@temp:=\Gin@extensions\do{% | ||
\ifx\Gin@ext\relax | ||
\Gin@getbase\Gin@temp | ||
\fi}% | ||
\@ifpackagelater{graphics}{2017/06/25}{% | ||
\ifx\Gin@ext\relax | ||
\let\filename@base\Gin@savedbase | ||
\let\filename@ext\Gin@savedext | ||
\let\Gin@savedbase\filename@base | ||
\let\Gin@savedext\filename@ext | ||
\edef\filename@base{\filename@base\Gin@sepdefault\filename@ext}% | ||
\let\filename@ext\relax | ||
\@for\Gin@temp:=\Gin@extensions\do{% | ||
\ifx\Gin@ext\relax | ||
\Gin@getbase\Gin@temp | ||
\fi}% | ||
\ifx\Gin@ext\relax | ||
\let\filename@base\Gin@savedbase | ||
\let\filename@ext\Gin@savedext | ||
\fi | ||
\fi | ||
\fi | ||
}{}% | ||
\fi | ||
\ifx\Gin@ext\relax | ||
\global\graphicscache@existsfalse | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
|
||
This is a generated file. | ||
|
||
Copyright (C) 2018 by Max Schwarz <[email protected]> | ||
Copyright (C) 2021 by Max Schwarz <[email protected]> | ||
based on the sty2dtx template by Scott Pakin <[email protected]>. | ||
|
||
This file may be distributed and/or modified under the conditions of | ||
|