changelog shortlog tags changeset files revisions annotate raw

book.tex

changeset 0: 36c3c1f99680
child:85f6b78ebb5d
author: Patrik Willard <wildcard_at_padowi_dot_se>
date: Tue May 18 13:47:58 2010 +0200 (24 months ago)
permissions: -rw-r--r--
description: initial commit
1\documentclass[a4paper,11pt,titlepage]{book}
2
3\usepackage[utf8]{inputenc}
4\usepackage[T1]{fontenc}
5
6\usepackage{url}
7\usepackage[dvips,bookmarks=false]{hyperref}
8\hypersetup{
9 colorlinks=true,
10 citecolor=black,
11 filecolor=black,
12 linkcolor=black,
13 urlcolor=blue
14}
15
16\usepackage{times}
17\usepackage{courier}
18\usepackage{color}
19\usepackage{xcolor}
20% needed for the copyleft symbol
21%\usepackage{textcomp}
22\usepackage{graphicx}
23\usepackage{wrapfig}
24
25% Disabled so that {\dh} (Icelandic eth) will work
26%\usepackage{ae}
27\usepackage{tocloft} % manages the design of ToC, LoF, LoT etc
28\usepackage[avantgarde]{quotchap} % changes style of chapter headings
29
30\usepackage{multirow}
31\usepackage{footnote}
32\makesavenoteenv{tabular}
33
34
35% suppress widows and orphans
36\widowpenalty=10000 % try eliminate single trailing lines on top of new page
37\clubpenalty=10000 %
38
39% prevents vertical whitespace in pages it cannot sufficiently fill
40\usepackage{setspace}
41\onehalfspacing
42
43% don't use these two unless absolutely necessary, they screw up code-listing
44% (listings package) boxes by pushing the caption into the code box
45%\raggedbottom
46%\usepackage{parskip}
47
48\usepackage{listings} % for code, wrapping across several lines etc
49% add more languages here if needed (Java, Python, whatever)
50% list of supported languages here: http://www.tjansson.dk/?p=419
51\lstloadlanguages{sh, bash}
52
53% something is ``off'' with caption package (or some interaction between it and
54% some other package. The caption box is offset down and right :/
55\usepackage{caption}
56%\DeclareCaptionFont{white}{\color{white}}
57%\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}
58%\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
59\DeclareCaptionFont{white}{\color{white}}
60\DeclareCaptionFormat{listing}{
61 \colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{
62 \parbox{\textwidth}{\hspace{24pt}#1#2#3}}}
63\captionsetup[lstlisting]{
64 format=listing,
65 labelfont=white,
66 textfont=white,
67 singlelinecheck=false,
68 margin=0pt,
69 font={bf,footnotesize}
70}
71
72\setcounter{tocdepth}{0}
73
74\begin{document}
75 \title{\Huge{Free Beer}}
76 \author{\textbf{Written by speakers at FSCONS 2008}\\\\ Edited by Stian Rødven Eide\\ \LaTeX{} by Patrik Willard}
77 \date{\today}
78
79 \definecolor{listinggray}{gray}{0.9}
80
81 \addtolength{\oddsidemargin}{0.85cm}
82 \maketitle
83 \addtolength{\oddsidemargin}{-0.85cm}
84
85 \pagestyle{empty}
86 % without textcomp package we cannot import the licensepage, if we do, it
87 % won't compile
88 \input{licencepage.tex}
89 \tableofcontents
90 \newpage
91
92 \mainmatter
93 \pagestyle{plain}
94 \input{./00_chapters.tex}
95
96 \appendix
97 %\input{appendix/appendix.tex}
98
99 \backmatter
100
101 \bibliographystyle{unsrt}
102 \bibliography{./bibtex/ref.bib}
103
104 \newpage
105 \mbox{}
106 \thispagestyle{empty}
107
108\end{document}