From a91d1ebe820fe7ace78ec83ae159b6597e6be96c Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Thu, 20 Jul 2023 16:26:17 +0200 Subject: [PATCH] Forgot these --- development/FORMAT | 2 +- lib/layouts/linguistics.module | 13 +++++++++++++ lib/lyx2lyx/lyx_2_4.py | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/development/FORMAT b/development/FORMAT index 2b0d293f20..56cd4369f5 100644 --- a/development/FORMAT +++ b/development/FORMAT @@ -14,7 +14,7 @@ changes happened in particular if possible. A good example would be argument structure) - Support new optional arguments of \digloss and \trigloss (this shifts argument structure) - - Support \expreamble and \subexpreamble macros + - Support \expreamble, \subexpreamble \expostamble, \subexpostamble macros 2023-06-11 Enrico Forestieri * Format incremented to 616: Do not output LaTeX for a macro if the LaTeX part is empty diff --git a/lib/layouts/linguistics.module b/lib/layouts/linguistics.module index 4c04255662..a5379da45e 100644 --- a/lib/layouts/linguistics.module +++ b/lib/layouts/linguistics.module @@ -163,6 +163,19 @@ InsetLayout Flex:Subexample_Preamble End +InsetLayout Flex:Example_Postamble + CopyStyle Flex:Example_Preamble + LatexName expostamble + LabelString "Ex. Postamble" +End + +InsetLayout Flex:Subexample_Postamble + CopyStyle Flex:Example_Preamble + LatexName subexpostamble + LabelString "Subex. Postamble" +End + + # # Interlinear Glosses # diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py index dd092e9778..33bf92c5c9 100644 --- a/lib/lyx2lyx/lyx_2_4.py +++ b/lib/lyx2lyx/lyx_2_4.py @@ -5520,6 +5520,8 @@ def revert_expreambles(document): revert_flex_inset(document.body, "Example Preamble", "\\expreamble") revert_flex_inset(document.body, "Subexample Preamble", "\\subexpreamble") + revert_flex_inset(document.body, "Example Postamble", "\\expostamble") + revert_flex_inset(document.body, "Subexample Postamble", "\\subexpostamble") ##