% monitor & build this document with the following command: latexmk -pvc -pdf proposal.tex
% maybe a makeglossaries is also necessary :) 
% spell-check in vim: set spell
% select the language right after \begin{document} - it's either naustrian or english

\documentclass[a4paper,11pt]{article}
\usepackage[english,naustrian]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{listings}
\usepackage{enumerate}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{fancyhdr}
\usepackage{color}
\usepackage{tabularx}
\usepackage[xindy,acronym]{glossaries}
\usepackage[a4paper,vmargin={40mm,40mm},hmargin={20mm,20mm}]{geometry}
\usepackage[colorlinks=true,
    linkcolor=black,
    citecolor=black,
    pagecolor=black,
    urlcolor=black,
    breaklinks=true,
    bookmarksnumbered=true,
    hypertexnames=false,
    pdfpagemode=UseOutlines,
    pdfview=FitH,
    plainpages=false,
    pdfpagelabels,
    bookmarks=true,
    linktocpage=true]{hyperref}
\usepackage{eurosym}
\hypersetup{pdfauthor={Wolfgang Hennerbichler, RISC Software GmbH},
	pdftitle={Proposal for a Cloud Project} ,
	pdfsubject={Proposal for a collaborative Cloud Computing project},
	pdfkeywords={},
	pdfcreator={pdfLaTeX with hyperref (\today})}

\pagestyle{fancy}
\title{Proposal for a collaborative Cloud Computing project}
\author{Wolfgang Hennerbichler <wolfgang.hennerbichler@risc-software.at>}
\date{\today}

% no page break after title
\let\endtitlepage\relax

\newglossaryentry{pos}{name=Part Of Speech,text=Part of Speech,description={Description}}
\renewcommand{\glsgroupskip}{}
\makeglossaries
\renewcommand{\glsgroupskip}{}

\lstnewenvironment{code}{%
  \lstset{
    moredelim=**[is][\bfseries]{*}{*},% bold everything in between **
    moredelim=**[is][\itshape]{|}{|},  % italic everything in between ||
    basicstyle=\ttfamily,
    frame=single,
    tabsize=2,
    breaklines=true,
    numbers=left
  }
}
{%
  \ignorespaces
}


\begin{document}
\selectlanguage{english}

\maketitle
\tableofcontents

\section{Outline}
\newacronym{isp}{ISP}{Internet Service Provider}
This is a text about an \gls{isp}. For now I'll only reference it as \gls{isp}.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

\section{Main Topic}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

\subsection{Sub-Topic}
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.
\begin{itemize}
\item one
\item two
\item three
\item four
\end{itemize}

%\makeglossaries
\printglossary[type=\acronymtype]

\end{document}
