%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 
% ROMSAF internal doc template modified by JKN DMI (Feb 2020),               %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\documentclass[index=totoc,a4paper,vsreport,12pt]{romsaf10}
\documentclass[index=totoc,a4paper,12pt]{romsaf10}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                              %
% Packages                                                                     %
%                                                        %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\usepackage{draftwatermark}
\renewcommand{\sf}{\normalfont \sffamily}
\renewcommand{\bf}{\normalfont \bfseries} 
\usepackage{scrfootnote}
\usepackage[english]{babel}
\usepackage{color,soul}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{array}
\usepackage{colortbl}
\usepackage{booktabs}
\usepackage{threeparttable}%%%[2007/10/08]
\usepackage{multirow}
\usepackage{multicol}
\usepackage[figuresright]{rotating}
\usepackage{fancyvrb}
\usepackage[centertags]{amsmath}
\usepackage{amssymb}
\usepackage{mathptmx}
\usepackage[numbers]{natbib}
\usepackage{cmtools}
\usepackage{setspace}
\usepackage{relsize}
\usepackage{makeidx}
\usepackage{bibunits}
\usepackage{bm}
\usepackage{txfonts}
\usepackage{float}
\usepackage{hyperref}
\restylefloat{figure}
\usepackage[export]{adjustbox}
%\usepackage[big,compact]{titlesec}
\usepackage[tableposition=top]{caption}
\usepackage[T1]{fontenc}
\usepackage{lastpage}
\usepackage{scrpage2}
\usepackage{grffile}
\usepackage{hhline}
\restylefloat{figure}
\usepackage{paralist}

\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                              %
% Title, document characteristics                                              %
%                                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\DocTitle{The Radio Occultation Processing Package (ROPP) \\
Utilities Module User Guide}
\DocShortTitle{ROPP\_UTILS User Guide}
\DocReference{SAF/ROM/METO/UG/ROPP/008}
\DocVersion{Version 10.0}
\DocDate{31 March 2020}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                              %
% Signature Table and Document Change Record                                   %
%                                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\PreparedBy{F. Warrick}{ROM SAF Project Team}{dd/mm/yy}{}
\ReviewedBy{I. Culverwell}{ROM SAF Project Team}{dd/mm/yy}{}
\ApprovedBy{K. B. Lauritsen}{ROM SAF Project Manager}{dd/mm/yy}{}

\DocChange{Version 10.0}{31 Mar 2020}{FW}{New document for tenth full release (v10.0)}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                              %
% Bibliography                                                                 %
%                                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\renewcommand{\bibsection}{\addsec{\refname}}
\setlength{\parskip}{2mm}
\cut{
\newcommand{\biblabel}[0]{AD.} %this was for the Applicaple ref. list. Not functioning p.t.
\renewcommand{\biblabel}[0]{RD.}
\newcommand{\oldbibitem}[2][]{}	% creating a tmp command
\let\oldbibitem=\bibitem		% copy the \bibitem command into tmp
\newcounter{totalbibitem}
\renewcommand{\bibitem}[1]{\oldbibitem[\biblabel\arabic{totalbibitem}]{#1}
  \addtocounter{totalbibitem}{1}} \setcounter{totalbibitem}{1}
\renewcommand{\bibsection}{\subsection{Reference Documents} The
  following documents provide supplementary or background information,
  and could be helpful in conjunction with this document: \\}  %The bib section title
}
\newcommand{\formattedjobname}{\jobname}



% Abbreviations
% -------------

\newcommand*{\ropp}{\texttt{ropp}}
\newcommand*{\roppio}{\texttt{ropp\_io}}
\newcommand*{\ropppp}{\texttt{ropp\_pp}}
\newcommand*{\roppapps}{\texttt{ropp\_apps}}
\newcommand*{\roppfm}{\texttt{ropp\_fm}}
\newcommand*{\roppqc}{\texttt{ropp\_qc}}
\newcommand*{\roppod}{\texttt{ropp\_1dvar}}
\newcommand*{\ropput}{\texttt{ropp\_utils}}


\newenvironment{packed_itemize}{
\begin{itemize}
  \setlength{\itemsep}{0pt}
  \setlength{\parskip}{0pt}
  \setlength{\parsep}{0pt}
}{\end{itemize}}


%If the document name comes out wrong, uncomment or overwrite :
%\renewcommand{\formattedjobname}{template.version}




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                                              %
% Some useful commands                                                         %
%                                                                              %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeindex
\begin{document}
% Title
% -----
{
\maketitle[1]
}
% Indented descriptions
% ---------------------
%\setkomafont{descriptionlabel}{\hspace{\labelsep}\sffamily\bfseries}
% Footnotes in tables using the threeparttable style
% --------------------------------------------------
%\renewcommand{\TPTtagStyle}[1]{\textit{#1}}
% If doc-change rec. exceeds the page, uncomment this line:
% \DocumentChangeRecordExtra
%linebreak needed here
\romsafText
\romsafIPR
% Table of contents
\renewcommand{\contentsname}{List of Contents}
%\chapter*{}
%\pagenumbering{roman}
%\onehalfspace
\tableofcontents
\addcontentsline{toc}{chapter}{List of Contents}
% Include individual chapters
% ---------------------------
%
% Note: \input will insert contents of the specified files as they
%       are, while \include will also issue a \cleardoublepage after
%       each file (to ensure that chapters start on odd page
%       numbers).
\cut{
%\pagenumbering{arabic}
% To keep the mandatory structure in mind I leave an example here. 
\chapter*{Executive Summary}
\addcontentsline{toc}{chapter}{Executive Summary}
Include Executive Summary here.
\chapter{Introduction}
\section{Purpose of document}
This document describes how to produce itself. You may wonder how it 
was written in the first place. 
\section{Applicable and Reference documents}
\subsection{Applicable documents}
The following list contains documents with a direct bearing on the
contents of this document.\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
%You will have to edit the table below by hand, since bibtex would have 
%to be used in a very non-intuitive way in order to produce two different 
%reference lists.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{tabularx}{\textwidth}{Xp{\textwidth-18mm}}
{[AD.1]} &
EPS End-User Requirements Document (EURD)
Ref: EPS/MIS/REQ/93001 Issue 4, Rev. 2, 13 October 1997 
(also Annex I to EUM/C/36/97/DOC/54) \\
{[AD.2]} &
Proposal for a Continuous Development and Operations Phase. 
Ref: SAF/GRAS/DMI/MGT/CDOP/001 Version 1.3 of 19 July 2006, 
as approved by Council in EUM/C/60/06/DOC/08 on 30 November 2006\\
{[AD.3]} &
SAF for GRAS Meteorology: CDOP Co-operation Agreement
Ref: EUMETSAT Council document C/60/06/DOC/09 (Annex V)\\
{[AD.4]} & 
ROM SAF Product Requirements Document (SAF/ROM/DMI/RQ/PRD/001)
\end{tabularx}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% The auto generated romsaf051.bst file has been modified manually in
% order to play with the redefined \bibitem command. The .bst must not
% produce \bibitem[]{} commands, only \bibitem{}.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\bibliographystyle{romsaf}
%\bibliography{meteorology,romsaf_references} 
%\bibliography{template} 

% Define width used in appendix_use.tex
\newlength\mywidthdescconf

\include{ug_utils_intro}
\include{ug_ropp_intro}
\include{ug_utils}

%\include{changes_log_appendices}
%\input{datetime}
%\input{coordinates}

%\include{io_tools} utils tools (fortran, not cmd line)
\include{appendix}


\end{document}
