master-thesis-tex/hirostyle.sty

86 lines
2.2 KiB
Text
Raw Normal View History

2022-06-20 21:43:27 +02:00
\ProvidesPackage{hirostyle}
\usepackage[T1]{fontenc}
% load early
\usepackage[english]{babel}
\usepackage{physics}
\usepackage{graphicx, booktabs, float}
\usepackage[tbtags]{mathtools}
\mathtoolsset{mathic=true}
2022-06-20 21:43:27 +02:00
\usepackage{amssymb}
2022-09-20 14:53:25 +02:00
\usepackage[backend=biber, language=english, style=phys, sorting=none, backref=true]{biblatex}
2022-06-20 21:43:27 +02:00
\usepackage{siunitx}
\usepackage{caption}
2022-08-31 15:00:22 +02:00
\usepackage{sidecap}
2022-06-28 20:33:53 +02:00
\usepackage[list=true, font=footnotesize, labelformat=brace]{subcaption}
2022-06-20 21:43:27 +02:00
\usepackage[protrusion=true,expansion=true,tracking=true]{microtype}
\usepackage{fancyvrb}
2022-09-02 13:09:19 +02:00
\usepackage{longtable}
\usepackage{booktabs}
2022-06-20 21:43:27 +02:00
\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
2022-09-13 13:52:29 +02:00
\usepackage[capitalize]{cleveref}
2022-06-20 21:43:27 +02:00
\usepackage{multirow,tabularx}
\usepackage{bbold}
\usepackage{scrhack}
\usepackage{fontspec}
\usepackage{unicode-math}
2022-08-23 18:31:17 +02:00
\setmainfont[Ligatures={Common,Rare,TeX,Required}]{texgyrepagella}[
2022-06-20 21:43:27 +02:00
Extension = .otf,
UprightFont = *-regular,
BoldFont = *-bold,
ItalicFont = *-italic,
BoldItalicFont = *-bolditalic,
]
\setmathfont{texgyrepagella-math.otf}
\KOMAoptions{DIV=last}
\usepackage[autooneside]{scrlayer-scrpage}
2022-09-19 16:52:30 +02:00
\usepackage[titletoc]{appendix}
\usepackage{bigfoot}
\usepackage{orcidlink}
2022-06-20 21:43:27 +02:00
2022-09-19 16:52:30 +02:00
\DeclareNewFootnote{default} % standard footnotes
\DeclareNewFootnote{URL}[roman] % href footnotes
\let\oldhref\href
\renewcommand{\href}[2]{\oldhref{#1}{#2}\footnoteURL{\url{#1}}}
2022-06-20 21:43:27 +02:00
%% Including Results
\newcommand{\result}[1]{\input{./results/#1}\!}
%% SI units
\sisetup{separate-uncertainty = true}
%% Captions
2022-09-21 14:38:17 +02:00
\captionsetup{font=small,format=plain}
\captionsetup[sub]{font=small,format=plain}
2022-06-20 21:43:27 +02:00
%% 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}
2022-07-21 10:30:36 +02:00
\recalctypearea