summaryrefslogtreecommitdiff
path: root/doc/reference/ScalaReference.tex
blob: a3e657c9c1c2a30036d99a4150aab0386fe248f0 (plain) (blame)
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
% $Id$

%%% ------------- how to edit this file: -----------------------------------------------------

%%% o Do not use tabs, but spaces in grammars !

%%% ------------- how to compile this file: --------------------------------------------------

%%% you need to enable TeX to use the files ``ul9.map'' and ``fourier_v03.map''. Otherwise, the
%%% resulting output will not include necessary font information. 

%%% o how to make a TeX installation use these fonts

%%% (1) Get root, go to /usr/share/texmf/dvips/config
%%% (2) Edit the file ./updmap by adding two new lines to the
%%%    extra_modules section. Initially it is empty, and should
%%%    look like this after the modifications:
%%%
%%%    extra_modules="
%%%      /<full-path-to>/ul9.map
%%%      /<full-path-to>/fourier_v03.map
%%%    "
%%%
%%% (3) Execute ./updmap (still as root) to integrate the new fonts into
%%%    "hundreds" of messy tex config files.
%%% (4) Execute texhash (still as root) so that the kpsetools can find
%%%    the new files. From now on, you do not have to be root anymore.
%%%
%%% in LAMP, you can find those files here 
%%% /home/linuxsoft/share/texmf/dvips/config/ul9.map
%%% /home/linuxsoft/share/texmf/dvips/fourier/fourier_v03.map

%%% o last step: get normal user again and enable your tex tools to find the fonts as well

%%% Adjust your environment varables. In LAMP: 
%%% (5)         setenv HOMETEXMF /home/linuxsoft/share/texmf

%%% or, if you have a local texmf structure use

%%% (5')        setenv TEXMF /home/myname/texmf,/home/linuxsoft/share/texmf,/usr/share/texmf

%%% Please note that whenever you redefine TEXMF it will ignore HOMETEXMF
%%% unless you specify it explicitly in the TEXMF initialization.

\documentclass[a4paper,12pt,twoside,titlepage]{book}

\usepackage{scaladoc}
\usepackage{fleqn}
\usepackage{modefs}
\usepackage{math}
\usepackage{scaladefs}

\ifpdf
    \pdfinfo {
        /Author   (Martin Odersky)
        /Title    (The Scala Language Specification)
        /Keywords (Scala)
        /Subject  ()
        /Creator  (TeX)
        /Producer (PDFLaTeX)
    }
\fi

\newcommand{\exercise}{\paragraph{Exercise}}
\newcommand{\rewriteby}[1]{\mbox{\tab\tab\rm(#1)}}

\renewcommand{\doctitle}{Scala By Example\\[33mm]\ }
\renewcommand{\docauthor}{Martin Odersky\\[53mm]\ }
\renewcommand{\doctitle}{The Scala Language \\ Specification \\
\Large  Version 1.0 \ }
\renewcommand{\docauthor}{Martin Odersky \\
Philippe Altherr \\
Vincent Cremet \\
Burak Emir \\ 
St\'ephane Micheloud \\
Nikolay Mihaylov \\
Michel Schinz \\
Erik Stenman \\
Matthias Zenger \\[25mm]\ }

\begin{document}
\frontmatter
\makedoctitle
\clearemptydoublepage
\tableofcontents
\mainmatter
\sloppy

%\todo{`:' as synonym for $\EXTENDS$?}

\part{Rationale}

\input{RationalePart}

\part{The Scala Language Specification}

\input{ReferencePart}

\bibliographystyle{alpha}
\bibliography{Scala}

\input{ReferencePartAppendix}

\end{document}