rev: tip ews/Hauptdokument/ews30/basesetup.tex -rw-r--r-- 9.4 KiB View raw Log this file
f0e98dc61ed3Arne Babenhauserheide update to py3 a month ago
                                                                                
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
% make PDF reproducible as by https://tex.stackexchange.com/questions/229605/reproducible-latex-builds-compile-to-a-file-which-always-hashes-to-the-same-va/313605#313605
% For pdfTex:
\pdfinfoomitdate=1
\pdftrailerid{}
\pdfinfo{   /Producer () /Creator () }
% For LuaTeX:
% \pdfvariable suppressoptionalinfo \numexpr32+64+512\relax
\usepackage[utf8]{inputenc}
\usepackage{marvosym}
\DeclareUnicodeCharacter{200B}{\allowbreak }
\DeclareUnicodeCharacter{2642}{\male} % ♂
\DeclareUnicodeCharacter{2640}{\female} % ♀
\DeclareUnicodeCharacter{26A5}{\Hermaphrodite} % ⚥
\DeclareUnicodeCharacter{26B2}{\Neutral} % ⚲
\DeclareUnicodeCharacter{26AC}{\Neutral} % ⚬
\DeclareUnicodeCharacter{2192}{\ensuremath{\shortrightarrow}} % →
\DeclareUnicodeCharacter{2153}{\ensuremath{\frac{1}{3}}} % ⅓
\DeclareUnicodeCharacter{BC}{\ensuremath{\frac{1}{4}}} % ¼
% \DeclareUnicodeCharacter{⚧}{?}
% \DeclareUnicodeCharacter{⚤}{?}
\usepackage[iso,german]{isodate}
% \usepackage{fixltx2e}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{longtable}
% \usepackage{booktabs} % breaks build
\usepackage{array}
% use m for vertical middle or b for vertical above, p hangs at the top
% thanks to https://tex.stackexchange.com/a/12712/53957
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
\newcolumntype{H}{>{\setbox0=\hbox\bgroup}c<{\egroup}@{}} % hidden
\setlength{\extrarowheight}{0.01em}%
\usepackage[table]{xcolor}
\usepackage{tcolorbox}
\usepackage{float}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage[full]{textcomp}
\usepackage{stmaryrd}
\usepackage{wasysym}
\usepackage{amssymb}

\usepackage{morefloats}
% avoid overfull and underfull boxes
\tolerance=1000
% \usepackage{color}
% \usepackage{minted}
\usepackage{parskip}
\usepackage{layout}
% \usepackage[textwidth=185pt,marginparwidth=115pt,marginparsep=14pt]{geometry} % does not affect the rest
% of the layout, so the document breaks.
\usepackage{lipsum}
\usepackage[ngerman, english, germanb]{babel}
\usepackage{wallpaper}
\usepackage{lmodern} % monospace font
\usepackage[T1]{fontenc}
%%% FONT OPTIONS

% Best fonts, by my feeling: Kepler (clearer), then Baskerville (more intense, but slightly harder to read, with italics significantly harder to read). Both are licensed under the GPL.

% FONT Kepler
% \usepackage[oldstyle,oldstylemath]{kpfonts}

% FONT Baskerville, method from Fabian Heller via https://tex.stackexchange.com/a/241202
% Kepler seems to fit more hard requirements, but Baskerville has something hard to describe.
\usepackage[swash,sups,scaled=1.02]{Baskervaldx} % swash: more ligatures, lining/osf: osf: old style (tosf) in text, tlf in math, lining: ?
\renewcommand*\copyright{\textcopyright}% needed to avoid failing on \copyright
\usepackage[baskervaldx,cmintegrals,bigdelims,vvarbb]{newtxmath} % math italic letters from Baskervaldx
\usepackage[cal=boondoxo]{mathalfa} % mathcal from STIX, unslanted a bit

% Discussion of fonts: https://r2src.github.io/top10fonts/
% More fonts: https://tug.org/FontCatalogue/

% font from from https://tex.stackexchange.com/a/264587 by user12711 %%%

