summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Jungeblut <paul.jungeblut@gmail.com>2016-02-14 00:51:18 +0100
committerPaul Jungeblut <paul.jungeblut@gmail.com>2016-02-14 00:51:18 +0100
commit46e24f0df1c1f124dd39fae13d8f4df844599bc6 (patch)
treed6e07cb328a02658f408304a8790da93c14db3ca
parent0545e74aeab679ff67e95b62f788a79d6a31f222 (diff)
Adding colors for better look.
-rw-r--r--tcr.pdfbin245842 -> 250807 bytes
-rw-r--r--tcr.tex15
2 files changed, 12 insertions, 3 deletions
diff --git a/tcr.pdf b/tcr.pdf
index 917aa0d..768f1b8 100644
--- a/tcr.pdf
+++ b/tcr.pdf
Binary files 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.