diff options
| author | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-02-14 00:51:18 +0100 |
|---|---|---|
| committer | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-02-14 00:51:18 +0100 |
| commit | 46e24f0df1c1f124dd39fae13d8f4df844599bc6 (patch) | |
| tree | d6e07cb328a02658f408304a8790da93c14db3ca | |
| parent | 0545e74aeab679ff67e95b62f788a79d6a31f222 (diff) | |
Adding colors for better look.
| -rw-r--r-- | tcr.pdf | bin | 245842 -> 250807 bytes | |||
| -rw-r--r-- | tcr.tex | 15 |
2 files changed, 12 insertions, 3 deletions
| Binary files differ @@ -21,6 +21,14 @@ \chead{ChaosKITs} \ohead{\pagemark} +% Colors, used for syntax highlighting. +% To print this document, set all colors to black! +\usepackage{xcolor} +\definecolor{keyword}{rgb}{0, 0, 1} +\definecolor{string}{rgb}{1, 0, 0} +\definecolor{comment}{rgb}{0.2, 0.6, 0.2} +\definecolor{identifier}{rgb}{0, 0, 0} + % Source code listings. \usepackage{pxfonts} \usepackage{listings} @@ -39,9 +47,10 @@ showspaces=false, showstringspaces=false, extendedchars=true, - keywordstyle=\bfseries, - stringstyle=\bfseries, - commentstyle=\itshape\bfseries, + keywordstyle=\color{keyword}\bfseries, + stringstyle=\color{string}\bfseries, + commentstyle=\color{comment}\bfseries, + identifierstyle=\color{identifier}, frame=trbl } % Listings doesn't support UTF8. This is just enough for German umlauts. |
