[latex3-commits] [git/LaTeX3-latex3-graphics-cfg] hint: add hitex option to color/graphics via cfg file (43edbb0)

David Carlisle d.p.carlisle at gmail.com
Tue Apr 18 13:08:53 CEST 2023


Repository : https://github.com/latex3/graphics-cfg
On branch  : hint
Link       : https://github.com/latex3/graphics-cfg/commit/43edbb0ba952be6ed49ab2cecb472404ef3395b3

>---------------------------------------------------------------

commit 43edbb0ba952be6ed49ab2cecb472404ef3395b3
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Tue Apr 18 12:08:53 2023 +0100

    add hitex option to color/graphics via cfg file


>---------------------------------------------------------------

43edbb0ba952be6ed49ab2cecb472404ef3395b3
 color.cfg    | 11 ++++++++++-
 graphics.cfg | 11 ++++++++++-
 2 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/color.cfg b/color.cfg
index fd06879..c5c5999 100644
--- a/color.cfg
+++ b/color.cfg
@@ -1,7 +1,7 @@
 % https://creativecommons.org/publicdomain/zero/1.0/
 
 \ProvidesFile{color.cfg}%
-  [2016/01/02 v1.6 sample color configuration]
+  [2023/04/17 v1.7 sample color configuration]
 
 % Select an appropriate default driver
 \begingroup
@@ -23,6 +23,10 @@
   \@ifundefined{XeTeXversion}{}{%
     \chardef\x=3\relax
   }%
+  % check HiTeX
+  \@ifundefined{HINTversion}{}{%
+    \chardef\x=5\relax
+  }%
   \else
     \ifnum\luatexversion>85
       \ifnum\outputmode>0
@@ -55,6 +59,11 @@
   % luatex (> 0.85)
   \def\Gin at driver{luatex.def}%
   \ExecuteOptions{luatex}%
+\or
+  % HiTeX is running
+  \def\Gin at driver{hitex.def}%
+  \DeclareOption{xetex}{\def\Gin at driver{xetex.def}}
+  \ExecuteOptions{hitex}%
 \else
   \PackageError{color}{Unexpected configuration}{}
 \fi
diff --git a/graphics.cfg b/graphics.cfg
index 7a6d9ac..e9cffa6 100644
--- a/graphics.cfg
+++ b/graphics.cfg
@@ -1,7 +1,7 @@
 % https://creativecommons.org/publicdomain/zero/1.0/
 
 \ProvidesFile{graphics.cfg}%
-  [2016/06/04 v1.11 sample graphics configuration]%
+  [2023/04/17 v1.12 sample graphics configuration]%
 
 % Select an appropriate default driver
 \begingroup
@@ -23,6 +23,10 @@
   \@ifundefined{XeTeXversion}{}{%
     \chardef\x=3\relax
   }%
+  % check HiTeX
+  \@ifundefined{HINTversion}{}{%
+    \chardef\x=5\relax
+  }%
   \else
     \ifnum\luatexversion>85
       \ifnum\outputmode>0
@@ -55,6 +59,11 @@
   % luatex (> 0.85)
   \def\Gin at driver{luatex.def}%
   \ExecuteOptions{luatex}%
+\or
+  % HiTeX is running
+  \def\Gin at driver{hitex.def}%
+  \DeclareOption{xetex}{\def\Gin at driver{xetex.def}}
+  \ExecuteOptions{hitex}%
 \else
   \PackageError{graphics}{Unexpected configuration}{}
 \fi





More information about the latex3-commits mailing list.