]> git.lyx.org Git - features.git/commitdiff
Fix bug #8921
authorRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 7 Jan 2021 16:19:12 +0000 (11:19 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Thu, 7 Jan 2021 16:19:17 +0000 (11:19 -0500)
lib/layouts/paper.layout

index ea970e428307320b4f9f67da35c7e26bfc60ab61..7de415c922659ea7ef993c8b0dfaabb1e296b860 100644 (file)
@@ -11,6 +11,19 @@ Sides                   1
 SecNumDepth             3
 TocDepth                3
 
+AddToPreamble
+       % Save and disable \example as this might clash
+       % with theorems
+       \let\origexample\example
+       \let\endorigexample\endexample
+       \let\example\relax
+       % If theorems hasn't been loaded, restore example
+       \AtBeginDocument{%
+       \@ifundefined{example}{\let\example\origexample}{}
+       }
+EndPreamble
+
+
 Style Standard
        Category              MainText
        Margin                Static