texlive[67157] Build/source/texk/web2c/hitexdir/tex: HINT adding

commits+mruckert at tug.org commits+mruckert at tug.org
Fri May 19 17:31:15 CEST 2023


Revision: 67157
          http://tug.org/svn/texlive?view=revision&revision=67157
Author:   mruckert
Date:     2023-05-19 17:31:15 +0200 (Fri, 19 May 2023)
Log Message:
-----------
HINT adding experimental files for LaTeX image inclusion

Added Paths:
-----------
    trunk/Build/source/texk/web2c/hitexdir/tex/color.cfg
    trunk/Build/source/texk/web2c/hitexdir/tex/graphics.cfg
    trunk/Build/source/texk/web2c/hitexdir/tex/hitex.def

Added: trunk/Build/source/texk/web2c/hitexdir/tex/color.cfg
===================================================================
--- trunk/Build/source/texk/web2c/hitexdir/tex/color.cfg	                        (rev 0)
+++ trunk/Build/source/texk/web2c/hitexdir/tex/color.cfg	2023-05-19 15:31:15 UTC (rev 67157)
@@ -0,0 +1,70 @@
+% https://creativecommons.org/publicdomain/zero/1.0/
+
+\ProvidesFile{color.cfg}%
+  [2023/04/17 v1.7 sample color configuration]
+
+% Select an appropriate default driver
+\begingroup
+  \chardef\x=0\relax
+  % check luatex
+  \ifx\luatexversion\@undefined
+  % check pdfTeX
+  \@ifundefined{pdfoutput}{}{%
+    \ifnum\pdfoutput<1 %
+    \else
+      \chardef\x=1\relax
+    \fi
+  }%
+  % check VTeX
+  \@ifundefined{OpMode}{}{%
+    \chardef\x=2\relax
+  }%
+  % check XeTeX
+  \@ifundefined{XeTeXversion}{}{%
+    \chardef\x=3\relax
+  }%
+  % check HiTeX
+  \@ifundefined{HINTversion}{}{%
+    \chardef\x=5\relax
+  }%
+  \else
+    \ifnum\luatexversion>85
+      \ifnum\outputmode>0
+      \chardef\x=4\relax
+      \fi
+    \else
+      \ifnum\pdfoutput>0
+      \chardef\x=1\relax
+      \fi
+    \fi
+  \fi
+\expandafter\endgroup
+\ifcase\x
+  % default case
+  \def\Gin at driver{dvips.def}%
+  \ExecuteOptions{dvips}%
+\or
+  % pdfTeX is running in pdf mode
+  \def\Gin at driver{pdftex.def}%
+  \ExecuteOptions{pdftex}%
+\or
+  % VTeX is running
+  \def\Gin at driver{vtex.def}%
+  \ExecuteOptions{vtex}%
+\or
+  % XeTeX is running
+  \def\Gin at driver{xetex.def}%
+  \ExecuteOptions{xetex}%
+\or
+  % luatex (> 0.85)
+  \def\Gin at driver{luatex.def}%
+  \ExecuteOptions{luatex}%
+\or
+  % HiTeX is running
+  \def\Gin at driver{hitex.def}%
+  \DeclareOption{hitex}{\def\Gin at driver{hitex.def}}
+  \ExecuteOptions{hitex}%
+\else
+  \PackageError{color}{Unexpected configuration}{}
+\fi
+\endinput


