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