-
Notifications
You must be signed in to change notification settings - Fork 21
/
cookbook.tex
113 lines (94 loc) · 4.36 KB
/
cookbook.tex
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% LaTeX Cookbook
% LuaLaTeX-based LaTeX cookbook based on KOMAScript
%
% Refer to the *.cls file for version info (see \ProvidesClass).
%
% License and Copyright:
% MIT License
%
% Original Author and Copyright (c) 2020 Alex Povel - tex(at)alexpovel.de
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, including without limitation the rights
% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
% copies of the Software, and to permit persons to whom the Software is
% furnished to do so, subject to the following conditions:
%
% The above copyright notice and this permission notice shall be included in all
% copies or substantial portions of the Software.
%
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
% SOFTWARE.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Magic Comment:
% This template requires LuaLaTeX.
% The following 'magic comment' is recognized by editors and will ensure lualatex engine
% use:
%!TEX TS-program = lualatex
% Note that package `svg` also requires elevation, aka the `--shell-escape` option to
% read/write SVG/PDF files.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[%
% Global language, passed down to packages and base class.
language=english,
titlestyle=thesis,% Style of titlepage: thesis, book or uncomment for vanilla
BCOR=5mm,% Binding Correction. Cannot be known a priori, only guesstimated
a5,% Uncomment to get a5-paper and 10pt font size (default: a4-paper with 11pt)
% Toggle all \censor{} etc. commands, e.g. to generate a public version:
censoring=true,
]{cookbook}% Load custom class file (*.cls)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This is still the preamble.
% You can insert '\newcommand's and all other stuff here.
% If it is a more long-term change, write it to the class (*.cls) file.
% You also find all settings to existing packages there.
%\usepackage{showframe}% Uncomment for debugging (show frames)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Included parts are listed here.
% Auxiliary files are kept, retaining references, page numbers etc., but
% compilation speeds are accelerated by only including small document parts.
% Uncomment only the part work is currently done on, comment out all others.
\includeonly{%
chapters/frontmatter,%
chapters/mainmatter,%
chapters/backmatter,%
}%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Titlepage and document metadata content:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\author{Alex Povel}%
\date{\DTMtoday{}}% Print today's date w/ syntax of newer package datetime2
\title{A modern \LaTeX{} cookbook}
\subtitle{% Examiners or other, rather arbitrary content
\begin{tabular}[t]{% [t] sets tabular anchor to the top
@{}% Remove horizontal space left of tabular
l% If no really good reason to do otherwise, always left-align cell
@{\ }% '\ ' (backslash-space) is a small space, here a column separator
l
l
@{}% Remove horizontal space right of tabular
}
\nth{1} & Examiner & Prof.\ Jane Doe\\
\nth{2} & Examiner & Prof.\ Foo Bar\\
\multicolumn{2}{@{}l}{Supervisor} & John Doe, M.Sc.%
\end{tabular}
}%
\documenttype{Example Document}% Document type, like Master Thesis, PhD Thesis, ...
\idnumber{666}% Enrolment/student ID number if applicable
\publishers{%
University of Greatness\\%
Institute of Big Bang%
}% Institutions, university, etc. Can also use graphics here
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\subincludefrom{chapters/}{frontmatter}
\subincludefrom{chapters/}{mainmatter}
\subincludefrom{chapters/}{backmatter}
\end{document}