9ee0ed609b9b500cc7cc170e7f414edc18e1493f
[nit.git] / doc / nitreference / nitreference.tex
1 % This file is part of Nit ( http://www.nitlanguage.org ).
2 %
3 % Copyright 2011 Jean Privat <jean@pryen.org>
4 %
5 % Licensed under the Apache License, Version 2.0 (the "License");
6 % you may not use this file except in compliance with the License.
7 % You may obtain a copy of the License at
8 %
9 % http://www.apache.org/licenses/LICENSE-2.0
10 %
11 % Unless required by applicable law or agreed to in writing, software
12 % distributed under the License is distributed on an "AS IS" BASIS,
13 % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 % See the License for the specific language governing permissions and
15 % limitations under the License.
16 \documentclass[10pt]{article}
17
18 \usepackage[T1]{fontenc}
19 \usepackage{nitlanguage}
20 \usepackage{multicol}
21 \usepackage{savetrees}
22 \usepackage{listings}
23 \usepackage{microtype}
24 \usepackage{xcolor}
25 \usepackage{comment}
26
27 \newcommand\thedoctitle{A Concise Reference of the Nit Language}
28 \title{\thedoctitle}
29 \author{Jean Privat}
30 \date{\today}
31
32 \usepackage[bookmarks=false,pdftitle={\thedoctitle}]{hyperref}
33 \pdfcompresslevel=9 %best compression level for text and image
34
35 %\setcounter{collectmore}{90} % Force better column breaks
36
37 \lstMakeShortInline[basicstyle=\small\ttfamily\color{blue!30!black}]{@}
38
39 \hypersetup{colorlinks=true}
40 \newcommand\goto[1]{\hyperref[#1]{{\color{red}\scriptsize[\ref*{#1}]}}}
41 \newcommand\future[1]{}
42
43 \geometry{margin=0.35in} % short margins
44 % footer
45 \usepackage{fancyhdr}
46 \pagestyle{fancy}
47 \lhead{}
48 \chead{}
49 \rhead{}
50 \lfoot{\it\today}
51 \cfoot{\it\thedoctitle}
52 \rfoot{\it\thepage}
53 \renewcommand{\headrulewidth}{0pt}
54 \renewcommand{\footrulewidth}{0pt}
55 \setlength\footskip{15pt}
56
57 \begin{document}
58 \setlength\columnsep{8pt} % space around big columns
59 \begin{multicols}{2}
60 \setlength\columnsep{4pt} % space around smalls columns (for examples)
61 \input{nitreference-main.tex}
62 \end{multicols}
63 \end{document}