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