%
% 
%
% Copyright (C) 1997-2015 by Dimitri van Heesch.
%
% Permission to use, copy, modify, and distribute this software and its
% documentation under the terms of the GNU General Public License is hereby 
% granted. No representations are made about the suitability of this software 
% for any purpose. It is provided "as is" without express or implied warranty.
% See the GNU General Public License for more details.
%
% Documents produced by analyze are derivative works derived from the
% input used in their production; they are not affected by this license.

\batchmode
\pdfminorversion=7
\pdfsuppresswarningpagegroup=1
\documentclass{book}
%% moved from analyze.sty due to workaround for LaTex 2019 version and unmaintained tabu package
\usepackage{ifthen}
\ifx\requestedLaTeXdate\undefined
\usepackage{array}
\else
\usepackage{array}[=2016-10-06]
\fi
%%
\makeatletter
% suppress package identification of infwarerr as it contains the word "warning"
\let\@@protected@wlog\protected@wlog
\def\protected@wlog#1{\wlog{package info suppressed}}
\RequirePackage{infwarerr}
\let\protected@wlog\@@protected@wlog
\makeatother
%%
\usepackage[a4paper,left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm]{geometry}
\usepackage{makeidx}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{float}
\usepackage{geometry}
\usepackage{listings}
\usepackage{color}
%%\usepackage{ifthen} %% moved to top due to workaround for LaTex 2019 version and unmaintained tabu package
\usepackage[table]{xcolor}
\PassOptionsToPackage{warn}{textcomp}
\usepackage{textcomp}
\usepackage[nointegrals]{wasysym}
\usepackage{alltt}
\usepackage{import}
\usepackage[titletoc]{appendix}
\usepackage{ifpdf}
\ifpdf
\usepackage[pdftex,
            pagebackref=true,
            colorlinks=true,
            linkcolor=blue,
            unicode
           ]{hyperref}
\else
\usepackage[ps2pdf,
            pagebackref=true,
            colorlinks=true,
            linkcolor=blue,
            unicode
           ]{hyperref}
\usepackage{pspicture}
\fi
\usepackage[utf8]{inputenc}
\usepackage{mathptmx}
\usepackage[scaled=.90]{helvet}
\usepackage{courier}
\usepackage[titles]{tocloft}
\usepackage{amssymb}
\usepackage{analyze}
\usepackage{manual}
%%
%gave problems when in analyze.sty
\makeatletter
\newcommand\hrulefilll{\leavevmode\leaders\hrule\hskip 0pt plus 1filll\kern\z@}
\makeatother
%%
% unfortunately constructs like: 
%   \renewcommand{\analzsection}[1]{\analzsubsection{##1}}
% using values from book.cls (see also analyze.sty) and redefining sections to correct level.
\makeatletter
\newenvironment{analyzeSubAppendix}{%
\renewcommand\analzsection{\@startsection{subsection}{2}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\raggedright\normalfont\large\bfseries}}
\renewcommand\analzsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-3.25ex\@plus -1ex \@minus -.2ex}%
                                     {1.5ex \@plus .2ex}%
                                     {\raggedright\normalfont\normalsize\bfseries}}
\renewcommand\analzsubsubsection{\@startsection{paragraph}{8}{\z@}%
                                    {3.25ex \@plus1ex \@minus.2ex}%
                                    {-1em}%
                                    {\raggedright\normalfont\normalsize\bfseries}}
\renewcommand\analzparagraph{\@startsection{subparagraph}{9}{\parindent}%
                                       {3.25ex \@plus1ex \@minus .2ex}%
                                       {-1em}%
                                      {\raggedright\normalfont\normalsize\bfseries}}
