From 3483a24dca857a8f1a4376bd8001f611605c100a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Sun, 18 Jun 2023 21:15:50 +0200 Subject: [PATCH] disable indexing with beamer clas --- src/indexing/symbindex/symbindex.pysty3 | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) 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}