From 46e24f0df1c1f124dd39fae13d8f4df844599bc6 Mon Sep 17 00:00:00 2001 From: Paul Jungeblut Date: Sun, 14 Feb 2016 00:51:18 +0100 Subject: Adding colors for better look. --- tcr.pdf | Bin 245842 -> 250807 bytes tcr.tex | 15 ++++++++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/tcr.pdf b/tcr.pdf index 917aa0d..768f1b8 100644 Binary files a/tcr.pdf and b/tcr.pdf differ diff --git a/tcr.tex b/tcr.tex index f550c2d..f1e2459 100644 --- a/tcr.tex +++ b/tcr.tex @@ -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. -- cgit v1.2.3