% %%%%     FONTS PACKAGE OPTIONS in the Preamble  %                        
% %%%%     always replace default Computer Modern with Latin Modern [T1] encoding:
% \renewcommand{\ttdefault}{lmtt} % MONO Latin Modern Font % T1 encoding of cmtt font style  
% \renewcommand{\rmdefault}{lmr} % SERIF Latin Modern Font % T1 encoding of cmr font style
% \renewcommand{\sfdefault}{lmss} % SANS Latin Modern Font % T1 encoding of cmss font style
% %  %  %   %   %   %   %   %   %   %   %   %   %   %   %   % 
% %  %  % PSNFSS \ssfamily fonts (SANS)
% \usepackage{helvet}\renewcommand{\familydefault}{\sfdefault} % PSNFSS Font, in every TeX distribution 
% \usepackage{avant}\renewcommand{\familydefault}{\sfdefault}  % PSNFSS Font, in every TeX distribution 
% %  %  % Extended \ssfamily (Sans) fonts; load extraFonts option from TeX                    
% \usepackage[scaled=0.88]{berasans}\renewcommand{\familydefault}{\sfdefault}% package has a handy scaling option
% \usepackage{libris}\renewcommand{\familydefault}{\sfdefault}   % a nice, almost handwritten calligraphic look
% \usepackage{biolinum}\renewcommand{\familydefault}{\sfdefault} % included with the {Libertine} font package
% \usepackage{iwona}
% \usepackage{paratype}\renewcommand{\familydefault}{\sfdefault}
% \usepackage{tgheros}\renewcommand{\familydefault}{\sfdefault}
% %%%  END OF SANS SERIF FONT PACKAGES 
% %  %  %  %   %   %   %   %   %   %   %   %   %   %   %   %   %   %
% %  %  % PSNFSS \rmfamily fonts (SERIF) 
% \usepackage{mathptmx,txfonts}\renewcommand{\rmdefault}{txr}\renewcommand{\familydefault}{\rmdefault}  % Times % PSNFSS Font, in every TeX distribution %
% \usepackage{charter}   % Bitstream Charter % PSNFSS Font, in every TeX distribution %
% \usepackage{newpxtext,newpxmath}  % Palatino
% \usepackage{bookman}   % Bookman % PSNFSS Font in every TeX
% \usepackage{chancery}  % Zapf Chancery % PSNFSS Font in every TeX, a Calligraphic Font
% \usepackage{newcent}   % New Century Schoolbook % PSNFSS Font in every TeX distribution % To replace it's Avant Garde sans add this:% \renewcommand{\sfdefault}{xxx}
% %  %  % Extended \rmfamily (SERIF) fonts; load extraFonts option from TeX
% \usepackage[scaled=0.88]{beraserif} % package has a handy scaling option
% \usepackage{XCharter} % Bitstream's Charter extended with many style varieties 
% \usepackage{fouriernc} % Century Schoolbook % compact and lighter than New Century Schoolbook 
% \usepackage{tgschola} % TeX Gyre Schola, New Century Schoolbook with many font style varieties 
% \usepackage{tgtermes} % TeX Gyre Termes, Times with many font style varieties 
% \usepackage{tgbonum}  % TeX Gyre Bonum, Bookman with many font style varieties 
% \usepackage{tgpagella}% TeX Gyre Pagello, a Palatino font with many font style varieties, screen
% \usepackage{fourier}  % Utopia, package {utopia} is obsolete
% \usepackage{txfonts}  % TX Serif and Sans (Helvetica)
% \usepackage{kpfonts}  % KP Serif and Sans, large variety of font styles, Palatino adjusted by Kepler project, nicer than Pagello (IMO)
% \usepackage{fbb}      % A Garamond Font (Bembo) with many font styles
% %%% END SERIF FONTS
% %%% NOTE!!! Be sure to comment out all but ONE Serif and ONE Sans
% %%% from the package selections above.
% %  %  %   %   %   %   %   %   %   %   %   %   %   %   %
% %  %  %   %   %   %   %   %   %   %   %   %   %   %   % 
% %  %  % Load Math Support if necessary
% %
% \usepackage[myFontPackage]{mathdesign}
% %
% %
% %%% END OF FONTS In the Preamble 
% %%%%%%%%%%%%%%%%%%%%%%%%%%  


