bachelor_thesis/latex/hirostyle.sty

113 lines
2.8 KiB
Text
Raw Normal View History

2020-03-18 10:33:35 +01:00
\ProvidesPackage{hirostyle}
\usepackage[utf8]{inputenc} % load early
\usepackage[T1]{fontenc}
% load early
\usepackage[english]{babel}
2020-03-18 10:33:35 +01:00
\usepackage[autostyle=true]{csquotes}
\usepackage{newpxtext,newpxmath}
2020-03-25 18:30:57 +01:00
\KOMAoptions{DIV=last}
2020-03-18 10:33:35 +01:00
\usepackage{physics}
\usepackage{graphicx, booktabs, float, scrhack}
2020-04-12 14:42:29 +02:00
\usepackage{mathtools,amssymb}
2020-03-18 10:33:35 +01:00
\usepackage[automark]{scrlayer-scrpage}
2020-04-07 20:51:03 +02:00
\usepackage[backend=biber, language=english, style=phys]{biblatex}
\usepackage{siunitx}
\usepackage[pdfencoding=auto]{hyperref} % load late
% \usepackage[activate={true,nocompatibility},final,tracking=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}
\usepackage{caption}
\usepackage[list=true, font=small,
labelformat=brace, position=top]{subcaption}
\usepackage{tikz}
\usepackage{tikz-feynman}
\usepackage{wrapfig}
\usepackage{slashed}
2020-03-27 19:34:22 +01:00
\usepackage{minted}
2020-04-01 13:00:18 +02:00
\usepackage{pgfplots}
\usepackage{ifdraft}
2020-04-12 14:42:29 +02:00
\usepackage{microtype}
2020-03-27 19:34:22 +01:00
2020-04-07 21:37:27 +02:00
%% use the current pgfplots
\pgfplotsset{compat=1.16}
2020-03-27 19:34:22 +01:00
%% minted
\usemintedstyle{colorful}
2020-04-10 14:51:26 +02:00
\newmintedfile{yaml}{linenos,mathescape=true,fontsize=\small}
\newmintedfile{python}{linenos,mathescape=true,fontsize=\small,breaklines=true}
2020-03-27 19:34:22 +01:00
2020-03-25 17:40:53 +01:00
%% fix p slash
\declareslashed{}{/}{0}{.15}{p}
%% Tikz
2020-04-01 13:00:18 +02:00
\usetikzlibrary{arrows,shapes,angles,quotes,arrows.meta,external}
\tikzexternalize[prefix=tikz/]
%% Including plots
\newcommand{\plot}[1]{\ifdraft{\includegraphics[draft=false]{./figs/#1.pdf}}{\input{./figs/#1.pgf}}}
%% Including Results
2020-04-07 21:18:55 +02:00
\newcommand{\result}[1]{\input{./results/#1}}
2020-04-01 13:55:22 +02:00
%% SI units
\sisetup{separate-uncertainty = true}
%% Hyperref
\hypersetup{
colorlinks,
linkcolor={blue!50!black},
citecolor={red!50!black},
urlcolor={green!80!black}
}
%% Captions
\captionsetup{justification=centering}
%% Labels
2020-04-07 20:51:03 +02:00
\labelformat{chapter}{chapter~#1}
\labelformat{section}{section~#1}
\labelformat{figure}{figure~#1}
\labelformat{table}{table~#1}
% Macros
%% qqgg
\newcommand{\qqgg}[0]{q\bar{q}\rightarrow\gamma\gamma}
%% Impulses and Polarization Vectors convenience
\DeclareMathOperator{\ps}{\slashed{p}}
\DeclareMathOperator{\pe}{\varepsilon}
\DeclareMathOperator{\pes}{\slashed{\pe}}
\DeclareMathOperator{\pse}{\varepsilon^{*}}
\DeclareMathOperator{\pses}{\slashed{\pe}^{*}}
%% Spinor convenience
\DeclareMathOperator{\us}{u}
\DeclareMathOperator{\usb}{\bar{u}}
\DeclareMathOperator{\vs}{v}
\DeclareMathOperator*{\vsb}{\overline{v}}
2020-03-27 19:34:22 +01:00
%% Center of Mass energy
\DeclareMathOperator{\ecm}{E_{\text{CM}}}
%% area hyperbolicus
\DeclareMathOperator{\artanh}{artanh}
%% Fast Slash
\let\sl\slashed
%% Notes on Equations
\newcommand{\shorteqnote}[1]{ & & \text{\small\llap{#1}}}
2020-04-07 20:51:03 +02:00
2020-04-08 13:20:20 +02:00
%% Typewriter Macros
2020-04-07 20:51:03 +02:00
\newcommand{\sherpa}{\texttt{Sherpa}}
2020-04-08 13:20:20 +02:00
\newcommand{\vegas}{\texttt{VEGAS}}
2020-04-07 20:51:03 +02:00
%% Expected Value and Variance
\newcommand{\EX}[1]{\operatorname{E}\qty[#1]}
\newcommand{\VAR}[1]{\operatorname{VAR}\qty[#1]}
%% Uppercase Rho
\newcommand{\Rho}{P}