-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathmonadic.tex
More file actions
88 lines (69 loc) · 2.73 KB
/
monadic.tex
File metadata and controls
88 lines (69 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
\documentclass[12pt,leqno]{book}
\usepackage{amsmath,amssymb,amsfonts} % Typical maths resource packages
\usepackage{graphicx} % Packages to allow inclusion of graphics
\usepackage{color} % For creating coloured text and background
\usepackage{hyperref} % For creating hyperlinks in cross references
\usepackage{makeidx} % For indexing
\usepackage{listings} % For code listing
\usepackage{mathpartir} % For grammars, rules, etc
\usepackage{bcprules} % For other kinds of rules
\usepackage{diagrams} % For commutative diagrams
\lstloadlanguages{Scala,Java,Haskell,XML,bash,HTML,SQL}
\parindent 1cm
\parskip 0.2cm
\topmargin 0.2cm
\oddsidemargin 1cm
\evensidemargin 0.5cm
\textwidth 15cm
\textheight 21cm
\include{local/local}
\makeindex
\title{Pro Scala: Monadic Design Patterns for the Web}
\author{L.G. Meredith \\
{\small\em \copyright \ Draft date \today }}
\date{ }
\begin{document}
\lstset{language=Haskell}
\maketitle
\addcontentsline{toc}{chapter}{Contents}
\pagenumbering{roman}
\tableofcontents
\listoffigures
\listoftables
\chapter*{Preface}\normalsize
\addcontentsline{toc}{chapter}{Preface}
\pagestyle{plain}
% The book root file {\tt bookex.tex} gives a basic example of how to
% use \LaTeX \ for preparation of a book. Note that all
% \LaTeX \ commands begin with a
% backslash.
% Each
% Chapter, Appendix and the Index is made as a {\tt *.tex} file and is
% called in by the {\tt include} command---thus {\tt ch1.tex} is
% the name here of the file containing Chapter~1. The inclusion of any
% particular file can be suppressed by prefixing the line by a
% percent sign.
% Do not put an {\tt end{document}} command at the end of chapter files;
% just one such command is needed at the end of the book.
% Note the tag used to make an index entry. You may need to consult Lamport's
% book~\cite{lamport} for details of the procedure to make the index input
% file; \LaTeX \ will create a pre-index by listing all the tagged
% items in the file {\tt bookex.idx} then you edit this into
% a {\tt theindex} environment, as {\tt index.tex}.
The book you hold in your hands, Dear Reader, is not at all what you expected...
\pagestyle{headings}
\pagenumbering{arabic}
\include{chapters/one/ch}
\include{chapters/two/ch}
\include{chapters/three/ch}
\include{chapters/four/ch}
\include{chapters/five/ch}
\include{chapters/six/ch}
\include{chapters/seven/ch}
\include{chapters/eight/ch}
\include{chapters/nine/ch}
\include{chapters/ten/ch}
\include{bibliography/monadic}
%\include{index/index}
\addcontentsline{toc}{chapter}{Index}
\end{document}