texlive[53584] Master: hycolor (28jan20)

commits+karl at tug.org commits+karl at tug.org
Tue Jan 28 23:33:06 CET 2020


Revision: 53584
          http://tug.org/svn/texlive?view=revision&revision=53584
Author:   karl
Date:     2020-01-28 23:33:05 +0100 (Tue, 28 Jan 2020)
Log Message:
-----------
hycolor (28jan20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/hycolor/hycolor.pdf
    trunk/Master/texmf-dist/source/latex/hycolor/hycolor.dtx
    trunk/Master/texmf-dist/tex/latex/hycolor/hycolor.sty
    trunk/Master/texmf-dist/tex/latex/hycolor/xcolor-patch.sty
    trunk/Master/tlpkg/libexec/ctan2tds

Modified: trunk/Master/texmf-dist/doc/latex/hycolor/hycolor.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/hycolor/hycolor.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/hycolor/hycolor.dtx	2020-01-28 22:12:12 UTC (rev 53583)
+++ trunk/Master/texmf-dist/source/latex/hycolor/hycolor.dtx	2020-01-28 22:33:05 UTC (rev 53584)
@@ -1,12 +1,12 @@
 % \iffalse meta-comment
 %
 % File: hycolor.dtx
-% Version: 2019/12/15 v1.9
+% Version: 2020-01-27 v1.10
 % Info: Color options for hyperref/bookmark
 %
 % Copyright (C)
 %    2007-2011 Heiko Oberdiek
-%    2016-2019 Oberdiek Package Support Group
+%    2016-2020 Oberdiek Package Support Group
 %    https://github.com/ho-tex/hycolor/issues
 %
 % This work may be distributed and/or modified under the
@@ -53,7 +53,7 @@
 %    use A4 as paper format:
 %       \PassOptionsToClass{a4paper}{article}
 %
-%    Programm calls to get the documentation (example):
+%    Program calls to get the documentation (example):
 %       pdflatex hycolor.dtx
 %       makeindex -s gind.ist hycolor.idx
 %       pdflatex hycolor.dtx
@@ -81,7 +81,7 @@
 \input docstrip.tex
 \Msg{************************************************************************}
 \Msg{* Installation}
-\Msg{* Package: hycolor 2019/12/15 v1.9 Color options for hyperref/bookmark (HO)}
+\Msg{* Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO)}
 \Msg{************************************************************************}
 
 \keepsilent
@@ -93,11 +93,11 @@
 This is a generated file.
 
 Project: hycolor
-Version: 2019/12/15 v1.9
+Version: 2020-01-27 v1.10
 
 Copyright (C)
    2007-2011 Heiko Oberdiek
-   2016-2019 Oberdiek Package Support Group
+   2016-2020 Oberdiek Package Support Group
 
 This work may be distributed and/or modified under the
 conditions of the LaTeX Project Public License, either
@@ -156,7 +156,7 @@
 %<*driver>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesFile{hycolor.drv}%
-  [2019/12/15 v1.9 Color options for hyperref/bookmark (HO)]%
+  [2020-01-27 v1.10 Color options for hyperref/bookmark (HO)]%
 \documentclass{ltxdoc}
 \usepackage{holtxdoc}[2011/11/22]
 \usepackage[ruled]{algorithm2e}
@@ -205,7 +205,7 @@
 % \GetFileInfo{hycolor.drv}
 %
 % \title{The \xpackage{hycolor} package}
