diff --git a/src/indexing/symbindex/symbindex.pysty3 b/src/indexing/symbindex/symbindex.pysty3 index 8aefea5..eaab087 100644 --- a/src/indexing/symbindex/symbindex.pysty3 +++ b/src/indexing/symbindex/symbindex.pysty3 @@ -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,13 +37,15 @@ __HEADER__(Declaring of math symbols with automatic indexing) { \bool_if:cF { used_#2 } { - \index[#1] - { - #7 - @ - $#4{#5}#6$ - #3 - } + \@ifclassloaded{beamer}{}{ + \index[#1] + { + #7 + @ + $#4{#5}#6$ + #3 + } + } \bool_gset_true:c { used_#2 } } #4{#5}