-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.tex
More file actions
37 lines (33 loc) · 1.31 KB
/
Copy pathheader.tex
File metadata and controls
37 lines (33 loc) · 1.31 KB
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
% ---- verbatim / code blocks ----
\usepackage{fvextra}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{%
breaklines,
breakanywhere,
fontsize=\small,
commandchars=\\\{\}
}
% same treatment for plain (unhighlighted) code blocks
\DefineVerbatimEnvironment{verbatim}{Verbatim}{breaklines,breakanywhere,fontsize=\small}
% ---- math ----
\providecommand{\bm}[1]{{\symbf{#1}}}
\setmathfont{TeX Gyre Pagella Math}
\setmathfont{TeX Gyre Pagella Math}[range=bfup]
\setmathfont{TeX Gyre Pagella Math}[range=bfit]
\setmathfont{TeX Gyre Pagella Math}[range=bfsfup]
\setmathfont{TeX Gyre Pagella Math}[range=bfsfit]
\setmathfont{TeX Gyre Pagella Math}[range=bfscr]
\setmathfont{TeX Gyre Pagella Math}[range=bffrak]
% Under unicode-math, \mathbf pulls from the *text* bold font, which has no
% bold-Greek slots — \mathbf{\Sigma} silently drops. \symbfup takes the same
% bold-upright shapes from the math font, so Latin looks identical and Greek
% actually renders.
% Defined with an argument (not \let) so unbraced subscripts like
% \nabla_\mathbf{x} keep working.
\AtBeginDocument{%
\def\mathbf#1{{\symbfup{#1}}}%
\def\boldsymbol#1{{\symbf{#1}}}%
}
% ---- keep wide tables inside the margins ----
\AtBeginEnvironment{longtable}{\small}
% ---- each `# ` heading (= \section here) opens a new page ----
\pretocmd{\section}{\clearpage}{}{}