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