\documentclass{scrartcl} % Kodierung dieser Datei angeben \usepackage[utf8]{inputenc} % Schönere Schriftart laden \usepackage[T1]{fontenc} \usepackage{lmodern} % Deutsche Silbentrennung verwenden \usepackage[ngerman]{babel} % Bessere Unterstützung für PDF-Features \usepackage[breaklinks=true]{hyperref} \KOMAoptions{% % Absätze durch Abstände parskip=full,% % Satzspiegel berechnen lassen DIV=calc% } % Unterstützung für Farben laden \usepackage[table]{xcolor} % Unterstützung für Foreach-Schleifen % (wird nur für das HSB-Beispiel gebraucht) \usepackage{pgffor} \begin{document} \section{Einfache Beispiele} In diesem \colorbox{orange}{Text} sind \textcolor{orange}{Worte} hervorgehoben. \rowcolors{1}{orange!25}{orange!5} \begin{center} \begin{tabular}{lr} \rowcolor{orange!50} Posten & Betrag \\ Messe & 333,20 \\ Kombüse & 47,60 \\ Summe & 380,80 \end{tabular} \end{center} \section{weitere Beispiele} \newcommand{\colorsample}[1]{\textcolor{#1}{\rule[-.5ex]{2em}{2ex}} \texttt{#1}} \foreach \h in {0, ..., 240} {% \xdefinecolor{current}{HSB}{\h, 240, 240}% \textcolor{current}{\rule{1pt}{3ex}}% } \colorsample{red}\\ \colorsample{green}\\ \colorsample{blue}\\ \colorsample{cyan}\\ \colorsample{magenta}\\ \colorsample{yellow} \colorsample{black}\\ \colorsample{white}\\ \colorsample{darkgray}\\ \colorsample{gray}\\ \colorsample{lightgray} \colorsample{red}\\ \colorsample{red!75}\\ \colorsample{red!75!green}\\ \colorsample{red!75!green!50}\\ \colorsample{red!75!green!50!blue}\\ \colorsample{red!75!green!50!blue!25}\\ \colorsample{red!75!green!50!blue!25!gray} \colorsample{-red}\\ \colorsample{-red!75}\\ \colorsample{-red!75!green}\\ \colorsample{-red!75!green!50}\\ \colorsample{-red!75!green!50!blue}\\ \colorsample{-red!75!green!50!blue!25}\\ \colorsample{-red!75!green!50!blue!25!gray} \end{document}