%%\renewcommand{\analzsection}[1]{\analzsubsection{##1}}
%%\renewcommand{\analzsubsection}[1]{\analzsubsubsection{##1}}
%%\renewcommand{\analzsubsubsection}[1]{\analzparagraph{##1}}
%%\renewcommand{\analzparagraph}[1]{\analzsubparagraph{##1}}
}{}
\makeatother
%%
\newcommand{\+}{\discretionary{\mbox{\scriptsize$\hookleftarrow$}}{}{}}
\lstset{language=C++,inputencoding=utf8,basicstyle=\footnotesize,breaklines=true,breakatwhitespace=true,tabsize=8,numbers=left }
\makeindex
\setcounter{tocdepth}{3}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\cftsecindent}{0 em}
\renewcommand{\cftsecnumwidth}{3.2 em}
\renewcommand{\cftsubsecindent}{3.2 em}
\newcommand{\thisyear}{\the\year}
\hfuzz=15pt
\setlength{\emergencystretch}{15pt}
\setlength{\parindent}{0pt}
\newcommand{\analznormalparskip}{\setlength{\parskip}{0.2cm}}
\newcommand{\analztocparskip}{\setlength{\parskip}{0.2cm}}
\newcommand{\analyzeemoji}[2]{%
\IfFileExists{../doc/#2.png}{\raisebox{-0.1em}{\includegraphics[height=0.9em]{../doc/#2.png}}}{#1}}
\analznormalparskip
\hbadness=750
\tolerance=750
\makeatletter
\providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}
\makeatother
\IfFormatAtLeastTF{2023/05/01}{\usepackage[deeplevels]{etoc}}{\usepackage[deeplevels]{etoc_analyze}}
\etocsettocstyle{\analztocparskip}{\analznormalparskip}
\etocsetlevel{subsubsubsection}{4}
\etocsetlevel{subsubsubsubsection}{5}
\etocsetlevel{subsubsubsubsubsection}{6}
\etocsetlevel{subsubsubsubsubsubsection}{7}
\etocsetlevel{paragraph}{8}
\etocsetlevel{subparagraph}{9}
\begin{document}
\raggedbottom
\pagenumbering{alph}
\begin{titlepage}
\includegraphics[width=\textwidth]{analyze_logo}
\begin{center}
Manual for version @VERSION@\\[2ex]
Written by Dimitri van Heesch\\[2ex]
\copyright 1997-\thisyear
\end{center}
\end{titlepage}
\clearemptydoublepage
\pagenumbering{Roman}
\chapter*{Contents}
\tableofcontents
\clearemptydoublepage
\pagenumbering{arabic}
\part{User Manual}
\input{index}
\input{install}
\input{starting}
\input{docblocks}
\input{additional}
\input{markdown}
\input{lists}
\input{grouping}
\input{formulas}
\input{tables}
\input{diagrams}
\input{preprocessing}
\input{autolink}
\input{output}
\input{searching}
\input{customize}
\input{custcmd}
\input{external}
\input{faq}
\input{trouble}
\part{Reference Manual}
\input{features}
\input{analyze_usage}
\input{analzwizard_usage}
\input{config}
\input{commands}
\input{htmlcmds}
\input{xmlcmds}
\input{emojisup}
\part{Developers Manual}
\input{langhowto}
\input{perlmod}
\input{arch}
\renewcommand{\thepart}{}
\renewcommand{\partname}{}
\part{Appendices}
\appendix
%mean that subinputfrom requires a / at the end of the path
\chapter{Autolink Example}\label{autolink_example}\hypertarget{autolink_example}{}
\subinputfrom{examples/autolink/latex/}{refman_doc}
\chapter{Resolving Typedef Example}\label{restypedef_example}\hypertarget{restypedef_example}{}
\subinputfrom{examples/restypedef/latex/}{refman_doc}

\IfFileExists{examples/diagrams/latex/refman_doc.tex}
{
  \chapter{Diagrams Example}\label{diagrams_example}\hypertarget{diagrams_example}{}
  \subinputfrom{examples/diagrams/latex/}{refman_doc}
}{}

\chapter{Grouping Example}\label{modules_example}\hypertarget{grouping_example}{}
\subinputfrom{examples/group/latex/}{refman_doc}
\chapter{Member Groups Example}\label{memgrp_example}\hypertarget{memgrp_example}{}
\subinputfrom{examples/memgrp/latex/}{refman_doc}
\chapter{Style Examples}
  \analzsection{After Block Example}\label{afterdoc_example}\hypertarget{afterdoc_example}{}
  \begin{analyzeSubAppendix}
    \subinputfrom{examples/afterdoc/latex/}{refman_doc}
  \end{analyzeSubAppendix}
  \analzsection{QGG Style Example}\label{QGGstyle_example}\hypertarget{QGGstyle_example}{}
  \begin{analyzeSubAppendix}
    \subinputfrom{examples/QGGstyle/latex/}{refman_doc}
  \end{analyzeSubAppendix}
  \analzsection{Javadoc Style Example}\label{jdstyle_example}\hypertarget{jdstyle_example}{}
  \begin{analyzeSubAppendix}
    \subinputfrom{examples/jdstyle/latex/}{refman_doc}
  \end{analyzeSubAppendix}
  \analzsection{Javadoc Banner Example}\label{javadoc_banner_example}\hypertarget{javadoc_banner_example}{}
  \begin{analyzeSubAppendix}
    \subinputfrom{examples/javadoc-banner/latex/}{refman_doc}
  \end{analyzeSubAppendix}
\chapter{Structural Commands Example}\label{structcmd_example}\hypertarget{structcmd_example}{}
\subinputfrom{examples/structcmd/latex/}{refman_doc}
\chapter{Language Examples}
  \analzsection{Python Docstring Example}\label{python_example}\hypertarget{python_example}{}
  \begin{analyzeSubAppendix}
    \subinputfrom{examples/docstring/latex/}{refman_doc}
  \end{analyzeSubAppendix}
  \analzsection{Python Example}\label{py_example}\hypertarget{py_example}{}
  \begin{analyzeSubAppendix}
    \subinputfrom{examples/pyexample/latex/}{refman_doc}
  \end{analyzeSubAppendix}
  \analzsection{VHDL Example}\label{vhdl_example}\hypertarget{vhdl_example}{}
  \begin{analyzeSubAppendix}
    \subinputfrom{examples/mux/latex/}{refman_doc}
  \end{analyzeSubAppendix}

\chapter{Class Example}\label{class_example}\hypertarget{class_example}{}
\subinputfrom{examples/class/latex/}{refman_doc}
\chapter{Define Example}\label{define_example}\hypertarget{define_example}{}
\subinputfrom{examples/define/latex/}{refman_doc}
\chapter{Enum Example}\label{enum_example}\hypertarget{enum_example}{}
\subinputfrom{examples/enum/latex/}{refman_doc}
\chapter{Example Example}\label{example_example}\hypertarget{example_example}{}
\subinputfrom{examples/example/latex/}{refman_doc}
\chapter{Extends/Implements Example}\label{extends_example}\hypertarget{extends_example}{}
\subinputfrom{examples/manual/latex/}{refman_doc}
\chapter{File Example}\label{file_example}\hypertarget{file_example}{}
\subinputfrom{examples/file/latex/}{refman_doc}
\chapter{Fn Example}\label{fn_example}\hypertarget{fn_example}{}
\subinputfrom{examples/func/latex/}{refman_doc}
\chapter{Overload Example}\label{overload_example}\hypertarget{overload_example}{}
\subinputfrom{examples/overload/latex/}{refman_doc}
\chapter{Page Example}\label{page_example}\hypertarget{page_example}{}
\subinputfrom{examples/page/latex/}{refman_doc}
\chapter{Relates Example}\label{relates_example}\hypertarget{relates_example}{}
\subinputfrom{examples/relates/latex/}{refman_doc}
\chapter{Author Example}\label{author_example}\hypertarget{author_example}{}
\subinputfrom{examples/author/latex/}{refman_doc}
\chapter{Par Example}\label{par_example}\hypertarget{par_example}{}
\subinputfrom{examples/par/latex/}{refman_doc}
\chapter{Include Example}\label{include_example}\hypertarget{include_example}{}
\subinputfrom{examples/include/latex/}{refman_doc}


\printindex
\end{document}
