diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/graphics/color.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/graphics/color.dtx | 47 |
1 files changed, 33 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/graphics/color.dtx b/Master/texmf-dist/source/latex/graphics/color.dtx index 03c02429a44..7a545b98fd5 100644 --- a/Master/texmf-dist/source/latex/graphics/color.dtx +++ b/Master/texmf-dist/source/latex/graphics/color.dtx @@ -19,7 +19,7 @@ %<driver> \ProvidesFile{color.drv} % \fi % \ProvidesFile{color.dtx} - [2005/11/14 v1.0j Standard LaTeX Color (DPC)] + [2014/04/23 v1.1a Standard LaTeX Color (DPC)] % % \iffalse %<*driver> @@ -41,7 +41,7 @@ % \date{\filedate} % \maketitle % -% \CheckSum{432} +% \CheckSum{440} % % % \title{The implementation of the \LaTeX\ Colour interface.} @@ -52,15 +52,15 @@ % % The user level documentation of this package is contained in the % document \emph{Packages in the `graphics' bundle} in the file -% \texttt{grfguide.tex}. -% +% \texttt{grfguide.tex}. +% % \StopEventually{} % % % \section{Options} % % \changes{v0.2a}{1994/04/13} -% {TEMP KLUDGE for Feb 94 release of 2e: +% {TEMP KLUDGE for Feb 94 release of 2e: % Add extra groups} % \changes{v0.2d}{1994/05/13} % {All support for Feb 1994 release removed (so used optional arg @@ -421,7 +421,7 @@ % Since December 95, in fact this command has one other difference % from |\color|. It calls |\leavevmode| to ensure the start of % horizontal mode. Specifically this means that a construction -% such as +% such as %\begin{verbatim} % xxx\parbox[t]{1cm}{\textcolor{red}{a}..... %\end{verbatim} @@ -457,6 +457,25 @@ % \end{macrocode} % \end{macro} % +% \begin{macro}{\nopagecolor} +% |\nopagecolor| (suggested by Heiko Oberdiek) removes any currently specified page colour +% returning to the default transparent background. It is not yet supported by all driver options +% and so generates a warning if there is no definition in the driver file. +% +% \changes{v1.1a}{2014/04/23} +% {add \cs{nopagecolor} graphics/3873} +% \begin{macrocode} +\def\nopagecolor{% + \@ifundefined{no@page@color}{% + \PackageInfo{color}{\string\nopagecolor\space is not supported}% + }{% + \no@page@color + }% +} +% \end{macrocode} +% \end{macro} +% +% % \section{Defining Colours} % % \begin{macro}{\definecolor} @@ -503,7 +522,7 @@ % % Driver files may opt to define a `named' colour model. % Placing colour names rather than numeric specifications into the dvi -% file has certain advantages, in that post processing software can +% file has certain advantages, in that post processing software can % tune the colour specifications to the particular technology being % used, and more easily make colour separations for that colour. % The disadvantage is that the driver must `know' the colour @@ -516,7 +535,7 @@ % % The `color2' drivers (textures) use a special postscript operator % that takes both the name and the cmyk equivalent. so if the names are -% no being used, fall back' definitions in the cmyk model are available. +% not being used, `fall back' definitions in the cmyk model are available. % These drivers also allow a numeric value to affect the `density' % of the colour to use. % @@ -567,8 +586,8 @@ % % \begin{macro}{\c@lor@special} % Some drivers can not support all the features of this package. They -% should always put a \meta{whatsit} in the current list though. the -% following macro has most of the features of |\special|, but does not +% should always put a \meta{whatsit} in the current list though. The +% following macro has most of the features of |\special|, but does not % put anything into the |dvi| file. It does write to the log file or the % terminal (depending on the value of |#1|). % \begin{macrocode} @@ -627,7 +646,7 @@ % conjunction with colour. It will have no effect until the |color| % package is also loaded. % \changes{v0.2b}{1994/04/18} -% {Only reset the colour with \cmd{\reset@font} not +% {Only reset the colour with \cmd{\reset@font} not % \cmd{\normalfont}} % \changes{v0.2d}{1994/05/13} % {Stop changing \cs{reset@font}. Use the new \cs{normalfont} @@ -649,7 +668,7 @@ % the truth as the `macro layer' of \TeX\ does not know where the output % routine is going to re-insert floats. This is why drivers must % maintain their own stack of colours in order to fully support these -% commands. +% commands. % % For dvips, the |\current@color| it is something like `|Black|' or % `|rgb 0 1 0|', but other packages should not rely on any particular @@ -661,7 +680,7 @@ % are not known at this point. % % \section{Higher Level Commands} -% +% % With the basic colour primitives specified above we may define a few % higer level commands for coloured boxes etc. This is still quite a low % level and presumably packages and classes making use of colour will @@ -673,7 +692,7 @@ % |\color@block{|\emph{width}|}{|\emph{height}|}{|\emph{depth}|}|\\ % Should take up no space for \TeX, but produce a block in the current % colour of the specified size. It is mainly used for producing box -% backgrounds. +% backgrounds. % % The definition here works by selecting a colour, and then drawing a % \TeX\ rule (unless |\ifcolors@false|). This allows the `driver |