make i italics, move figure + value macros to hiromacros

This commit is contained in:
Valentin Boettcher 2022-07-05 14:45:54 +02:00
parent 25a4dbb393
commit b156c7db29
2 changed files with 8 additions and 5 deletions

View file

@ -1,4 +1,5 @@
\ProvidesPackage{hiromacros}
\RequirePackage{ifdraft}
% Macros
@ -81,7 +82,7 @@
%% GeV
\newcommand{\gev}[1]{\SI{#1}{\giga\electronvolt}}
\def\iu{\ensuremath{\mathrm{i}}}
\def\iu{\ensuremath{𝑖}}
\def\i{\iu}
\def\id{\ensuremath{\mathbb{1}}}
\def\NN{\ensuremath{\mathbb{N}}}
@ -107,3 +108,9 @@
\newcommand{\ergo}[1]{\ensuremath{\mathcal{W}\qty[#1]}}
\newcommand{\qrelent}[2]{\ensuremath{S\qty(#1\,\middle|\middle|\,#2)}}
\newcommand{\cyc}{\ensuremath{\mathrm{cyc}}}
%% Including plots
\newcommand{\plot}[1]{%
\ifdraft{\includegraphics[draft=false]{./figs/#1.pdf}}{\input{./figs/#1.pgf}}}
\newcommand{\tval}[1]{{\input{./values/#1.tex}}}

View file

@ -12,7 +12,6 @@
\usepackage[list=true, font=footnotesize, labelformat=brace]{subcaption}
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{ifdraft}
\usepackage[protrusion=true,expansion=true,tracking=true]{microtype}
\usepackage{fancyvrb}
\usepackage[autostyle=true]{csquotes}
@ -48,9 +47,6 @@ linkcolor=blue,
\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
\newcommand{\result}[1]{\input{./results/#1}\!}