diff options
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/xcolor/xcolor.dtx | 62 |
1 files changed, 44 insertions, 18 deletions
diff --git a/Master/texmf-dist/source/latex/xcolor/xcolor.dtx b/Master/texmf-dist/source/latex/xcolor/xcolor.dtx index 4bb61e9b428..8e51c6e85f8 100644 --- a/Master/texmf-dist/source/latex/xcolor/xcolor.dtx +++ b/Master/texmf-dist/source/latex/xcolor/xcolor.dtx @@ -1,7 +1,7 @@ % \iffalse meta-comment %% %% ---------------------------------------------------------------- -%% Copyright (C) 2003-2006 by Dr. Uwe Kern <xcolor at ukern dot de> +%% Copyright (C) 2003-2007 by Dr. Uwe Kern <xcolor at ukern dot de> %% ---------------------------------------------------------------- %% %<*package> @@ -17,8 +17,8 @@ %% %</package> %<*extract|driver|test1|test2|test3|test4> -\def\XCfileversion{v2.10}% -\def\XCfiledate{2006/11/28}% +\def\XCfileversion{v2.11}% +\def\XCfiledate{2007/01/21}% %</extract|driver|test1|test2|test3|test4> % % This file may be distributed and/or modified under the @@ -880,7 +880,7 @@ % % \def\test#1{\testclr{#1}~\Color{#1}} % Within \File{xcolor.sty}, the following color names are defined: -% \test{red}, \test{green}, \test{blue}, \test{cyan}, \test{magenta}, \test{yellow}, \test{black}, \test{darkgray}, \test{gray}, \test{lightgray}, \test{white}, \test{brown}, \test{olive}, \test{orange}, \test{pink}, \test{purple}, \test{violet}. +% \test{red}, \test{green}, \test{blue}, \test{cyan}, \test{magenta}, \test{yellow}, \test{black}, \test{gray}, \test{white}, \test{darkgray}, \test{lightgray}, \test{brown}, \test{lime}, \test{olive}, \test{orange}, \test{pink}, \test{purple}, \test{teal}, \test{violet}. % % This base set of colors can be used without restrictions in all kinds of color expressions, as explained in section \vref{sec.term}. % @@ -893,7 +893,7 @@ % In the latter case, individual color names have to be activated by |\definecolors| or |\providecolors| commands, as described in section \vref{sec.deferred}, before they can be applied in a document. % \begin{itemize} % \item \Option{dvipsnames}/\Option{dvipsnames*} loads a set of 68 \Model{cmyk} colors as defined in the |dvips| driver. However, these colors may be used in all supported drivers. -% \item \Option{svgnames}/\Option{svgnames*} loads a set of 151 \Model{rgb} color names\footnote{In fact, these names represent 141 different colors.} according to the \Index{SVG}~1.1 specification \cite{svg}\footnote{Actually, the cited specification lists only lowercase names, and the original definitions are given in \Model{RGB} parameters, converted to \Model{rgb} by the author.}, enhanced by~4 names taken from the file \File{rgb.txt} which is part of \Index{Unix}/\Index{X11} distributions. +% \item \Option{svgnames}/\Option{svgnames*} loads a set of 151 \Model{rgb} color names\footnote{In fact, these names represent 141 different colors.} according to the \Index{SVG}~1.1 specification \cite{svg}\footnote{Actually, the cited specification lists only lowercase names, and the original definitions are given in \Model{RGB} parameters, converted to \Model{rgb} by the author.}, enhanced by~4 names taken from the file \File{rgb.txt} which is part of \Index{Unix}/\Index{X11} distributions. Note that \Index{HTML4} accepts a subset of 16~color keywords (using identical specifications), see \cite{HTML4} and section \vref{sec.names}. % \item \Option{x11names}/\Option{x11names*} loads a set of 317 \Model{rgb} color names\footnote{These names represent 315 different colors.} that are basically variations of a subset of the \Index{SVG} set mentioned before, according to the file \File{rgb.txt} which is part of \Index{Unix}/\Index{X11} distributions\footnote{Again, the original definitions are given in \Model{RGB} parameters, converted to \Model{rgb} by the author.}. % We describe now how to access all 752 color names of \File{rgb.txt} without much effort: % \begin{itemize} @@ -1624,7 +1624,7 @@ % \makeatletter % \def\X#1% % {\def\tmp{{#1}}\dots\Meaning{tmp}& -% \selectcolormodel{#1}\testclr{red} \testclr{green} \testclr{blue} \testclr{cyan} \testclr{magenta} \testclr{yellow} \testclr{orange} \testclr{violet} \testclr{purple} \testclr{brown} \testclr{pink} \testclr{olive} \testclr{black} \testclr{darkgray} \testclr{gray} \testclr{lightgray} \testclr{white}\\} +% \selectcolormodel{#1}\testclr{red} \testclr{green} \testclr{blue} \testclr{cyan} \testclr{magenta} \testclr{yellow} \testclr{brown} \testclr{lime} \testclr{olive} \testclr{orange} \testclr{pink} \testclr{purple} \testclr{teal} \testclr{violet} \testclr{black} \testclr{darkgray} \testclr{gray} \testclr{lightgray} \testclr{white}\\} % \makeatother % \begin{tabular}{@{}>{\ttfamily}l@{ }l@{}} % \string\selectcolormodel&\\ @@ -1762,9 +1762,7 @@ % \extrarowheight2pt % \makeatletter % \def\X#1#2{\edef\tmp{\@ifxempty{#1}{}{[#1]}{#2}}\dots\Meaning{tmp}& -% \maskcolors[#1]{#2}\testclr{red} \testclr{green} \testclr{blue} \testclr{cyan} \testclr{magenta} -% \testclr{yellow} \testclr{orange} \testclr{violet} \testclr{purple} \testclr{brown} \testclr{pink} -% \testclr{olive} \testclr{black} \testclr{darkgray} \testclr{gray} \testclr{lightgray} \testclr{white}\\}\relax +% \maskcolors[#1]{#2}\testclr{red} \testclr{green} \testclr{blue} \testclr{cyan} \testclr{magenta} \testclr{yellow} \testclr{brown} \testclr{lime} \testclr{olive} \testclr{orange} \testclr{pink} \testclr{purple} \testclr{teal} \testclr{violet} \testclr{black} \testclr{darkgray} \testclr{gray} \testclr{lightgray} \testclr{white}\\}\relax % \makeatother % \begin{tabular}{@{}>{\ttfamily}l@{ }l@{}} % \string\maskcolors&\\ @@ -1999,12 +1997,14 @@ % \0{gray} % \0{green} % \0{lightgray} +% \0{lime} % \0{magenta} % \0{olive} % \0{orange} % \0{pink} % \0{purple} % \0{red} +% \0{teal} % \0{violet} % \0{white} % \0{yellow} @@ -2108,7 +2108,13 @@ % \Color[-]{DarkSlateGray} = \Color[-]{DarkSlateGrey}, % \Color[-]{LightSlateGray} = \Color[-]{LightSlateGrey}, % \Color[-]{DimGray} = \Color[-]{DimGrey}. -% \par +% \par\smallskip +% \Index{HTML4} color keyword subset: +% \Color[-]{Aqua}, \Color[-]{Black}, \Color[-]{Blue}, \Color[-]{Fuchsia}, +% \Color[-]{Gray}, \Color[-]{Green}, \Color[-]{Lime}, \Color[-]{Maroon}, +% \Color[-]{Navy}, \Color[-]{Olive}, \Color[-]{Purple}, \Color[-]{Red}, +% \Color[-]{Silver}, \Color[-]{Teal}, \Color[-]{White}, \Color[-]{Yellow}. +% \par\smallskip % Colors taken from \Index{Unix}/\Index{X11}: % \Color[-]{LightGoldenrod}, % \Color[-]{LightSlateBlue}, @@ -3095,6 +3101,10 @@ % {\People{Alvy Ray}{Smith}: ``Color Gamut Transform Pairs''. \emph{Computer Graphics} (ACM SIGGRAPH), Volume 12, Number 3, August 1978. % \URL{http://alvyray.com/Papers/PapersCG.htm}} % +% \bibitem{HTML4}% +% {World Wide Web Consortium: ``HTML4 color keywords''. +% \URL{http://www.w3.org/TR/css3-color/\#html4}} +% % \bibitem{svg}% % {World Wide Web Consortium: ``Scalable Vector Graphics (\Index{SVG}) 1.1 Specification --- Basic Data Types and Interfaces''. % \URL{http://www.w3.org/TR/SVG11/types.html\#ColorKeywords}} @@ -3132,6 +3142,18 @@ % \subsection*{History} % \addcontentsline{toc}{subsection}{History} % +% \subsubsection*{2007/01/21 v2.11} +% \begin{itemize} +% \item New features: +% \begin{itemize} +% \item color names \Color{lime} and \Color{teal} added to the set of predefined colors. +% \end{itemize} +% \item Bugfix: +% \begin{itemize} +% \item incorrect |\XC@strip@comma| call within \Package{hyperref}-related options. +% \end{itemize} +% \end{itemize} +% % \subsubsection*{2006/11/28 v2.10} % \begin{itemize} % \item New features: @@ -5836,7 +5858,7 @@ {\extractcolorspec{#2}\XC@@tmp \expandafter\convertcolorspec\XC@@tmp\XC@mod@rgb\XC@@tmp \expandafter\edef\csname @#1bordercolor\endcsname - {\expandafter\XC@strip@comma\XC@@tmp,\@nnil}} + {\expandafter\XC@strip@comma\XC@@tmp,,\@nnil}} % \end{macrocode} % \end{macro} % @@ -5846,7 +5868,7 @@ % \begin{macrocode} \def\XC@pdfborder#1 #2 #3\relax {\def\@@scl{80}\XC@calc@#1,#2,#3,,:S% - \edef\@pdfborder{\expandafter\XC@strip@comma\@@tmp,\@nnil}} + \edef\@pdfborder{\expandafter\XC@strip@comma\@@tmp,,\@nnil}} % \end{macrocode} % \end{macro} % @@ -6968,21 +6990,25 @@ % \subsubsection{Basic color definitions} % % \Model{rgb}-minded colors.\footnote{Generic definitions: +% \Color{brown} = \Color{violet}|!|50|!|\Color{yellow}, +% \Color{lime} = \Color{green}|!|25|!|\Color{yellow}, % \Color{orange} = \Color{red}|!|50|!|\Color{yellow}, -% \Color{violet} = \Color{blue}|!|50|!|\Color{red}, +% \Color{pink} = \Color{red}|!|25, % \Color{purple} = \Color{violet}|!|50|!|\Color{red}, -% \Color{brown} = \Color{violet}|!|50|!|\Color{yellow}, -% \Color{pink} = \Color{red}|!|25.} +% \Color{teal} = \Color{green}|!|50|!|\Color{blue}, +% \Color{violet} = \Color{blue}|!|50|!|\Color{red}.} % \begin{macrocode} \definecolorset{rgb/hsb/cmyk/gray}{}{}% {red,1,0,0/0,1,1/0,1,1,0/.3;% green,0,1,0/.33333,1,1/1,0,1,0/.59;% blue,0,0,1/.66667,1,1/1,1,0,0/.11;% + brown,.75,.5,.25/.083333,.66667,.75/0,.25,.5,.25/.5475;% + lime,.75,1,0/.20833,1,1/.25,0,1,0/.815;% orange,1,.5,0/.083333,1,1/0,.5,1,0/.595;% - violet,.5,0,.5/.83333,1,.5/0,.5,0,.5/.205;% + pink,1,.75,.75/0,.25,1/0,.25,.25,0/.825;% purple,.75,0,.25/.94444,1,.75/0,.75,.5,.25/.2525;% - brown,.75,.5,.25/.083333,.66667,.75/0,.25,.5,.25/.5475;% - pink,1,.75,.75/0,.25,1/0,.25,.25,0/.825}% + teal,0,.5,.5/.5,1,.5/.5,0,0,.5/.35;% + violet,.5,0,.5/.83333,1,.5/0,.5,0,.5/.205}% % \end{macrocode} % % \Model{cmyk}-minded colors.\footnote{Generic definitions: |