summaryrefslogtreecommitdiff
path: root/info/examples/lgc2/D-11-1.ltx
blob: ae0f303848a70f539ac807c91426566b4ad25210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
%% 
%%  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}