1% Copyright 2009 FSCONS, Superflex and the individual authors.
2% This entire book and all its source files is licenced under Creative Commons Attribution-ShareAlike 2.5
3\documentclass[a4paper,11pt,titlepage]{book}
5\usepackage[utf8]{inputenc}
6\usepackage[T1]{fontenc}
9\usepackage[dvips,bookmarks=false]{hyperref}
22% needed for the copyleft symbol
27% Disabled so that {\dh} (Icelandic eth) will work
29\usepackage{tocloft} % manages the design of ToC, LoF, LoT etc
30\usepackage[avantgarde]{quotchap} % changes style of chapter headings
34\makesavenoteenv{tabular}
37% suppress widows and orphans
38\widowpenalty=10000 % try eliminate single trailing lines on top of new page
41% prevents vertical whitespace in pages it cannot sufficiently fill
45% don't use these two unless absolutely necessary, they screw up code-listing
46% (listings package) boxes by pushing the caption into the code box
50\usepackage{listings} % for code, wrapping across several lines etc
51% add more languages here if needed (Java, Python, whatever)
52% list of supported languages here: http://www.tjansson.dk/?p=419
53\lstloadlanguages{sh, bash}
55% something is ``off'' with caption package (or some interaction between it and
56% some other package. The caption box is offset down and right :/
58%\DeclareCaptionFont{white}{\color{white}}
59%\DeclareCaptionFormat{listing}{\colorbox{gray}{\parbox{\textwidth}{#1#2#3}}}
60%\captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white}
61\DeclareCaptionFont{white}{\color{white}}
62\DeclareCaptionFormat{listing}{
63 \colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{
64 \parbox{\textwidth}{\hspace{24pt}#1#2#3}}}
65\captionsetup[lstlisting]{
69 singlelinecheck=false,
71 font={bf,footnotesize}
74\setcounter{tocdepth}{0}
77 \title{\Huge{Free Beer}}
78 \author{\textbf{Written by speakers at FSCONS 2008}\\\\ Edited by Stian Rødven Eide\\ \LaTeX{} by Patrik Willard}
81 \definecolor{listinggray}{gray}{0.9}
83 \addtolength{\oddsidemargin}{0.85cm}
85 \addtolength{\oddsidemargin}{-0.85cm}
88 % without textcomp package we cannot import the licensepage, if we do, it
90 \input{licencepage.tex}
96 \input{./00_chapters.tex}
99 %\input{appendix/appendix.tex}
103 \bibliographystyle{unsrt}
104 \bibliography{./bibtex/ref.bib}
108 \thispagestyle{empty}