]> git.lyx.org Git - lyx.git/commitdiff
Amend [6887bc5c/lyxgit]
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 8 Jan 2021 08:22:55 +0000 (09:22 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 8 Jan 2021 08:22:55 +0000 (09:22 +0100)
Use a more specific storage command

lib/layouts/paper.layout

index 7de415c922659ea7ef993c8b0dfaabb1e296b860..5b387c8c1facaf93214e04cd158ca60ded6be107 100644 (file)
@@ -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