]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/paper.layout
Move RevTeX section in Additional.lyx into Chapter 3 Document classes
[lyx.git] / lib / layouts / paper.layout
index ea970e428307320b4f9f67da35c7e26bfc60ab61..a96725ef555912cb1beaab22e174e81899234c0f 100644 (file)
@@ -5,12 +5,24 @@
 # Created by Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
 
 
-Format 90
+Format 98
 Columns                 1
 Sides                   1
 SecNumDepth             3
 TocDepth                3
 
+AddToPreamble
+  % 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