%\documentclass[landscape,letterpaper]{article}
\documentclass{report}
\usepackage{multicol}
\usepackage{listings}
\usepackage{parskip}
\usepackage[usenames,dvipsnames]{color}
%\usepackage[landscape]{geometry}
\usepackage{afterpage}
\usepackage{url}
\usepackage{amsmath}
\usepackage{graphics}
\usepackage{nomencl}
\usepackage{pgf}
\usepackage{tikz}
\usepackage{makeidx}
\usepackage{nomencl}
\usepackage[colorlinks=true, linkcolor=blue]{hyperref}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage[algo2e,vlined]{algorithm2e}
\usepackage{lscape}
\usepackage{supertabular}
\usepackage{a4wide}%-Northamerica: {fullpage}
\usepackage{svn}%!/hg/s/linux/9/app/teTeX/11.05/texmf-dist/tex/latex/svn/svn.sty
%           --- ubuntu lacks this but has latex-svinfo - usepackage{svninfo}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   Racourcis    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


% Noms de softwares
\newcommand\pastix{\textsc{PaStiX}}
\newcommand\scalap{\textsc{ScAlApplix}}
\newcommand\bacchus{\textsc{Bacchus}}
\newcommand\sacha{\textsc{Sacha}}
\newcommand\pablas{\textsc{Pablas}}
\newcommand\murge{\textsc{Murge}}
\newcommand\scotch{\textsc{Scotch}}
\newcommand\metis{\textsc{Metis}}

% Guillemets
\newcommand\og{"}
\newcommand\fg{"}

% iparm et dparm
\newcommand{\iparm}[1]{\texttt{#1}\index{IPARM@Integer parameters!\texttt{#1}}}
\newcommand{\dparm}[1]{\texttt{#1}\index{DPARM@Double parameters!\texttt{#1}}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   PROTOTYPES   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%      Mots cles des prototypes     %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Type, fonction, variable
\newcommand{\type}[1]{\textcolor{OliveGreen}{#1}}
\newcommand{\func}[1]{\textcolor{Blue}{#1}}
\newcommand{\var}[1]{\textcolor{YellowOrange}{#1}}
% Mot clé fortran
\newcommand{\forkey}[1]{\textcolor{Mulberry}{#1}}

% Preprocesseur (ie : #include)
\newcommand{\preproc}[1]{\textcolor{Rhodamine}{#1}}
% Included file (ie : ``pastix.h'')
\newcommand{\inc}[1]{\textcolor{Tan}{#1}}
% Etoile pour les pointeurs
\newcommand{\st}{\raisebox{-0.5ex}{*}}




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%         Tableaux pour les prototypes               %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%% Declaration de variables en Fortran,
%%%% type & :: var1, var2\\
\newenvironment{type-var}
               {\begin{footnotesize}\begin{tabular}{ll}}
               {\end{tabular}\end{footnotesize}}

%%%% Functions fortran :
%%%% call func ( & var1, var2\\
%%%%             & var3)\\
\newenvironment{type-func-vars}
               {\begin{footnotesize}\begin{tabular}{l@{ }l}}
               {\end{tabular}\end{footnotesize}}

%%%% Fonction C avec une colonne de paramètre
%%%% type func ( & type & modifier & var,\\
%%%%             & type & modifier & var );\\
\newenvironment{type-func-type-mod-var}{\begin{tabular}{l@{ }l@{ }l@{
      }l}}{\end{tabular}}
%%%% Fonction C avec deux colonne de paramètre
%%%% type func ( & type & modifier & var, & type & modifier & var,\\
%%%%             & type & modifier & var, & type & modifier & var );\\
\newenvironment{type-func-type-mod-var-type-mod-var}
               {\begin{tabular}{l@{ }l@{ }l@{ }l@{ }l@{ }l@{ }l@{ }l@{ }}}
               {\end{tabular}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%            Remplissage des tableaux pour les prototypes            %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%% Ligne du type :
%%%%%%%%%%%%%%% type func ( & type & modifier & var,
\newcommand{\tftmv}[5]{\type{#1} \func{#2} ( & \type{#3} & #4 &
  \var{#5}}

%%%%%%%%%%%%%%% Ligne du type :
%%%%%%%%%%%%%%%             & type & modifier & var,
\newcommand{\tmv}[3]{& \type{#1} & #2 & \var{#3}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%        Tableaux d'arguments     %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newenvironment{arguments}
               {\begin{tabular}{l}
                   \hskip -2 mm Parameters~:\\
                   \begin{tabular}{l@{ : }p{0.7\textwidth}}}
               {\end{tabular}\end{tabular}}
\newenvironment{returns}
               {\begin{tabular}{l}\hskip -2 mm Returns~:\\*
                   \begin{tabular}{l@{ : }l}}
               {\end{tabular}\end{tabular}}
% Ligne de description des arguments de la fonction (tableau à deux case)
\newcommand{\argdesc}[2]{\texttt{#1} & #2\\}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%     Description de fonctions     %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\newcommand{\descript}[2]{\par #2 }


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%                      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%   Debut du document  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%                      %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\title{\pastix{} User's manual}


\makeindex
\makenomenclature
\begin{document}

\maketitle
\tableofcontents
\nocite{*}
\input{description.tex}
\input{compilation.tex}
\input{pastixsteps.tex}
\input{functions.tex}
\input{wrapper.tex}
\input{examples}
\input{outputs}
%%\appendix
%%\chapter{Quick reference card}
%%\thispagestyle{plain}
%%\begin{landscape}
%%\newpage
%%\vspace*{-3cm}
%%\afterpage{\vspace*{-3cm}\thispagestyle{plain}}

%%\hskip -10cm
%%\vskip -4cm
%%\section{Floating and Integer parameters (dparm and iparm)}
%%\begin{small}
%%\input{iparm.tex}
%%\input{dparm.tex}
%ù\end{small}
%%\end{landscape}

%%\section{\pastix{} API : Macros}
%%%%    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%%\begin{multicols}{2}
%%
%%\input{api.tex}
%%\end{multicols}

\printnomenclature
\printindex
\bibliographystyle{alpha}
\bibliography{pastixman,PaStiX,RICAr}

\end{document}
