From 7035188af95eef3fdd7dd248590d2eec53fdaa3d Mon Sep 17 00:00:00 2001 From: salagne Date: Sat, 16 May 2020 23:26:44 +0200 Subject: [PATCH] improved backslash d --- lecture.cls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lecture.cls b/lecture.cls index 254866a..ba878b5 100644 --- a/lecture.cls +++ b/lecture.cls @@ -138,8 +138,8 @@ }% % integral d sign -\makeatletter \renewcommand\d[1]{\ensuremath{% - \;\mathrm{d}#1\@ifnextchar\d{\!}{}}} +\makeatletter \renewcommand\d[2][]{\ensuremath{% + \,\mathrm{d}^{#1}#2\@ifnextchar^{}{\@ifnextchar\d{}{\,}}}} \makeatother % remove page before chapters