[latex3-commits] [git/LaTeX3-latex3-graphics-def] zipped: Add 'zipped' type and make it raise an error in XeTeX (42cfa65)
PhelypeOleinik
phelype.oleinik at latex-project.org
Fri Mar 5 18:39:49 CET 2021
Repository : https://github.com/latex3/graphics-def
On branch : zipped
Link : https://github.com/latex3/graphics-def/commit/42cfa65bd1e5c7ec788ded3efa9b61280286e33e
>---------------------------------------------------------------
commit 42cfa65bd1e5c7ec788ded3efa9b61280286e33e
Author: PhelypeOleinik <phelype.oleinik at latex-project.org>
Date: Fri Mar 5 14:39:49 2021 -0300
Add 'zipped' type and make it raise an error in XeTeX
>---------------------------------------------------------------
42cfa65bd1e5c7ec788ded3efa9b61280286e33e
xetex.def | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/xetex.def b/xetex.def
index 25dd2ce..03fab09 100644
--- a/xetex.def
+++ b/xetex.def
@@ -84,7 +84,7 @@
background \current at color}}
\def\define at color@named#1#2{%
\expandafter\let\csname col@#1\endcsname\@nnil}
-% white is special cased as "no bacground color" by dvipdfmx
+% white is special cased as "no background color" by dvipdfmx
\def\no at page@color{\special{background gray 1}}
\@ifundefined{Gin at decode}
{\let\Gin at decode\@empty}
@@ -148,6 +148,13 @@
}%
}
\def\Gread@@xetex at box#1box{#1}
+\def\Gread at zipped#1{\Gread at false}
+\def\Ginclude at zipped#1{%
+ \PackageError{graphics}
+ {Unsupported graphics extension \Gin at ext\space with XeTeX}
+ {The backend driver for XeTeX does not support compressed graphics.\MessageBreak
+ Uncompress `#1' and use the uncompressed file.}%
+}
\def\GPT at setup@scale{%
\def\@tempa{!}%
\ifx\Gin at scaley\@tempa
@@ -396,11 +403,11 @@
\@namedef{Gin at rule@.mps}#1{{mps}{.mps}{#1}}
\@namedef{Gin at rule@.MPS}#1{{mps}{.mps}{#1}}
% (don't bother with uppercase versions for these Unixish extensions)
-\@namedef{Gin at rule@.pz}#1{{eps}{.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.eps.Z}#1{{eps}{.eps.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.ps.Z}#1{{eps}{.ps.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.ps.gz}#1{{eps}{.ps.xbb}{`gunzip -c #1}}
-\@namedef{Gin at rule@.eps.gz}#1{{eps}{.eps.xbb}{`gunzip -c #1}}
+\@namedef{Gin at rule@.pz}#1{{zipped}{.xbb}{#1}}
+\@namedef{Gin at rule@.eps.Z}#1{{zipped}{.eps.xbb}{#1}}
+\@namedef{Gin at rule@.ps.Z}#1{{zipped}{.ps.xbb}{#1}}
+\@namedef{Gin at rule@.ps.gz}#1{{zipped}{.ps.xbb}{#1}}
+\@namedef{Gin at rule@.eps.gz}#1{{zipped}{.eps.xbb}{#1}}
%
\@namedef{Gin at rule@*}#1{{eps}{\Gin at ext}{#1}}
\@ifundefined{ifGin at setpagesize}
More information about the latex3-commits
mailing list.