1 | |
---|
2 | %% ================================================================================================= |
---|
3 | %% Template structure for reference manuals |
---|
4 | %% ================================================================================================= |
---|
5 | |
---|
6 | %% NEMO release version |
---|
7 | \def \version{trunk} |
---|
8 | |
---|
9 | %% Preamble |
---|
10 | %% ================================================================================================= |
---|
11 | |
---|
12 | %% Document layout |
---|
13 | \documentclass[fontsize = 10pt, |
---|
14 | twoside = semi, abstract = on, |
---|
15 | open = right]{scrreprt} |
---|
16 | |
---|
17 | %% Load configurations |
---|
18 | \input{../../global/preamble} |
---|
19 | |
---|
20 | %% End of common preamble between main and sub-files |
---|
21 | %% Override custom cmds for full manual compilation |
---|
22 | \newcommand{\onlyinsubfile}[1]{#1} |
---|
23 | \newcommand{\notinsubfile}[1]{} |
---|
24 | |
---|
25 | \begin{document} |
---|
26 | |
---|
27 | \renewcommand{\onlyinsubfile}[1]{} |
---|
28 | \renewcommand{\notinsubfile}[1]{#1} |
---|
29 | |
---|
30 | \renewcommand{\biblio}{} |
---|
31 | \renewcommand{\pindex}{} |
---|
32 | |
---|
33 | |
---|
34 | %% Frontmatter |
---|
35 | %% ================================================================================================= |
---|
36 | |
---|
37 | \pagenumbering{gobble} %% Disable page numbering temporarily |
---|
38 | |
---|
39 | %% Title page |
---|
40 | \input{../../global/frontpage} |
---|
41 | |
---|
42 | %% Footer for introductory parts (no header by cleaning default) |
---|
43 | \ofoot[]{\engine\ Reference Manual} \ifoot[]{\pagemark} |
---|
44 | |
---|
45 | %% Information page (2nd page) |
---|
46 | \input{../../global/info_page} |
---|
47 | |
---|
48 | \listoffigures \listoftables %\listoflistings %% \listoflistings not working |
---|
49 | |
---|
50 | \clearpage |
---|
51 | |
---|
52 | \pagenumbering{roman} |
---|
53 | \ofoot[]{\engine\ Reference Manual} \ifoot[]{\pagemark} |
---|
54 | |
---|
55 | \input{introduction} |
---|
56 | |
---|
57 | %% Table of Contents |
---|
58 | \tableofcontents |
---|
59 | |
---|
60 | \clearpage |
---|
61 | |
---|
62 | |
---|
63 | %% Mainmatter |
---|
64 | %% ================================================================================================= |
---|
65 | |
---|
66 | %% Headings for document body |
---|
67 | \pagenumbering{arabic} |
---|
68 | \lohead{Chap.\ \thechapter\ \leftmark} \rehead{Sect.\ \thesection\ \rightmark} |
---|
69 | \ifoot[]{Page\ \pagemark\ of \pageref*{LastPage}} |
---|
70 | |
---|
71 | \include{chapters} |
---|
72 | |
---|
73 | |
---|
74 | %% Appendix |
---|
75 | %% ================================================================================================= |
---|
76 | |
---|
77 | \appendix %% Chapter numbering with letters by now |
---|
78 | \lohead{Apdx\ \thechapter\ \leftmark} |
---|
79 | \include{appendices} |
---|
80 | |
---|
81 | %% Append coding rules for every manual |
---|
82 | \input{../../global/coding_rules} |
---|
83 | |
---|
84 | \clearpage |
---|
85 | |
---|
86 | %% Backmatter |
---|
87 | %% ================================================================================================= |
---|
88 | |
---|
89 | %% Bibliography |
---|
90 | \phantomsection |
---|
91 | \addcontentsline{toc}{chapter}{Bibliography} |
---|
92 | \lohead{Bibliography} \rehead{Bibliography} |
---|
93 | \bibliography{../main/bibliography} |
---|
94 | |
---|
95 | \clearpage |
---|
96 | |
---|
97 | %% Indexes |
---|
98 | \phantomsection |
---|
99 | \addcontentsline{toc}{chapter}{Indexes} |
---|
100 | \lohead{Indexes} \rehead{Indexes} |
---|
101 | \printindex[keys] |
---|
102 | \printindex[modules] |
---|
103 | \printindex[blocks] |
---|
104 | \printindex[parameters] |
---|
105 | \printindex[subroutines] |
---|
106 | |
---|
107 | \end{document} |
---|