[latex3-commits] [git/LaTeX3-latex3-graphics-def] master: clipping PDF and PS now fully supported by dvisvgm (a36ce58)
Alexander Grahn
grahn at null.org
Sat Mar 21 23:26:26 CET 2020
Repository : https://github.com/latex3/graphics-def
On branch : master
Link : https://github.com/latex3/graphics-def/commit/a36ce582f8fed0ae8a7d491fae90387c7fefd8df
>---------------------------------------------------------------
commit a36ce582f8fed0ae8a7d491fae90387c7fefd8df
Author: Alexander Grahn <grahn at null.org>
Date: Sat Mar 21 23:26:26 2020 +0100
clipping PDF and PS now fully supported by dvisvgm
>---------------------------------------------------------------
a36ce582f8fed0ae8a7d491fae90387c7fefd8df
dvisvgm.def | 21 ++-------------------
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/dvisvgm.def b/dvisvgm.def
index 7c43739..8999ff7 100644
--- a/dvisvgm.def
+++ b/dvisvgm.def
@@ -15,7 +15,7 @@
%%
%% https://github.com/latex3/graphics-def/issues
%
-\ProvidesFile{dvisvgm.def}[2018//11/02 v1.1a dvisvgm graphics driver for latex]
+\ProvidesFile{dvisvgm.def}[2020/03/22 v1.2 dvisvgm graphics driver for latex]
% The following is copied from dvips.def:
\def\GPT at space{ }
\def\c at lor@arg#1{%
@@ -88,16 +88,6 @@
\divide\dimen@\dimen at ii
\@tempdima\Gin at req@height
\divide\@tempdima\dimen at ii
- \ifGin at clip%
- \Gin at req@width0.99626\Gin at req@width%
- \Gin at req@height0.99626\Gin at req@height%
- \special{dvisvgm:raw
- <g><clipPath id="GinClip\Gin at clip@id">%
- <path d="M{?x},{?y}l\strip at pt\Gin at req@width,0l0,-\strip at pt\Gin at req@height
- l-\strip at pt\Gin at req@width,0Z"/>%
- </clipPath>%
- <g clip-path="url(\Gin at hash@tag GinClip\Gin at clip@id)">}%
- \fi%
\special{#2="#1"\GPT at space
\ifx\Gin at page\@empty\else page=\Gin at page\GPT at space\fi
llx=\Gin at llx\GPT at space
@@ -106,14 +96,8 @@
ury=\Gin at ury\GPT at space
\ifx\Gin at scalex\@tempa\else rwi=\number\dimen@\GPT at space\fi
\ifx\Gin at scaley\@tempa\else rhi=\number\@tempdima\GPT at space\fi
-% \ifGin at clip clip\fi % to be implemented in dvisvgm-2.7.x
+ \ifGin at clip clip\fi
}%
- \ifGin at clip%
- \special{dvisvgm:raw </g></g>}%
- \begingroup%
- \count@\Gin at clip@id\advance\count@ by\@ne\xdef\Gin at clip@id{\the\count@}%
- \endgroup%
- \fi%
\egroup}
\@namedef{Gin at rule@.ps}#1{{eps}{.ps}{#1}}
\@namedef{Gin at rule@.eps}#1{{eps}{.eps}{#1}}
@@ -231,7 +215,6 @@
\def\Gread at svg@width at double"#1"#2\relax{\afterassignment\Gin at gobble@till at relax\dimen@#1pt\relax\edef\Gin at urx{\strip at pt\dimen@}}
\def\Gin at gobble@till at relax#1\relax{}
\edef\Gin at hash@tag{\string#}
-\def\Gin at clip@id{0}
\@namedef{Gin at rule@.jpg}#1{{bitmap}{.xbb}{#1}}
\@namedef{Gin at rule@.jpeg}#1{{bitmap}{.xbb}{#1}}
More information about the latex3-commits
mailing list.