-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.tex
executable file
·52 lines (42 loc) · 1.64 KB
/
header.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
%% Copyright 2019 Bernd Haberstumpf
%% License: CC BY-NC
\usepackage{geometry} % page borders
\usepackage{calc} % page borders
\geometry{
paperwidth=\paperwidth+\printinner+\printouter,
paperheight=\paperheight+\printtop+\printbottom,
}
\usepackage[x-3]{pdfx} % Used for print Media PDF Version X3. Needs to be the first package loaded
\usepackage{german}
\usepackage{t1enc}
\usepackage{eurosym}
\usepackage{xpinyin}
\usepackage{multirow} % Needed for multi column rows in tables (e.g. credits)
\usepackage{xfrac} % 1/2
\usepackage{hologo} % Needed to print LaTeX Logo
%\usepackage{printlen} % Needed for debugging lengths
%\usepackage[toc,page]{appendix}
\usepackage[printtop=\printtop,
printinner=\printinner,
printouter=\printouter,
printtop=\printtop,
printbottom=\printbottom,
printextend=\printextend]
{lib/book}
% Allow to rename intro chapter for Players Guide
\newcommand{\introchaptername}[1]{\def\@introchaptername{#1}}
\introchaptername{Hintergrund}
% Highlight text
\newcommand{\hl}[1]{\emph{#1}}
% Shortcut for 1/2 fraction
\newcommand{\half}{\sfrac{1}{2}}
% NSCs
\newcommand{\xl}{\pinyin{Xiao3} \pinyin{Long2}}
\newcommand{\xls}{\pinyin{Wang2} \pinyin{Xiao3} \pinyin{Long2}}
\newcommand{\ml}{\pinyin{Mailin2}}
\newenvironment{oddpage}{%
\ifodd\value{page}\hbox{}\newpage\fi%
}{}
\newenvironment{oddpageprint}{%
\ifodd\value{page}\else\hbox{}\newpage\fi%
}{}