diff options
Diffstat (limited to 'Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-xxcolor.tex')
-rw-r--r-- | Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-xxcolor.tex | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-xxcolor.tex b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-xxcolor.tex index 2a114913a68..022f2769b83 100644 --- a/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-xxcolor.tex +++ b/Master/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-xxcolor.tex @@ -24,7 +24,7 @@ such an environment is not available. \begin{environment}{{colormixin}\marg{mix-in specification}} The mix-in specification is applied to all colors inside the environment. At the beginning of the environment, the mix-in is applied to the current - color, i.\,e., the color that was in effect before the environment started. + color, i.e., the color that was in effect before the environment started. A mix-in specification is a number between 0 and 100 followed by an exclamation mark and a color name. When a |\color| command is encountered inside a mix-in environment, the number states what percentage of the @@ -33,7 +33,7 @@ such an environment is not available. |90!blue| will mix in 10\% of blue into everything, whereas |25!white| will make everything nearly white. % -\begin{codeexample}[width=4cm] +\begin{codeexample}[width=4cm,preamble={\usepackage{xxcolor}}] \begin{minipage}{3.5cm}\raggedright \color{red}Red text,% \begin{colormixin}{25!white} @@ -67,7 +67,8 @@ whether there exists an image named |foo.!25!white!25!black|. Expands to the current accumulated mix-in. Each nesting of a |colormixin| adds a mix-in to this list. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepackage{xxcolor} +\usepackage{calc}}] \begin{minipage}{\linewidth-6pt}\raggedright \begin{colormixin}{75!white} \colorcurrentmixin\ should be ``!75!white''\par |