\documentclass[oneside]{book}
\usepackage{url,verbatim,fancyvrb,appendix}
\usepackage{pifont}
\usepackage[latin1]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage[authoryear]{natbib}
\usepackage{color,gretl}
\usepackage[letterpaper,body={6.3in,9.15in},top=.8in,left=1.1in]{geometry}
\usepackage[pdftex,hyperfootnotes=false]{hyperref}
\usepackage{dcolumn,amsmath,bm}

%% \pdfimageresolution=120
\hypersetup{pdftitle={Gretl User's Guide},
            pdfsubject={GNU Regression, Econometrics and Time Series Library},
            pdfauthor={Allin Cottrell and Jack Lucchetti},
            colorlinks=true,
            linkcolor=blue,
            urlcolor=red,
            citecolor=steel,
            bookmarks=true,
            bookmarksnumbered=true,
            plainpages=false
}

% ------------- custom commands -------------------------------------------
\newcommand{\LogLik}{\ensuremath\ell}
\newcommand{\stackunder}[2]{\ensuremath\mathrel{\mathop{#2}\limits_{#1}}}
\newcommand{\pder}[2]{\frac{\ensuremath\partial #1}{\partial #2}}
\newcommand{\convp}{\stackrel{\mathrm{p}}{\longrightarrow}}
\newcommand{\convd}{\stackrel{\mathrm{d}}{\longrightarrow}}
\renewcommand{\vec}[1]{{\rm vec}(#1)}
% -------------------------------------------------------------------------
%\includeonly{gmm}
\begin{document}

\VerbatimFootnotes

\setlength{\parindent}{0pt}
\setlength{\parskip}{1ex}
\setcounter{tocdepth}{1}

%% titlepage

\thispagestyle{empty}

\begin{center}
\pdfbookmark[1]{Gretl User's Guide}{titlepage}

\gtitle{Gretl User's Guide}

\gsubtitle{Gnu Regression, Econometrics and Time-series Library}

{\large \sffamily
Allin Cottrell\\
Department of Economics\\
Wake Forest University\\

\vspace{20pt}
Riccardo ``Jack'' Lucchetti\\
Dipartimento di Economia\\
Università Politecnica delle Marche\\

\vspace{20pt}
\input date
}

\end{center}
\clearpage

%% end titlepage, start license page

\thispagestyle{empty}

\pdfbookmark[1]{License}{license}

\vspace*{2in}

Permission is granted to copy, distribute and/or modify this document
under the terms of the \emph{GNU Free Documentation License}, Version
1.1 or any later version published by the Free Software Foundation
(see \url{http://www.gnu.org/licenses/fdl.html}).

\clearpage

%% end license page, start table of contents
\pdfbookmark[1]{Table of contents}{contents}

\pagenumbering{roman}
\pagestyle{headings}

\tableofcontents

\clearpage
\pagenumbering{arabic}

\include{introduction}

\part{Running the program}

\include{starting}
\include{modes}
\include{datafiles}
\include{genr}
\include{sampling}
\include{graphs}
\include{discrete}
\include{looping}
\include{functions}
\include{datatypes}
\include{persistent}
\include{matrices}
\include{cheatsheet}

\part{Econometric methods}

\include{robust_vcv}
\include{panel}
\include{dpanel}
\include{nls}
\include{mle}
\include{gmm}
\include{criteria}
%% \include{df}
\include{tsfilter}
\include{timeseries}
\include{var}
\include{vecm}
\include{system}
\include{forecast}
\include{kalman}
\include{numerical}
\include{probit}
\include{quantreg}
\include{nonparam}

\part{Technical details}

\include{gretltex}
\include{gretlR}
\include{gretlOx}
\include{gretlOctave}
\include{trouble}
\include{cli}

\part{Appendices}

\begin{appendices}
\include{appendices}
\end{appendices}

\clearpage

\include{biblio}

\end{document}
