[latex3-commits] [git/LaTeX3-latex3-graphics-def] main: color to PostScript so pstricks works with dvisvgm.def not just dvips.def (e3ea82c)
David Carlisle
d.p.carlisle at gmail.com
Sat Feb 5 16:35:05 CET 2022
Repository : https://github.com/latex3/graphics-def
On branch : main
Link : https://github.com/latex3/graphics-def/commit/e3ea82c8f1f7b0c839b86a2fbad10d5da72cb203
>---------------------------------------------------------------
commit e3ea82c8f1f7b0c839b86a2fbad10d5da72cb203
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Sat Feb 5 15:35:05 2022 +0000
color to PostScript so pstricks works with dvisvgm.def not just dvips.def
>---------------------------------------------------------------
e3ea82c8f1f7b0c839b86a2fbad10d5da72cb203
README.md | 2 +-
dvisvgm.def | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 6128dee..7f21def 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
LaTeX support for color and graphics
====================================
-Release 2021-11-21
+Release 2022-02-05
This bundle contains the 'engine-dependent' part of support for
color and graphics in LaTeX2e (the code here will also function
diff --git a/dvisvgm.def b/dvisvgm.def
index 4c13e2a..1f2e057 100644
--- a/dvisvgm.def
+++ b/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 at space{ }
\def\c at 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 at lor@to at ps#1 #2\@@{\csname c at lor@ps@#1\endcsname#2 \@@}
+\def\c at lor@ps@#1 #2\@@{TeXDict begin #1 end}
+\def\c at lor@ps at rgb#1\@@{#1 setrgbcolor}
+\def\c at lor@ps at hsb#1\@@{#1 sethsbcolor}
+\def\c at lor@ps at cmyk#1\@@{#1 setcmykcolor}
+\def\c at lor@ps at gray#1\@@{#1 setgray}
\def\current at color{ Black}
\def\set at color{\special{color push \current at color}\aftergroup\reset at color}
\def\reset at color{\special{color pop}}
More information about the latex3-commits
mailing list.