[LyX/master] Amend [6887bc5c/lyxgit]

Juergen Spitzmueller spitz at lyx.org
Fri Jan 8 08:23:21 UTC 2021


commit cc5718d1eb9f21d16bdea6379771aa49865ab3e4
Author: Juergen Spitzmueller <spitz at lyx.org>
Date:   Fri Jan 8 09:22:55 2021 +0100

    Amend [6887bc5c/lyxgit]
    
    Use a more specific storage command
---
 lib/layouts/paper.layout |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/lib/layouts/paper.layout b/lib/layouts/paper.layout
index 7de415c..5b387c8 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


More information about the lyx-cvs mailing list