%% %% Der Mathematiksatz mit LaTeX, 1. Auflage 2009 %% %% Example 5-0-1 on page 75. %% %% Copyright (C) 2009 Herbert Voss %% %% It may be distributed and/or modified under the conditions %% of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% %% See http://www.latex-project.org/lppl.txt for details. %% \documentclass[]{ttctexa} \pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{122.59192pt} \setlength\parindent{0pt} \StartShownPreambleCommands \usepackage{xcolor} \StopShownPreambleCommands \begin{document} \colorbox{red}{red} \\ \colorbox{red!75}{red!75}\\ \colorbox{red!75!blue!100}{\color{white} red!75!blue!100}\\ \colorbox{red!75!blue!40}{red!75!blue!40} \\ \colorbox{red!75!blue!40!yellow!50}% {red!75!blue!40!yellow!50} \\[6pt] % \colorbox{-red}{-red} \\ \colorbox{-red!75}{-red!75} \\ \colorbox{-red!75!blue!100} {-red!75!blue!100} \\ \colorbox{-red!75!blue!40}{\color{white} -red!75!blue!40}\\ \colorbox{-red!75!blue!40!yellow!50}% {\color{white}-red!75!blue!40!yellow!50} \end{document}