changelog shortlog tags changeset files revisions annotate raw

book.tex

changeset 2: 85f6b78ebb5d
parent:36c3c1f99680
child:248dc7164d74
author: Patrik Willard <wildcard_at_padowi_dot_se>
date: Tue May 18 15:44:04 2010 +0200 (24 months ago)
permissions: -rw-r--r--
description: added license
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}
4
5\usepackage[utf8]{inputenc}
6\usepackage[T1]{fontenc}
7
8\usepackage{url}
9\usepackage[dvips,bookmarks=false]{hyperref}
10\hypersetup{
11 colorlinks=true,
12 citecolor=black,
13 filecolor=black,
14 linkcolor=black,
15 urlcolor=blue
16}
17
18\usepackage{times}
19\usepackage{courier}
20\usepackage{color}
21\usepackage{xcolor}
22% needed for the copyleft symbol
23%\usepackage{textcomp}
24\usepackage{graphicx}
25\usepackage{wrapfig}
26
27% Disabled so that {\dh} (Icelandic eth) will work
28%\usepackage{ae}
29\usepackage{tocloft} % manages the design of ToC, LoF, LoT etc
30\usepackage[avantgarde]{quotchap} % changes style of chapter headings
31
32\usepackage{multirow}
33\usepackage{footnote}
34\makesavenoteenv{tabular}
35
36
37% suppress widows and orphans
38\widowpenalty=10000 % try eliminate single trailing lines on top of new page
39\clubpenalty=10000 %
40
41% prevents vertical whitespace in pages it cannot sufficiently fill
42\usepackage{setspace}
43\onehalfspacing
44
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
47%\raggedbottom
48%\usepackage{parskip}
49
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}
54
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 :/
57\usepackage{caption}
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]{
66 format=listing,
67 labelfont=white,
68 textfont=white,
69 singlelinecheck=false,
70 margin=0pt,
71 font={bf,footnotesize}
72}
73
74\setcounter{tocdepth}{0}
75
76\begin{document}
77 \title{\Huge{Free Beer}}
78 \author{\textbf{Written by speakers at FSCONS 2008}\\\\ Edited by Stian Rødven Eide\\ \LaTeX{} by Patrik Willard}
79 \date{\today}
80
81 \definecolor{listinggray}{gray}{0.9}
82
83 \addtolength{\oddsidemargin}{0.85cm}
84 \maketitle
85 \addtolength{\oddsidemargin}{-0.85cm}
86
87 \pagestyle{empty}
88 % without textcomp package we cannot import the licensepage, if we do, it
89 % won't compile
90 \input{licencepage.tex}
91 \tableofcontents
92 \newpage
93
94 \mainmatter
95 \pagestyle{plain}
96 \input{./00_chapters.tex}
97
98 \appendix
99 %\input{appendix/appendix.tex}
100
101 \backmatter
102
103 \bibliographystyle{unsrt}
104 \bibliography{./bibtex/ref.bib}
105
106 \newpage
107 \mbox{}
108 \thispagestyle{empty}
109
110\end{document}