summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/graphics-def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-02-05 21:23:55 +0000
committerKarl Berry <karl@freefriends.org>2022-02-05 21:23:55 +0000
commit0db7db3e5510d71010cbf3ddd83a016c60743f08 (patch)
tree86695d0516e7a16536e059faa1b1e84e54eedad0 /Master/texmf-dist/tex/latex/graphics-def
parent37f962e45f3978d88f1ecd0c6ff492d5e9f3f448 (diff)
graphics-def (5feb22)
git-svn-id: svn://tug.org/texlive/trunk@61899 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/graphics-def')
-rw-r--r--Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def11
1 files changed, 9 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def b/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def
index 4c13e2ae1aa..1f2e0577d4b 100644
--- a/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def
+++ b/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def
@@ -1,6 +1,6 @@
%% dvisvgm.def
%% Copyright 2015 by Till Tantau
-%% Copyright 2016-2021 by Till Tantau and LaTeX3 Project
+%% Copyright 2016-2022 by Till Tantau and LaTeX3 Project
%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
@@ -16,7 +16,7 @@
%%
%% https://github.com/latex3/graphics-def/issues
%
-\ProvidesFile{dvisvgm.def}[2021/11/21 v1.3 dvisvgm graphics driver for latex]
+\ProvidesFile{dvisvgm.def}[2022/02/05 v1.4 dvisvgm graphics driver for latex]
% The following is copied from dvips.def:
\def\GPT@space{ }
\def\c@lor@arg#1{%
@@ -68,6 +68,13 @@
{\PackageError{color}{Undefined color `#1'}\@ehd}%
{\edef#4{ #1}}%
}
+% Mapping to literal Postscript, matching dvips.def, used by PSTricks
+\def\c@lor@to@ps#1 #2\@@{\csname c@lor@ps@#1\endcsname#2 \@@}
+\def\c@lor@ps@#1 #2\@@{TeXDict begin #1 end}
+\def\c@lor@ps@rgb#1\@@{#1 setrgbcolor}
+\def\c@lor@ps@hsb#1\@@{#1 sethsbcolor}
+\def\c@lor@ps@cmyk#1\@@{#1 setcmykcolor}
+\def\c@lor@ps@gray#1\@@{#1 setgray}
\def\current@color{ Black}
\def\set@color{\special{color push \current@color}\aftergroup\reset@color}
\def\reset@color{\special{color pop}}