commit 6887bc5c1d53ead6f17f8c969f0fd174d4d745fe Author: Richard Kimberly Heck <rikih...@lyx.org> Date: Thu Jan 7 11:19:12 2021 -0500
Fix bug #8921 --- lib/layouts/paper.layout | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/lib/layouts/paper.layout b/lib/layouts/paper.layout index ea970e4..7de415c 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 -- lyx-cvs mailing list lyx-cvs@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-cvs