-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HiTeX: Adding initial color support for HiLaTeX, updating the manual
git-svn-id: svn://tug.org/texlive/trunk/Build/source@73485 c570f23f-e606-0410-a88d-b1316a301751
- Loading branch information
Showing
11 changed files
with
213 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
2025-01-17 Martin Ruckert <[email protected]> | ||
* Adding limited LaTeX color support | ||
|
||
2024-11-11 Martin Ruckert <[email protected]> | ||
|
||
* Adding the color extensions | ||
* Moving to version 2.1 of hitex and the HINT file format | ||
|
||
2024-03-10 Karl Berry <[email protected]> | ||
|
||
* TL'24 release. | ||
|
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,19 +18,67 @@ | |
\ProvidesFile{hitex.def} | ||
[2023/04/17 v0.1a Graphics/color driver for hitex] | ||
|
||
\def\c@lor@arg#1{% | ||
\dimen@#1\p@ | ||
\ifdim\dimen@<\z@\dimen@\maxdimen\fi | ||
\ifdim\dimen@>\p@ | ||
\PackageError{color}{Argument `#1' not in range [0,1]}\@ehd | ||
\fi} | ||
|
||
\def\set@color{% | ||
\special{}% | ||
\hi@color@warn | ||
\global\def\current@color{0 0 0} | ||
\def\set@color{%\message{Set:\current@color.} | ||
\HINTcolor{\current@color}% | ||
\aftergroup\reset@color} | ||
\def\reset@color{\special{}}% | ||
\def\set@page@color{%\message{Set page:\current@color.} | ||
\HINTcolor{\current@color}% | ||
\aftergroup\reset@color} | ||
\def\reset@color{%\message{Reset()} | ||
\HINTendcolor}% | ||
|
||
\def\hi@color@warn{% | ||
\PackageWarning{color}{color not supported\@gobble}% | ||
\global\let\hi@color@warn\relax} | ||
|
||
% Thanks to Ulrike Fischer | ||
\def\color@named#1#2{\c@lor@@named#2,,\@@#1} | ||
\def\define@color@named#1#2% | ||
{\let\@@cls\@empty\@namedef{\@backslashchar color@#1}{{}{}{#2}{}{}}} | ||
\def\c@lor@@named#1,#2,#3\@@#4% | ||
{\edef#4{\expandafter\expandafter\expandafter\@thirdoffive | ||
\csname\@backslashchar color@#1\endcsname}} | ||
|
||
|
||
\def\color@rgb#1#2{\c@lor@@rgb#2\@@#1} | ||
\def\c@lor@@rgb#1,#2,#3\@@#4{% | ||
\c@lor@arg{#1}% | ||
\c@lor@arg{#2}% | ||
\c@lor@arg{#3}% | ||
\edef#4{fg{#1 #2 #3}}% | ||
} | ||
|
||
\def\color@RGB#1#2{\c@lor@@RGB#2\@@#1} | ||
\def\c@lor@@RGB#1,#2,#3\@@#4{% | ||
\c@lor@arg{#1}% | ||
\c@lor@arg{#2}% | ||
\c@lor@arg{#3}% | ||
\edef#4{FG{#1 #2 #3}}% | ||
} | ||
|
||
|
||
\def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1} | ||
\def\c@lor@@cmyk#1,#2,#3,#4\@@#5{% | ||
\c@lor@arg{#4}% | ||
\c@lor@arg{#1}% | ||
\c@lor@arg{#2}% | ||
\c@lor@arg{#3}% | ||
\edef#5{fg{cmyk #1 #2 #3 #4}}% | ||
} | ||
|
||
\def\color@gray#1#2{% | ||
\c@lor@arg{#2}% | ||
\edef#1{fg{#2 #2 #2}}% | ||
} | ||
|
||
\def\color@rgb#1#2{\def#1{}} | ||
|
||
\def\Gin@extensions{.png,.jpg} | ||
\@namedef{Gin@[email protected]}#1{{png}{.png}{#1}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
% $Id$ | ||
% Karl Berry, 2022. Public domain. | ||
%\input plain.tex | ||
\input etex.src | ||
|