Sample root file

Here is a sample root file that you can use right away to get you started. It is usually named main.tex and saved to the root of the project.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
% Manual ROOT FILE
% Copyright 2020 Glenn J. Lea

%\RequirePackage[l2tabu, orthodox]{nag}

\documentclass[a4paper,11pt,twoside]{book}
\usepackage(makeidx)
\usepackage{styles/template}

\begin{document}

\frontmatter
% Configuration of the header strings for the frontmatter pages.
\setcounter{tocdepth}{3}
\fancyhead[RE,LO]{}

% Document Title Page
\input{MANUAL/manual-titlepage.tex}
%\thispagestyle{empty}
\newpage
\pagecolor{white}

% Forward Section  
% \section*{Foreward}
\textbf{Document Information}

%% Document information table
\begin{center}
\begin{longtable}{>{\RaggedLeft}p{4cm}|>{\RaggedRight}p{10cm}}
  \endfirsthead \multicolumn{2}{l}{\textit{Document Information continued}}\
  \endhead \multicolumn{2}{r}{\textit{Continued on next page}}\
  \endfoot
  \endlastfoot
  \textbf{Item} & \textbf{Description}
  Document Version & Version #\\
  Revision Number & Rev #\\
  Document ID #\
  Date Published #\
\end{longtable}
\end{center}

% Copyright Information
\textbf{Copyright Information}
\textbf{Glenn J.Lea}\\
\textbf{Additional Information}\
\newpage

%% Table of Contents
\tableofcontents
\newpage

%% List of tables
\listoftables
\newpage

%% List of Figures
\listoffigures
\newpage%% Main part of the document
\mainmatter{}

%% Configuration of the header strings for the main pages.
%%\fancyhead[RE,LO]{\thesection}
\fancyhead[RO,LE]{\bfseries\leftmark}
\fancyhead[RE,LO]{\bfseries\rightmark}

%% Input all external files of the document
%% You must use the \input(filename.tex) form  
\input{MANUAL/manual-ch01-preface.tex}
\input{MANUAL/manual-ch02-overvew.tex}
\input{MANUAL/manual-ch03.tex}
\input{MANUAL/manual-ch04.tex}
\input{MANUAL/manual-ch05.tex}

%% Appendix Inputs
\appendix
\input{MANUAL/app01.tex}
\input{MANUAL/app02.tex}
\input{MANUAL/app05-glossary.tex}

\backmatter
\end{document}