doc/manual: put back the manual in the main repository
[nit.git] / doc / manual / 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 %\usepackage{../nit_version}
27
28 \newcommand\thedoctitle{A Concise Reference of the Nit Language}
29 \title{\thedoctitle}
30 \author{Jean Privat}
31 \date{\today}
32
33 \usepackage[bookmarks=false,pdftitle={\thedoctitle}]{hyperref}
34 \pdfcompresslevel=9 %best compression level for text and image
35
36 %\setcounter{collectmore}{90} % Force better column breaks
37
38 \lstMakeShortInline[basicstyle=\small\ttfamily\color{blue!30!black}]{@}
39 \lstset{language=nit}
40
41 \hypersetup{colorlinks=true}
42 \newcommand\goto[1]{\hyperref[#1]{{\color{red}\scriptsize[\ref*{#1}]}}}
43 \newcommand\future[1]{}
44 \newcommand\passthrough[1]{#1}
45 \newcommand\tightlist{}
46
47 \geometry{margin=0.35in} % short margins
48 % footer
49 \usepackage{fancyhdr}
50 \pagestyle{fancy}
51 \lhead{}
52 \chead{}
53 \rhead{}
54 \lfoot{\small\it\today}
55 \cfoot{\small\it\thedoctitle}
56 \rfoot{\small\it\thepage}
57 \renewcommand{\headrulewidth}{0pt}
58 \renewcommand{\footrulewidth}{0pt}
59 \setlength\footskip{15pt}
60
61 \begin{document}
62 \setlength\columnsep{8pt} % space around big columns
63 \begin{multicols}{2}
64 \setlength\columnsep{4pt} % space around smalls columns (for examples)
65
66 \noindent\textbf{A Concise Reference of the Nit Language}
67
68 This document attempts to be as short as possible while covering all features of the language in deepth.
69 It is not a real manual to learn the language since concepts are covered when required.
70 %Forward and backward references about concepts are written like this~\goto{redef} which means Section~\ref*{redef}.
71 %An index\goto{index} also lists concepts and keywords for an improved navigation.
72
73 \input{nitreference-main.tex}
74 \end{multicols}
75 \end{document}