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