Property changes on: trunk/Build/source/texk/web2c/hitexdir/tex/color.cfg
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Build/source/texk/web2c/hitexdir/tex/graphics.cfg
===================================================================
--- trunk/Build/source/texk/web2c/hitexdir/tex/graphics.cfg	                        (rev 0)
+++ trunk/Build/source/texk/web2c/hitexdir/tex/graphics.cfg	2023-05-19 15:31:15 UTC (rev 67157)
@@ -0,0 +1,70 @@
+% https://creativecommons.org/publicdomain/zero/1.0/
+
+\ProvidesFile{graphics.cfg}%
+  [2023/04/17 v1.12 sample graphics configuration]%
+
+% Select an appropriate default driver
+\begingroup
+  \chardef\x=0\relax
+  % check luatex
+  \ifx\luatexversion\@undefined
+  % check pdfTeX
+  \@ifundefined{pdfoutput}{}{%
+    \ifnum\pdfoutput<1 %
+    \else
+      \chardef\x=1\relax
+    \fi
+  }%
+  % check VTeX
+  \@ifundefined{OpMode}{}{%
+    \chardef\x=2\relax
+  }%
+  % check XeTeX
+  \@ifundefined{XeTeXversion}{}{%
+    \chardef\x=3\relax
+  }%
+  % check HiTeX
+  \@ifundefined{HINTversion}{}{%
+    \chardef\x=5\relax
+  }%
+  \else
+    \ifnum\luatexversion>85
+      \ifnum\outputmode>0
+      \chardef\x=4\relax
+      \fi
+    \else
+      \ifnum\pdfoutput>0
+      \chardef\x=1\relax
+      \fi
+    \fi
+  \fi
+\expandafter\endgroup
+\ifcase\x
+  % default case
+  \def\Gin at driver{dvips.def}%
+  \ExecuteOptions{dvips}%
+\or
+  % pdfTeX is running in pdf mode
+  \def\Gin at driver{pdftex.def}%
+  \ExecuteOptions{pdftex}%
+\or
+  % VTeX is running
+  \def\Gin at driver{vtex.def}%
+  \ExecuteOptions{vtex}%
+\or
+  % XeTeX is running
+  \def\Gin at driver{xetex.def}%
+  \ExecuteOptions{xetex}%
+\or
+  % luatex (> 0.85)
+  \def\Gin at driver{luatex.def}%
+  \ExecuteOptions{luatex}%
+\or
+  % HiTeX is running
+  \def\Gin at driver{hitex.def}%
+  \DeclareOption{hitex}{\def\Gin at driver{hitex.def}}
+  \ExecuteOptions{hitex}%
+\else
+  \PackageError{graphics}{Unexpected configuration}{}
+\fi
+\endinput


Property changes on: trunk/Build/source/texk/web2c/hitexdir/tex/graphics.cfg
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: trunk/Build/source/texk/web2c/hitexdir/tex/hitex.def
===================================================================
--- trunk/Build/source/texk/web2c/hitexdir/tex/hitex.def	                        (rev 0)
+++ trunk/Build/source/texk/web2c/hitexdir/tex/hitex.def	2023-05-19 15:31:15 UTC (rev 67157)
@@ -0,0 +1,57 @@
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either version 1.3c
+%% of this license or (at your option) any later version.
+%% The latest version of this license is in
+%%   http://www.latex-project.org/lppl.txt
+%% and version 1.3c or later is part of all distributions of LaTeX
+%% version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status `maintained'.
+%%
+%% The Current Maintainer of this work is the LaTeX3 Project.
+%%
+%% https://github.com/latex3/graphics-def/issues
+%%
+
+% VERY MINIMAL hitex file for color/graphics
+\ProvidesFile{hitex.def}
+  [2023/04/17 v0.1a Graphics/color driver for hitex]
+
+
+\def\set at color{%
+ \special{}%
+ \hi at color@warn
+ \aftergroup\reset at color}
+\def\reset at color{\special{}}%
+
+\def\hi at color@warn{%
+  \PackageWarning{color}{color not supported\@gobble}%
+  \global\let\hi at color@warn\relax}
+  
+
+\def\color at rgb#1#2{\def#1{}}
+
+\def\Gin at extensions{.png,.jpg}
+\@namedef{Gin at rule@.png}#1{{png}{.png}{#1}}
+\@namedef{Gin at rule@.jpg}#1{{jpg}{.jpg}{#1}}
+
+
+\def\Gread at png#1{%
+\setbox\@tempboxa\hbox{\HINTimage=#1\relax}%
+      \def\Gin at llx{0}\let\Gin at lly\Gin at llx
+      \Gin at defaultbp\Gin at urx{\wd\@tempboxa}% = 0...
+      \Gin at defaultbp\Gin at ury{\ht\@tempboxa}% = 0...
+      %\def\Gin at urx{72}\let\Gin at ury\Gin at urx
+      \Gin at nat@height\Gin at ury bp
+      \Gin at nat@width\Gin at urx bp
+      }
+
+\def\Ginclude at png#1{%
+   \mbox{\HINTimage=#1 width \Gin at req@width height\Gin at req@height\relax}%
+}
+
+\let\Gread at jpg\Gread at png
+\let\Ginclude at jpg\Ginclude at png
+
+\endinput


Property changes on: trunk/Build/source/texk/web2c/hitexdir/tex/hitex.def
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property


More information about the tex-live-commits mailing list.