summaryrefslogtreecommitdiff
path: root/info/examples/Tabellen2/03-03-4.ltx
blob: 3e1e01b56732e66cec0e3275f82451f20978d865 (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
%% 
%%  A DANTE-Edition example
%% 
%%  Beispiel 03-03-4 auf Seite 123.
%% 
%%  Copyright (C) 2010 H. 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.
%% 

%%Run also: >>  << 
% Show page(s) 1

\documentclass[]{article}
\pagestyle{empty}
\setlength\textwidth{194.59192pt}
\setlength\parindent{0pt}
\usepackage[utf8]{inputenc}
\usepackage[ngerman]{babel}
\AtBeginDocument{\definecolor{RAL1023}{cmyk}{0.0,0.1,0.9,0.0} \definecolor{RAL2010}{cmyk}{0.05,0.7,1.0,0.0}
\definecolor{RAL3020}{cmyk}{0.0,1.0,1.0,0.1} \definecolor{RAL4006}{cmyk}{0.5,1.0,0.0,0.1}
\definecolor{RAL5017}{cmyk}{1.0,0.2,0.05,0.4}\definecolor{RAL6024}{cmyk}{0.9,0.1,0.8,0.1}
\definecolor{RAL7042}{cmyk}{0.3,0.1,0.2,0.4} \definecolor{RAL7043}{cmyk}{0.3,0.1,0.2,0.8}
\definecolor{RAL9016}{cmyk}{0.03,0.0,0.0,0.0}\definecolor{RAL9017}{cmyk}{1.0,0.9,1.0,0.95}
\footnotesize}
\newcommand\TZeile[9]{%
 \cellcolor{#1} & \cellcolor{cyan!#2}#2 & \cellcolor{magenta!#3}#3
 &\cellcolor{yellow!#4}#4 &\cellcolor{black!#5}\ifnum#5>60 \color{white}\fi#5&#1 \mbox{#6}
 &\cellcolor{red!#7}#7 &\cellcolor{green!#8}#8 &\cellcolor{blue!#9}#9 }

\usepackage[table]{xcolor}\usepackage{ragged2e}% Definitionen in der Praeambel -> CTAN!

\begin{document}
\begin{tabular}{>{\Centering}p{1.75cm}>{\columncolor{cyan}}c>{\columncolor{magenta}}c
    >{\columncolor{yellow}}c>{\columncolor{black}}c >{\Centering}p{2.5cm}
>{\columncolor{red}}c>{\columncolor{green}}c>{\columncolor{blue}}c >{\Centering}p{1.75cm}}
CMYK & C & M & Y & \color{white}K & Bezeichnung & R & G & \color{white}B & RGB\\\hline
\TZeile{RAL1023}{0}{10}{90}{0}{Verkehrsgelb}{100}{90}{10} & \cellcolor[rgb]{1,0.9,0.1}\\
\TZeile{RAL2010}{5}{70}{100}{0}{Verkehrsorange}{95}{30}{0} & \cellcolor[rgb]{0.95,0.3,0}\\
\TZeile{RAL3020}{0}{100}{100}{10}{Verkehrsrot}{90}{0}{0} & \cellcolor[rgb]{0.9,0,0}\\
\TZeile{RAL4006}{50}{100}{0}{10}{Verkehrspurpur}{40}{0}{90} & \cellcolor[rgb]{0.4,0,0.9}\\
\TZeile{RAL5017}{100}{20}{5}{40}{Verkehrsblau}{0}{40}{55} & \cellcolor[rgb]{0,0.4,0.55}\\
\TZeile{RAL6024}{90}{10}{80}{10}{Verkehrsgrün}{0}{80}{10} & \cellcolor[rgb]{0,0.8,0.1}\\
\TZeile{RAL7042}{30}{10}{20}{40}{Verkehrsgrau A}{30}{50}{40} & \cellcolor[rgb]{0.3,0.5,0.4}\\
\TZeile{RAL7043}{30}{10}{20}{80}{Verkehrsgrau B}{0}{10}{0} & \cellcolor[rgb]{0,0.1,0}\\
\TZeile{RAL9016}{3}{0}{0}{0}{Verkehrsweiß}{97}{100}{100} & \cellcolor[rgb]{0.97,1,1}\\
\TZeile{RAL9017}{100}{90}{100}{95}{Verkehrsschwarz}{0}{0}{0} & \cellcolor[rgb]{0,0,0}
\end{tabular}
\end{document}