From: Richard Kimberly Heck Date: Thu, 7 Jan 2021 16:19:12 +0000 (-0500) Subject: Fix bug #8921 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6887bc5c1d53ead6f17f8c969f0fd174d4d745fe;p=features.git Fix bug #8921 --- diff --git a/lib/layouts/paper.layout b/lib/layouts/paper.layout index ea970e4283..7de415c922 100644 --- a/lib/layouts/paper.layout +++ b/lib/layouts/paper.layout @@ -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