diff --git a/lib/layouts/paper.layout b/lib/layouts/paper.layout index 7de415c922..5b387c8c1f 100644 --- a/lib/layouts/paper.layout +++ b/lib/layouts/paper.layout @@ -12,18 +12,17 @@ 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}{} - } + % Save and disable \example as this might + % clash with theorems + \let\paperclassexample\example + \let\endpaperclassexample\endexample + \let\example\relax + % If theorems hasn't been loaded, restore example + \AtBeginDocument{% + \@ifundefined{example}{\let\example\paperclassexample}{} + } EndPreamble - Style Standard Category MainText Margin Static