-% \date{2019/12/15 v1.9}
+% \date{2020-01-27 v1.10}
 % \author{Heiko Oberdiek\thanks
 % {Please report any issues at \url{https://github.com/ho-tex/hycolor/issues}}}
 %
@@ -232,7 +232,7 @@
 % \begin{quote}
 %   |\hypersetup{linkbordercolor=red}%| needs \xpackage{xcolor}\\
 %   |\hypersetup{linkbordercolor=[named]{red}}%| needs \xpackage{xcolor}\\
-%   |\hypersetup{linkbordercolor=[rgb]{1,0,0}}|\\
+%   |\hypersetup{linkbordercolor=[rgb]{1,0,0}}|
 % \end{quote}
 %
 % Without package \xpackage{xcolor} some of the options only
@@ -270,7 +270,6 @@
 %
 % \subsection{Summary}
 %
-% \begin{quote}
 % \begin{tabular}{@{}llll@{}}
 %   Color option & Models without \xpackage{xcolor}
 %   & RGB color & Model empty\\
@@ -281,12 +280,12 @@
 %   |Field.*color| & |gray|, |rgb|, |cmyk| & yes & yes\\
 %   |AtFi.color| & |gray|, |rgb| & yes & no\\
 % \end{tabular}
-% \end{quote}
+%
 % ``RGB color'' means that the color value can be given as
 % space separated RGB numbers (real numbers in the range
 % from 0 to 1).
 % Explanation of the color option prefixes:
-% \begin{quote}
+%
 % \begin{tabular}{@{}ll@{}}
 %   Prefix & Explanation\\
 %   \hline
@@ -297,8 +296,8 @@
 %             Form field options\\
 %   |AtFi| & Package \xpackage{attachfile2}: option \xoption{color}\\
 % \end{tabular}
-% \end{quote}
 %
+%
 % \StopEventually{
 % }
 %
@@ -308,11 +307,99 @@
 %<*package>
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{hycolor}%
-  [2019/12/15 v1.9 Color options for hyperref/bookmark (HO)]%
+  [2020-01-27 v1.10 Color options for hyperref/bookmark (HO)]%
 %    \end{macrocode}
 %
+% Should not be needed after \textsf{xcolor} updates,
+% Avoid loading \xpackage{xcolor-patch} but fix Gray color model.
 %    \begin{macrocode}
-\RequirePackage{xcolor-patch}[2019/12/15]
+% \RequirePackage{xcolor-patch}[2019/12/15]
+\AtBeginDocument{%
+\def\@tempa#1,{%
+    \XC at ifxcase\tm{%
+      \XC at mod@rgb{%
+        \XC at calcN{#1}\@@tmp
+        \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+      }%
+      \XC at mod@cmy{%
+        \XC at calcC{#1}\@@tmp
+        \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+      }%
+      \XC at mod@cmyk{%
+        \XC at calcC{#1}\@@tmp
+        \edef\@@tmp{0,0,0,\@@tmp}%
+      }%
+      \XC at mod@RGB{%
+        \edef\@@scl{\rangeRGB}%
+        \XC at calcM{#1}\@@tmp
+        \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+      }%
+      \XC at mod@HTML{%
+        \edef\@@scl{\@cclv}%
+        \XC at calcM{#1}\@@tmp
+        \XC at calcH\@@tmp\@@tmp
+        \edef\@@tmp{\@@tmp\@@tmp\@@tmp}%
+      }%
+      \XC at mod@HSB{%
+        \edef\@@scl{\rangeHSB}%
+        \XC at calcM{#1}\@@tmp
+        \edef\@@tmp{0,0,\@@tmp}%
+      }%
+      \XC at mod@Gray{%
+        \edef\@@scl{\rangeGray}%
+        \XC at calcM{#1}\@@tmp
+      }%
+    }%
+    {%
+      \XC at calcN{#1}\@@tmp
+      \edef\@@tmp{0,0,\@@tmp}%
+    }%
+  }%
+\ifx\XC at cnv@gray\@tempa
+    \def\XC at cnv@gray#1,{%
+      \XC at ifxcase\tm{%
+        \XC at mod@rgb{%
+          \XC at calcN{#1}\@@tmp
+          \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+        }%
+        \XC at mod@gray{}%
+        \XC at mod@cmy{%
+          \XC at calcC{#1}\@@tmp
+          \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+        }%
+        \XC at mod@cmyk{%
+          \XC at calcC{#1}\@@tmp
+          \edef\@@tmp{0,0,0,\@@tmp}%
+        }%
+        \XC at mod@RGB{%
+          \edef\@@scl{\rangeRGB}%
+          \XC at calcM{#1}\@@tmp
+          \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+        }%
+        \XC at mod@HTML{%
+          \edef\@@scl{\@cclv}%
+          \XC at calcM{#1}\@@tmp
+          \XC at calcH\@@tmp\@@tmp
+          \edef\@@tmp{\@@tmp\@@tmp\@@tmp}%
+        }%
+        \XC at mod@HSB{%
+          \edef\@@scl{\rangeHSB}%
+          \XC at calcM{#1}\@@tmp
+          \edef\@@tmp{0,0,\@@tmp}%
+        }%
+        \XC at mod@Gray{%
+          \edef\@@scl{\rangeGray}%
+          \XC at calcM{#1}\@@tmp
+        }%
+      }%
+      {%
+        \XC at calcN{#1}\@@tmp
+        \edef\@@tmp{0,0,\@@tmp}%
+      }%
+    }%
+\fi
+\let\@tempa\relax
+}
 %    \end{macrocode}
 %
 % \subsection{Normalization}
@@ -653,11 +740,11 @@
 %
 %    \begin{macrocode}
 \def\HyColor at UseColor#1{%
-  \ifx#1\relax
+  \ifx\relax#1\@empty
   \else
-    \ifx#1\@empty
+    \ifx\@empty#1\@empty
     \else
-      \expandafter\HyColor@@UseColor#1\@nil
+      \expandafter\expandafter\expandafter\HyColor@@UseColor#1\@nil
     \fi
   \fi
 }
@@ -706,7 +793,7 @@
 % \subsubsection{Generic algorithm}
 %
 % \begin{procedure}
-%   \small
+%   \footnotesize
 %   \Param{value}{value of the option}
 %   \Param{cmd}{macro for result}
 %   \Param{package}{package name for error message}
@@ -1218,7 +1305,7 @@
 %    \begin{macrocode}
 %<*xcolor>
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xcolor-patch}[2019/12/15 xcolor patch]
+\ProvidesPackage{xcolor-patch}[2020/01/27 v1.10 xcolor patch]
 %    \end{macrocode}
 %    \begin{macrocode}
 \RequirePackage{hopatch}
@@ -1415,26 +1502,7 @@
 % \end{description}
 %
 %
-% \paragraph{Bundle.} All the packages of the bundle `hycolor'
-% are also available in a TDS compliant ZIP archive. There
-% the packages are already unpacked and the documentation files
-% are generated. The files and directories obey the TDS standard.
-% \begin{description}
-% \item[\CTANinstall{install/macros/latex/contrib/hycolor.tds.zip}]
-% \end{description}
-% \emph{TDS} refers to the standard ``A Directory Structure
-% for \TeX\ Files'' (\CTANpkg{tds}). Directories
-% with \xfile{texmf} in their name are usually organized this way.
 %
-% \subsection{Bundle installation}
-%
-% \paragraph{Unpacking.} Unpack the \xfile{hycolor.tds.zip} in the
-% TDS tree (also known as \xfile{texmf} tree) of your choice.
-% Example (linux):
-% \begin{quote}
-%   |unzip hycolor.tds.zip -d ~/texmf|
-% \end{quote}
-%
 % \subsection{Package installation}
 %
 % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
@@ -1608,6 +1676,10 @@
 %   \item
 %     Do not load \xpackage{xcolor-patch} by default.
 %   \end{Version}
+%   \begin{Version}{2020-01-27 v1.10}
+%   \item extra expansion step to avoid \verb|! LaTeX Error: Undefined color `[{rgb}]| errors in hyperref.
+%   \item add fix to Gray model from \xpackage{xcolor-patch}.
+%   \end{Version}
 % \end{History}
 %
 % \PrintIndex

Modified: trunk/Master/texmf-dist/tex/latex/hycolor/hycolor.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hycolor/hycolor.sty	2020-01-28 22:12:12 UTC (rev 53583)
+++ trunk/Master/texmf-dist/tex/latex/hycolor/hycolor.sty	2020-01-28 22:33:05 UTC (rev 53584)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: hycolor
-%% Version: 2019/12/15 v1.9
+%% Version: 2020-01-27 v1.10
 %% 
 %% Copyright (C)
 %%    2007-2011 Heiko Oberdiek
-%%    2016-2019 Oberdiek Package Support Group
+%%    2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -31,7 +31,6 @@
 %% Heiko Oberdiek and the Oberdiek Package Support Group
 %% https://github.com/ho-tex/hycolor/issues
 %% 
-%% 
 %% This work consists of the main source file hycolor.dtx
 %% and the derived files
 %%    hycolor.sty, hycolor.pdf, hycolor.ins, hycolor.drv,
@@ -39,8 +38,93 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{hycolor}%
-  [2019/12/15 v1.9 Color options for hyperref/bookmark (HO)]%
-\RequirePackage{xcolor-patch}[2019/12/15]
+  [2020-01-27 v1.10 Color options for hyperref/bookmark (HO)]%
+\AtBeginDocument{%
+\def\@tempa#1,{%
+    \XC at ifxcase\tm{%
+      \XC at mod@rgb{%
+        \XC at calcN{#1}\@@tmp
+        \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+      }%
+      \XC at mod@cmy{%
+        \XC at calcC{#1}\@@tmp
+        \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+      }%
+      \XC at mod@cmyk{%
+        \XC at calcC{#1}\@@tmp
+        \edef\@@tmp{0,0,0,\@@tmp}%
+      }%
+      \XC at mod@RGB{%
+        \edef\@@scl{\rangeRGB}%
+        \XC at calcM{#1}\@@tmp
+        \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+      }%
+      \XC at mod@HTML{%
+        \edef\@@scl{\@cclv}%
+        \XC at calcM{#1}\@@tmp
+        \XC at calcH\@@tmp\@@tmp
+        \edef\@@tmp{\@@tmp\@@tmp\@@tmp}%
+      }%
+      \XC at mod@HSB{%
+        \edef\@@scl{\rangeHSB}%
+        \XC at calcM{#1}\@@tmp
+        \edef\@@tmp{0,0,\@@tmp}%
+      }%
+      \XC at mod@Gray{%
+        \edef\@@scl{\rangeGray}%
+        \XC at calcM{#1}\@@tmp
+      }%
+    }%
+    {%
+      \XC at calcN{#1}\@@tmp
+      \edef\@@tmp{0,0,\@@tmp}%
+    }%
+  }%
+\ifx\XC at cnv@gray\@tempa
+    \def\XC at cnv@gray#1,{%
+      \XC at ifxcase\tm{%
+        \XC at mod@rgb{%
+          \XC at calcN{#1}\@@tmp
+          \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+        }%
+        \XC at mod@gray{}%
+        \XC at mod@cmy{%
+          \XC at calcC{#1}\@@tmp
+          \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+        }%
+        \XC at mod@cmyk{%
+          \XC at calcC{#1}\@@tmp
+          \edef\@@tmp{0,0,0,\@@tmp}%
+        }%
+        \XC at mod@RGB{%
+          \edef\@@scl{\rangeRGB}%
+          \XC at calcM{#1}\@@tmp
+          \edef\@@tmp{\@@tmp,\@@tmp,\@@tmp}%
+        }%
+        \XC at mod@HTML{%
+          \edef\@@scl{\@cclv}%
+          \XC at calcM{#1}\@@tmp
+          \XC at calcH\@@tmp\@@tmp
+          \edef\@@tmp{\@@tmp\@@tmp\@@tmp}%
+        }%
+        \XC at mod@HSB{%
+          \edef\@@scl{\rangeHSB}%
+          \XC at calcM{#1}\@@tmp
+          \edef\@@tmp{0,0,\@@tmp}%
+        }%
+        \XC at mod@Gray{%
+          \edef\@@scl{\rangeGray}%
+          \XC at calcM{#1}\@@tmp
+        }%
+      }%
+      {%
+        \XC at calcN{#1}\@@tmp
+        \edef\@@tmp{0,0,\@@tmp}%
+      }%
+    }%
+\fi
+\let\@tempa\relax
+}
 \begingroup
   \catcode`\!=13 %
   \catcode`\:=13 %
@@ -218,11 +302,11 @@
 \def\HyColor at model@Gray{Gray}
 \@onelevel at sanitize\HyColor at model@Gray
 \def\HyColor at UseColor#1{%
-  \ifx#1\relax
+  \ifx\relax#1\@empty
   \else
-    \ifx#1\@empty
+    \ifx\@empty#1\@empty
     \else
-      \expandafter\HyColor@@UseColor#1\@nil
+      \expandafter\expandafter\expandafter\HyColor@@UseColor#1\@nil
     \fi
   \fi
 }

Modified: trunk/Master/texmf-dist/tex/latex/hycolor/xcolor-patch.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hycolor/xcolor-patch.sty	2020-01-28 22:12:12 UTC (rev 53583)
+++ trunk/Master/texmf-dist/tex/latex/hycolor/xcolor-patch.sty	2020-01-28 22:33:05 UTC (rev 53584)
@@ -9,11 +9,11 @@
 %% This is a generated file.
 %% 
 %% Project: hycolor
-%% Version: 2019/12/15 v1.9
+%% Version: 2020-01-27 v1.10
 %% 
 %% Copyright (C)
 %%    2007-2011 Heiko Oberdiek
-%%    2016-2019 Oberdiek Package Support Group
+%%    2016-2020 Oberdiek Package Support Group
 %% 
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either
@@ -31,7 +31,6 @@
 %% Heiko Oberdiek and the Oberdiek Package Support Group
 %% https://github.com/ho-tex/hycolor/issues
 %% 
-%% 
 %% This work consists of the main source file hycolor.dtx
 %% and the derived files
 %%    hycolor.sty, hycolor.pdf, hycolor.ins, hycolor.drv,
@@ -38,7 +37,7 @@
 %%    xcolor-patch.sty
 %% 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{xcolor-patch}[2019/12/15 xcolor patch]
+\ProvidesPackage{xcolor-patch}[2020/01/27 v1.10 xcolor patch]
 \RequirePackage{hopatch}
 \hopatch at AfterPackage{xcolor}{%
   \long\def\reserved at a#1#2#3{%

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2020-01-28 22:12:12 UTC (rev 53583)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2020-01-28 22:33:05 UTC (rev 53584)
@@ -2732,6 +2732,7 @@
  'hf-tikz'      => 'tex',
  'hrlatex'      => 'latex',  # requires interaction
  'hu-berlin-bundle' => 'pdflatex-preserve-pdf --engine lualatex',
+ 'hycolor'	=> 'tex',
  'hyperbar'	=> 'tex',
  'intopdf',	=> 'tex',
  'isodoc'       => 'luatex',
@@ -3284,6 +3285,7 @@
  'findhyph'     => 'findhyph.pdf',                      # we generate
  'fundus'       => $standardclean . '|outline.sty',     # in own package
  'gentle'       => 'gentle.ps.gz',                      # pdf is enough
+ 'hycolor'	=> 'hycolor\.(drv|ins|log)',
  'ibycus-babel' => $standardclean . '|ibyhyph.tex',    # in hyphen-ancientgreek
  'jadetex'      => $standardclean           # these sty files are in passivetex
                    . '|(dummyels|mlnames|ucharacters|unicode)\.sty',



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