disable indexing with beamer clas

This commit is contained in:
Maximilian Keßler 2023-06-18 21:15:50 +02:00
parent 51afbd7188
commit 3483a24dca
Signed by: max
GPG key ID: BCC5A619923C0BA5

View file

@ -1,6 +1,8 @@
__HEADER__(Declaring of math symbols with automatic indexing) __HEADER__(Declaring of math symbols with automatic indexing)
\RequirePackage{imakeidx} \@ifclassloaded{beamer}{}{
\RequirePackage{imakeidx}
}
\RequirePackage{xparse} \RequirePackage{xparse}
% Keys used for declaring symbols % Keys used for declaring symbols
@ -35,13 +37,15 @@ __HEADER__(Declaring of math symbols with automatic indexing)
{ {
\bool_if:cF { used_#2 } \bool_if:cF { used_#2 }
{ {
\index[#1] \@ifclassloaded{beamer}{}{
{ \index[#1]
#7 {
@ #7
$#4{#5}#6$ @
#3 $#4{#5}#6$
} #3
}
}
\bool_gset_true:c { used_#2 } \bool_gset_true:c { used_#2 }
} }
#4{#5} #4{#5}