\usepackage{pdfpages}
\usepackage{kantlipsum}
\usepackage{varioref}
\usepackage{ragged2e}
\usepackage{ellipsis}
\usepackage[babel,protrusion=true,expansion=true,tracking=true,stretch=15,shrink=10]{microtype} % reduced stretch and shrink, 10 is safe, 15 is almost safe, 20 is visible. See http://www.khirevich.com/latex/microtype/

% multiple columns, i.e. for the charsheets
\usepackage{multicol} % https://de.overleaf.com/learn/latex/Multiple_columns
\usepackage{dashrule} % for \hdashrule[0.5ex]{4cm}{1pt}{3mm}
\usepackage{geometry}
\usepackage{afterpage}

% Stelle sicher, dass \checkoddpage \ifoddpage die richtige Seitenzahl bekommt, kann mehrere Durchläufe brauchen.
\strictpagecheck

% verbiete Schusterjungen und Hurenkinder
\clubpenalty = 10000
\widowpenalty = 10000
\displaywidowpenalty = 10000
% erlaube kürzere Seiten
\raggedbottom


% do not put numbers in section headers
\setcounter{secnumdepth}{0}

% initialize an index
\makeindex
% and a glossary
\makeglossary
% \changeglossactual{?}
% \changeglossnum{\thepage}
\changeglossnumformat{|hyperpage}%% for hyperlinks
\renewcommand{\memgloterm}[1]{\textbf{#1}}
\renewcommand{\memglonum}[1]{\dotfill#1}

\newcommand\doglobookmark[1]{%
\def\@tempa{Symbols}\def\@tempb{#1}%
\ifx\@tempa\@tempb%
\phantomsection\pdfbookmark[0]{Glossar}{Glossar-glo}%
\else%
\phantomsection\pdfbookmark[1]{#1}{#1-glo}%
\fi%
}

% provide kasten environment
\newenvironment{kasten}{\tcolorbox}{\endtcolorbox}

% Add the page number to references
\renewcommand{\ref}[1]{\vref{#1}}

% add a sidebar graphics which is mirrored to always point towards the inner fold.
\newcommand{\sidebarmirrored}[1]{\sidebar{\strictpagecheck\checkoddpage \ifoddpage       \reflectbox{#1} \else  #1 \fi}}
% background images below the sidebar, usage example \bgimageLOmirrored{0.4}{enchantress-necromancer.pdf}{enchantress-necromancer-mirrored.pdf}{\label{fig:necromancer}\label{fig:enchantress}}
% do not use this inline, else it can hit the wrong page. Use it with a #+latex: call separated from the rest with empty lines.
\newcommand{\bgimageLOmirrored}[4]{\phantomsection\strictpagecheck\checkoddpage\ifoddpage       \ThisLRCornerWallPaper{#1}{#2}\else       \ThisLLCornerWallPaper{#1}{#3}\fi#4}
\newcommand{\bgimageUOmirrored}[4]{\phantomsection\strictpagecheck\checkoddpage\ifoddpage       \ThisURCornerWallPaper{#1}{#2}\else       \ThisULCornerWallPaper{#1}{#3}\fi#4}
\newcommand{\bgimageLImirrored}[4]{\phantomsection\strictpagecheck\checkoddpage\ifoddpage       \ThisLLCornerWallPaper{#1}{#3}\else       \ThisLRCornerWallPaper{#1}{#2}\fi#4}
\newcommand{\bgimageUImirrored}[4]{\phantomsection\strictpagecheck\checkoddpage\ifoddpage       \ThisULCornerWallPaper{#1}{#3}\else       \ThisURCornerWallPaper{#1}{#2}\fi#4}

% good unicode support
\usepackage{uniinput}