%
% Copyright 2019 Xilinx Inc.
%
% Licensed under the Apache License, Version 2.0 (the "License");
% you may not use this file except in compliance with the License.
% You may obtain a copy of the License at
%
%     http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the License is distributed on an "AS IS" BASIS,
% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
% See the License for the specific language governing permissions and
% limitations under the License.

% Latex header for doxygen 1.8.5
\documentclass[oneside]{book}

% Packages required by doxygen
\usepackage{fixltx2e}
\usepackage{calc}
\usepackage{doxygen}
%\usepackage[export]{adjustbox} % also loads graphicx
\PassOptionsToPackage{export}{adjustbox}
\usepackage{graphicx}
\usepackage{ifthen}
\usepackage[utf8]{inputenc}
\usepackage{makeidx}
\usepackage{multicol}
\usepackage{multirow}
\PassOptionsToPackage{warn}{textcomp}
\usepackage{textcomp}
\usepackage[nointegrals]{wasysym}
\usepackage[table]{xcolor}

% Font selection
\usepackage[T1]{fontenc}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage{amssymb}
\usepackage{sectsty}
\renewcommand{\familydefault}{\sfdefault}
\allsectionsfont{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\renewcommand{\DoxyLabelFont}{%
  \fontseries{bc}\selectfont%
  \color{darkgray}%
}
\newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}}

% Page & text layout
\usepackage{geometry}
\geometry{%
  a4paper,%
  top=2.5cm,%
  bottom=2.5cm,%
  left=2.5cm,%
  right=2.5cm%
}
\tolerance=750
\hfuzz=15pt
\hbadness=750
\setlength{\emergencystretch}{15pt}
\setlength{\parindent}{0cm}
\setlength{\parskip}{3ex plus 2ex minus 2ex}
\makeatletter
\renewcommand{\paragraph}{%
  \@startsection{paragraph}{4}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@parafont%
  }%
}
\renewcommand{\subparagraph}{%
  \@startsection{subparagraph}{5}{0ex}{-1.0ex}{1.0ex}{%
    \normalfont\normalsize\bfseries\SS@subparafont%
  }%
}
\makeatother

% Headers & footers
\usepackage{fancyhdr}
%% \pagestyle{fancyplain}
%% \fancyhead[LE]{\fancyplain{}{\bfseries\thepage}}
%% \fancyhead[CE]{\fancyplain{}{}}
%% \fancyhead[RE]{\fancyplain{}{\bfseries\leftmark}}
%% \fancyhead[LO]{\fancyplain{}{\bfseries\rightmark}}
%% \fancyhead[CO]{\fancyplain{}{}}
%% \fancyhead[RO]{\fancyplain{}{\bfseries\thepage}}
%% \fancyfoot[LE]{\fancyplain{}{}}
%% \fancyfoot[CE]{\fancyplain{}{}}
%% \fancyfoot[RE]{\fancyplain{}{\bfseries\scriptsize Generated by Doxygen }}
%% \fancyfoot[LO]{\fancyplain{}{\bfseries\scriptsize Generated by Doxygen }}
%% \fancyfoot[CO]{\fancyplain{}{}}
%% \fancyfoot[RO]{\fancyplain{}{}}
%% \renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\headrulewidth}{1.2pt}% 1pt header rule
\renewcommand{\headrule}{\hbox to\headwidth{\color{red}\leaders\hrule height \headrulewidth\hfill}}
\pagestyle{fancyplain}
\lhead{\includegraphics[scale=0.6]{../../Logo.png}}
\chead{}
\rhead{\leftmark}
\lfoot{\textbf {XIR Reference Manual} \\ {\small UGxxxx(v0.0.1) \today}}
\cfoot{www.xilinx.com}
\rfoot{\thepage}

\renewcommand{\chaptermark}[1]{%
  \markboth{#1}{}%
}
\renewcommand{\sectionmark}[1]{%
  \markright{\thesection\ #1}%
}

% Indices & bibliography
\usepackage{natbib}
\usepackage[titles]{tocloft}
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{5}
\makeindex

% Hyperlinks (required, but should be loaded last)
\usepackage{ifpdf}
\ifpdf
  \usepackage[pdftex,pagebackref=true]{hyperref}
\else
  \usepackage[ps2pdf,pagebackref=true]{hyperref}
\fi
\hypersetup{%
  colorlinks=true,%
  linkcolor=blue,%
  citecolor=blue,%
  unicode%
}

% Custom commands
\newcommand{\clearemptydoublepage}{%
  \newpage{\pagestyle{empty}\cleardoublepage}%
}

\usepackage{caption}
\captionsetup{labelsep=space,justification=centering,font={bf},singlelinecheck=off,skip=4pt,position=top}

\usepackage{listings}

%===== C O N T E N T S =====
\begin{document}

% Titlepage & ToC
\hypersetup{pageanchor=false,
             bookmarksnumbered=true,
             pdfencoding=unicode
            }

\begin{titlepage}
  \vspace*{1cm}
           \textbf{\Huge XIR Rerefence Manual }\\
          \vspace*{7cm}

          {\large UGxxxx(v0.0.1) \today}\\
          \vspace*{9cm}
          \begin{flushright}%
            \includegraphics{../../Logo.png}
          \end{flushright}
\end{titlepage}

\textbf{\huge Revision History }

{\large The following table shows the revision history for this document.}


\begin{center}
\renewcommand{\arraystretch}{2}
\setlength{\tabcolsep}{24mm}{
  \begin{tabular}{|l|l|}
  \hline
  \textbf {\large Section } & \textbf{\large Revision Summary}\\
  \hline
  \multicolumn{2}{|c|}{ \large 06/01/2019 Version 0.0.1}\\
  \hline
  \large General updates& \large Initial Xilinx release\\
  \hline
\end{tabular}}
\end{center}

\tableofcontents

\hypersetup{pageanchor=true}

%--- Begin generated contents ---
