\documentclass[final]{ioccg} %%%%%%%%%%%%% options:  [bookpaper]
\usepackage{fontspec}
\defaultfontfeatures{Scale=0.8}
\setmainfont{LucidaBrightOT}

\usepackage{amsmath}%
%\setmathfont{LucidaBrightMathOT}
\usepackage{array}
\usepackage{appendix} % for appendices - must change TOC if using this package!  Gives error when compiling!
\usepackage{graphicx}
\usepackage{booktabs} % for more space above/below lines in tables. Use \toprule, \midrule or  \bottomrule.

%\usepackage{colour}
%\usepackage{transparent}

\usepackage{makeidx}
\usepackage{bigstrut} %% sometimes needed for tables, from the 'multirow' package.% whenever superscripts or subscripts appear in a table, it may be necessary to add additional space.  This can be done using \bigstrut[t] (top space) or \bigstrut[b] (bottom space). Doesn't work with Longtable!

\usepackage[letter,center]{crop}
%\crop  % produces crop marks for printed version!!!

\usepackage[showlabels,sections,floats,textmath,displaymath]{preview}
%\usepackage[style=1] {mdframed} % for inset frame boxes
\usepackage{afterpage}
\usepackage{longtable}

\usepackage{array,color} % for colour tables
\usepackage{colortbl} % for colour tables
\usepackage{lineno}
%\usepackage{textcomp} %for Registered and Copyright symbol

\usepackage{rotating}
%\usepackage{fancyhdr} % causes problems in new version of MikTex!! No longer works  with older document class files like IOCCG.

\usepackage{supertabular} % for acronyms
%%% define our own URL style, 'ioccg'
\makeatletter

\usepackage{wrapfig} % to wrap text around figures
\usepackage{multicol}
\usepackage{multirow}
\usepackage{lscape}
\usepackage{threeparttable}
\usepackage{enumitem} % to remove indents from an itemized list

\usepackage[
    backend=biber,
    style=apa,
    uniquename=false,
    linkcolor={ioccgblue},
    ]{biblatex}
\addbibresource{Bibtex-example.bib}
%\bibliography{Report-22/Bibtex-hyper.bib}


\usepackage[colorlinks,linkcolor=black,breaklinks,urlcolor={ioccgblue},citecolor={ioccgblue}]{hyperref}

\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{citetitle}{#1}
\DeclareFieldFormat[article,inbook,incollection,inproceedings,patent,thesis,unpublished]{title}{#1}

\DeclareFieldFormat{pages}{#1}% removes pagination (p./pp.) before page numbers
\DeclareFieldFormat[article]{volume}{{#1}\addcolon\space}%  adds colon after volume


\def\i{\textit}
\def\mi{\mathit}
\def\rm{\mathrm}
\def\l{\lambda}
\def\d{\degree}

%\def\m3{m$^{-3}$}
%\def\m1{m$^{-1}$}

%\setlength\LTcapwidth{7in}% Caption width for sideways long tables - put just before table itself!
%\setlength{\extrarowheight}{1.5pt} % for long tables - remove if not using long tables or if don't want extra row height

%\renewcommand*{\thefootnote}{\fnsymbol{footnote}} %to use symbols instead of numbers for footnotes
\renewcommand{\thefootnote}{\arabic{footnote}} %% to make footnotes into Arabic numbers

\def\url@ioccgstyle{
\@ifundefined{selectfont}{\def\UrlFont{\tt\color{ioccgblue}}}{\def\UrlFont{\ttfamily\scriptsize\color{ioccgblue}}}}
%\@ifundefined{selectfont}{\def\UrlFont{\tt\color{ioccgblue}}}{\def\UrlFont{\ttfamily\footnotesize\color{ioccgblue}}}} - slightly bigger URLs and DOIs than above!


%%%% URL style for use in reference list (smaller than usual)
\def\url@ioccgrefstyle{
\@ifundefined{selectfont}{\def\UrlFont{\tt\footnotesize\color{ioccgblue}}}{\def\UrlFont{\ttfamily\scriptsize\color{ioccgblue}}}}
\makeatother %%%%%%%%%%%%%%%%%%% end of ioccg URL style

\urlstyle{ioccg}  % use IOCCG URL style - must come AFTER defining the style!

\renewcommand*{\bibfont}{\footnotesize} %% to set font size for Bibliography!!!!!

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% end of IOCCG setup
\begin{document}

\newpage
\thispagestyle{empty}

\noindent{\LARGE Reports and Monographs of the International\\
Ocean Colour Coordinating Group} \vspace{.1in}


\noindent An Affiliated Program of the Scientific Committee on
Oceanic Research (SCOR)\\An Associated Member of the Committee on Earth Observation Satellites (CEOS)

\vspace{0.4 in}


\noindent{\color{ioccgblue}\Large{IOCCG Report DRAFT}}

\vspace{0.3 in}

\noindent{\color{ioccgblue}{\LARGE  Name of Report}}


\vspace{0.2 in}


\noindent {\large Edited by:

\noindent First Last, First I. Last, and First Last}

\vspace{0.2 in}

\noindent  Report of an IOCCG working group chaired by Names of Chairs and based on contributions from (in alphabetical order):

\vspace{0.1in}

\noindent

\small{
\noindent\begin{tabular}{l>{\raggedright\hspace{0pt}}p{8.5 cm}}

First Last & Institution, Country \tabularnewline
First Last & Institution, Country \tabularnewline

\end{tabular}}


\newpage
\tableofcontents

\input{1.tex}
\input{2.tex}
\clearpage
\input{acronyms.tex}
\clearpage
\input{glossary}
\clearpage


\makeatletter\renewcommand\@oddhead{\small\hfil\textit{Bibliography}\quad$\bullet$\quad\thepage}\makeatother

%\printbibliography
\defbibheading{bibliography}[\bibname]{\chapter*{Bibliography}{}}
\addcontentsline{toc}{chapter}{Bibliography}
\printbibliography

\end{document}



