%% %% The LaTeX Graphics Companion, 2ed (first printing May 2007) %% %% Example D-11-1 on page . %% %% Copyright (C) 2007 Michel Goossens, Frank Mittelbach, Denis Roegel, Sebastian Rahtz, Herbert Vo\ss %% %% 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{ttctexaplate} \pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{413.44133pt} \StartShownPreambleCommands \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amssymb} \setlength\parindent{0pt} \usepackage[dvipsnames]{xcolor} \setlength\textheight{1000pt} \StopShownPreambleCommands \begin{document} \newcommand\FCbox[2]{\fcolorbox{black}{#1}{% \color{#2}{\raisebox{-3pt}{\huge$\blacklozenge$} \parbox{2.005cm}{\raggedright\bfseries\small The \LaTeX{} Graphics Companion%, 2\textsuperscript{nd} edition }}} \ \tabular{@{}l}\sffamily \MakeUppercase #1\\\hline\sffamily \MakeUppercase #2\endtabular\quad} \newcommand\Cbox[2]{\colorbox{#1}{% \color{#2}{\raisebox{-3pt}{\huge$\blacklozenge$} \parbox{2.005cm}{\raggedright\bfseries\small The \LaTeX{} Graphics Companion%, 2\textsuperscript{nd} edition }}} \ \tabular{@{}l}\sffamily \MakeUppercase #1\\\hline\sffamily \MakeUppercase #2\endtabular\quad} \setlength\fboxsep{4pt} % background foreground \begin{tabular}{lll} \FCbox{white}{black} & \Cbox{Orange}{black} & \Cbox{red}{white}\\ \noalign{\vskip 16pt} \Cbox{yellow}{black} & \Cbox{red}{black} & \Cbox{black}{red}\\ \noalign{\vskip 16pt} \Cbox{black}{yellow} & \Cbox{black}{Orange} & \Cbox{Orange}{white}\\ \noalign{\vskip 16pt} \FCbox{white}{green} & \Cbox{blue}{yellow} & \Cbox{green}{black}\\ \noalign{\vskip 16pt} \FCbox{white}{red} & \Cbox{green}{white} & \FCbox{white}{Orange}\\ \noalign{\vskip 16pt} \Cbox{blue}{white} & \Cbox{red}{black} & \Cbox{blue}{Orange}\\ \noalign{\vskip 16pt} \Cbox{yellow}{blue} & \Cbox{Orange}{blue} & \Cbox{yellow}{Orange}\\ \noalign{\vskip 16pt} \FCbox{white}{blue} & \Cbox{green}{yellow} & \Cbox{Orange}{red}\\ \noalign{\vskip 16pt} \Cbox{black}{white} & \Cbox{red}{blue} & \Cbox{green}{red}\\ \noalign{\vskip 16pt} \Cbox{yellow}{green} & \Cbox{red}{yellow} & \Cbox{Orange}{green} \end{tabular} \end{document}