% This file is part of Nit ( http://www.nitlanguage.org ).
%
% Copyright 2011 Jean Privat <jean@pryen.org>
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
%     http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the License is distributed on an "AS IS" BASIS,
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
% See the License for the specific language governing permissions and
% limitations under the License.
\documentclass[10pt]{article}

\usepackage[T1]{fontenc}
\usepackage{nitlanguage}
\usepackage{multicol}
\usepackage{savetrees}
\usepackage{listings}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{comment}
%\usepackage{../nit_version}

\newcommand\thedoctitle{A Concise Reference of the Nit Language}
\title{\thedoctitle}
\author{Jean Privat}
\date{\today}

\usepackage[bookmarks=false,pdftitle={\thedoctitle}]{hyperref}
\pdfcompresslevel=9 %best compression level for text and image

%\setcounter{collectmore}{90} % Force better column breaks

\lstMakeShortInline[basicstyle=\small\ttfamily\color{blue!30!black}]{@}
\lstset{language=nit}

\hypersetup{colorlinks=true}
\newcommand\goto[1]{\hyperref[#1]{{\color{red}\scriptsize[\ref*{#1}]}}}
\newcommand\future[1]{}
\newcommand\passthrough[1]{#1}
\newcommand\tightlist{}

\geometry{margin=0.35in} % short margins
% footer
\usepackage{fancyhdr}
\pagestyle{fancy}
\lhead{}
\chead{}
\rhead{}
\lfoot{\small\it\today}
\cfoot{\small\it\thedoctitle}
\rfoot{\small\it\thepage}
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
\setlength\footskip{15pt}

\begin{document}
\setlength\columnsep{8pt} % space around big columns
\begin{multicols}{2}
\setlength\columnsep{4pt} % space around smalls columns (for examples)

\noindent\textbf{A Concise Reference of the Nit Language}

This document attempts to be as short as possible while covering all features of the language in deepth.
It is not a real manual to learn the language since concepts are covered when required.
%Forward and backward references about concepts are written like this~\goto{redef} which means Section~\ref*{redef}.
%An index\goto{index} also lists concepts and keywords for an improved navigation.

\input{nitreference-main.tex}
\end{multicols}
\end{document}
