-
Notifications
You must be signed in to change notification settings - Fork 0
/
hirostyle.sty
85 lines (73 loc) · 2.2 KB
/
hirostyle.sty
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
\ProvidesPackage{hirostyle}
\usepackage[T1]{fontenc}
% load early
\usepackage[english]{babel}
\usepackage{physics}
\usepackage{graphicx, booktabs, float}
\usepackage[tbtags]{mathtools}
\mathtoolsset{mathic=true}
\usepackage{amssymb}
\usepackage[backend=biber, language=english, style=phys, sorting=none, backref=true]{biblatex}
\usepackage{siunitx}
\usepackage{caption}
\usepackage{sidecap}
\usepackage[list=true, font=footnotesize, labelformat=brace]{subcaption}
\usepackage[protrusion=true,expansion=true,tracking=true]{microtype}
\usepackage{fancyvrb}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage[autostyle=true]{csquotes}
\usepackage{setspace}
\usepackage{newunicodechar}
\usepackage[pdfencoding=auto,hidelinks,colorlinks=true,
linkcolor=blue,
filecolor=blue,
citecolor = black,
urlcolor=cyan,]{hyperref} % load late
\usepackage[capitalize]{cleveref}
\usepackage{multirow,tabularx}
\usepackage{bbold}
\usepackage{scrhack}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont[Ligatures={Common,Rare,TeX,Required}]{texgyrepagella}[
Extension = .otf,
UprightFont = *-regular,
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic,
]
\setmathfont{texgyrepagella-math.otf}
\KOMAoptions{DIV=last}
\usepackage[autooneside]{scrlayer-scrpage}
\usepackage[titletoc]{appendix}
\usepackage{bigfoot}
\usepackage{orcidlink}
\DeclareNewFootnote{default} % standard footnotes
\DeclareNewFootnote{URL}[roman] % href footnotes
\let\oldhref\href
\renewcommand{\href}[2]{\oldhref{#1}{#2}\footnoteURL{\url{#1}}}
%% Including Results
\newcommand{\result}[1]{\input{./results/#1}\!}
%% SI units
\sisetup{separate-uncertainty = true}
%% Captions
\captionsetup{font=small,format=plain}
\captionsetup[sub]{font=small,format=plain}
%% Labels
% \labelformat{chapter}{chapter~#1}
% \labelformat{section}{section~#1}
% \labelformat{figure}{figure~#1}
% \labelformat{table}{table~#1}
%% Cleverref
\crefname{equation}{}{}
\creflabelformat{equation}{(#2#1#3)}
%% Font for headings
\addtokomafont{disposition}{\rmfamily}
%% Minus Sign for Matplotlib
\newunicodechar{−}{-}
% Allow math page breaks
\allowdisplaybreaks
% cursive bold in maths
\unimathsetup{math-style=TeX,bold-style=ISO}
\recalctypearea