From b156c7db29e9196b418919440145d3dd9fffefac Mon Sep 17 00:00:00 2001 From: Valentin Boettcher Date: Tue, 5 Jul 2022 14:45:54 +0200 Subject: [PATCH] make i italics, move figure + value macros to hiromacros --- hiromacros.sty | 9 ++++++++- hirostyle.sty | 4 ---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hiromacros.sty b/hiromacros.sty index 40b8762..22dd22b 100644 --- a/hiromacros.sty +++ b/hiromacros.sty @@ -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}}} diff --git a/hirostyle.sty b/hirostyle.sty index efc1848..bd25bf4 100644 --- a/hirostyle.sty +++ b/hirostyle.sty @@ -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}\!}