summaryrefslogtreecommitdiff
path: root/info/examples/tabulars-e/03-03-5.ltx
diff options
context:
space:
mode:
Diffstat (limited to 'info/examples/tabulars-e/03-03-5.ltx')
-rw-r--r--info/examples/tabulars-e/03-03-5.ltx41
1 files changed, 41 insertions, 0 deletions
diff --git a/info/examples/tabulars-e/03-03-5.ltx b/info/examples/tabulars-e/03-03-5.ltx
new file mode 100644
index 0000000000..bf19e5e127
--- /dev/null
+++ b/info/examples/tabulars-e/03-03-5.ltx
@@ -0,0 +1,41 @@
+%%
+%% A DANTE-Edition example
+%%
+%% Example 03-03-5 on page 124.
+%%
+%% Copyright (C) 2010 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.
+%%
+%%
+%% ====
+% Show page(s) 1
+%%
+\documentclass[]{article}
+\pagestyle{empty}
+\setlength\textwidth{201.70511pt}
+\setlength\parindent{0pt}
+\usepackage[utf8]{inputenc}
+\usepackage[english]{babel}
+
+\usepackage{array,booktabs,ragged2e}
+\usepackage[table]{xcolor} \definecolor{gold}{rgb}{.99,1,.9}
+\definecolor{lgrey}{gray}{.95} \definecolor{lblue}{rgb}{.92,.97,1}
+\newcolumntype{C}[1]{>{\columncolor{#1}[0pt][\tabcolsep]\Centering$}c<{$}}
+\newcolumntype{M}[2]{>{\columncolor{#1}[2\tabcolsep][0pt]\Centering$}m{#2}<{$}}
+
+\begin{document}
+\begin{tabular}{@{}C{yellow!40}*{10}{>{$}m{12pt}<{$}}M{lgrey}{14pt}M{lgrey}{12pt}@{}}\toprule
+\rowcolor{blue!40}Tabelle&\mathsf{1}&\mathsf{2}&\mathsf{3}&\mathsf{4}&\mathsf{5}&\mathsf{6}
+ &\mathsf{7} &\mathsf{8}&\mathsf{9}&\mathsf{10}&Y_{t} &Z_{t}\\\midrule
+0 &\circ&\circ&\circ&\circ&\circ &\circ &\circ&\ast &\circ &\circ&1&\mbox{---} \\
+1 &\circ&\circ&\circ&\circ&\circ &\circ &\circ&\dagger&\ast &\circ&1&1\\
+2 &\circ&\circ&\circ&\circ&\ast &\ast &\circ&\dagger&\dagger&\circ&2&2\\
+3 &\circ&\circ&\circ&\circ&\dagger&\ast &\circ&\dagger&\dagger&\circ&1&0\\
+4 &\circ&\circ&\circ&\circ&\dagger&\dagger&\circ&\dagger&\dagger&\circ&0&0\\\bottomrule
+\end{tabular}
+\end{document}