commit aeaf5e12bfc5b762eac9f37608e79c36e0f8fb58
Author: Koji Yokota <[email protected]>
Date:   Tue Aug 19 20:18:19 2025 +0900

    Make theorem labels more standard in econsocart.layout
---
 lib/layouts/econsocart.layout                      | 29 +-----------
 .../Articles/Econometric_Society_Journals.lyx      | 53 ++++++++++++++++++++--
 2 files changed, 49 insertions(+), 33 deletions(-)

diff --git a/lib/layouts/econsocart.layout b/lib/layouts/econsocart.layout
index 683a6f7beb..80786562a8 100644
--- a/lib/layouts/econsocart.layout
+++ b/lib/layouts/econsocart.layout
@@ -167,7 +167,6 @@ End
 
 # Math theorem environments that use the plain style
 Style Theorem
-       LabelString     "Theorem \thetheorem:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -176,7 +175,6 @@ Style Theorem
 End
 
 Style Axiom
-       LabelString     "Axiom \theaxiom:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -185,7 +183,6 @@ Style Axiom
 End
 
 Style Claim
-       LabelString     "Claim \theclaim:"
        Font
                Shape   Italic
        EndFont
@@ -197,19 +194,14 @@ Style Claim
 End
 
 Style Lemma
-       DependsOn       Theorem
-       LabelString      "Lemma \arabic{theorem}:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
        EndFont
-       LabelCounter    theorem
-       TheoremCounter  thm
        TheoremStyle    plain
 End
 
 Style Fact
-       LabelString     "Fact:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -219,7 +211,6 @@ Style Fact
 End
 
 Style Assumption
-       LabelString     "Assumption \theassumption:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -228,7 +219,6 @@ Style Assumption
 End
 
 Style Corollary
-       LabelString     "Corollary \thecorollary:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -237,7 +227,6 @@ Style Corollary
 End
 
 Style Proposition
-       LabelString     "Proposition \theproposition:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -247,7 +236,7 @@ End
 
 # Math theorem environments that use the definition style
 Style Definition
-       LabelString     "Definition \thedefinition:"
+       DependsOn       Theorem
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -256,7 +245,6 @@ Style Definition
 End
 
 Style Example
-       LabelString     "Example:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -265,7 +253,6 @@ Style Example
 End
 
 Style Remark
-       LabelString     "Remark \theremark:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -274,7 +261,6 @@ Style Remark
 End
 
 Style Notation
-       LabelString     "Notation \thenotation:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -283,7 +269,6 @@ Style Notation
 End
 
 Style Proof
-       LabelString     "Proof:"
        LabelSep        M
        LabelFont
                Shape   SmallCaps
@@ -295,7 +280,6 @@ End
 
 # Other AMS environments (which are left to defaults)
 Style Conjecture
-       LabelString     "Conjecture \theconjecture:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -303,7 +287,6 @@ Style Conjecture
 End
 
 Style Problem
-       LabelString     "Problem \theproblem:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -311,7 +294,6 @@ Style Problem
 End
 
 Style Exercise
-       LabelString     "Exercise \theexercise:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -319,7 +301,6 @@ Style Exercise
 End
 
 Style Solution
-       LabelString     "Solution \thesolution:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -327,7 +308,6 @@ Style Solution
 End
 
 Style Case
-       LabelString     "Case \thecase:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -335,7 +315,6 @@ Style Case
 End
 
 Style Criterion
-       LabelString     "Criterion \thecriterion:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -343,7 +322,6 @@ Style Criterion
 End
 
 Style Algorithm
-       LabelString     "Algorithm \thealgorithm:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -351,7 +329,6 @@ Style Algorithm
 End
 
 Style Condition
-       LabelString     "Condition \thecondition:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -359,7 +336,6 @@ Style Condition
 End
 
 Style Note
-       LabelString     "Note \thenote:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -367,7 +343,6 @@ Style Note
 End
 
 Style Summary
-       LabelString     "Summary \thesummary:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -375,7 +350,6 @@ Style Summary
 End
 
 Style Conclusion
-       LabelString     "Conclusion \theconclusion:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
@@ -383,7 +357,6 @@ Style Conclusion
 End
 
 Style Question
-       LabelString     "Question \thequestion:"
        LabelFont
                Shape   SmallCaps
                Series  Medium
diff --git a/lib/templates/Articles/Econometric_Society_Journals.lyx 
b/lib/templates/Articles/Econometric_Society_Journals.lyx
index 4b5ea1ecfa..ec03141698 100644
--- a/lib/templates/Articles/Econometric_Society_Journals.lyx
+++ b/lib/templates/Articles/Econometric_Society_Journals.lyx
@@ -8,6 +8,31 @@
 \options ecta,nameyear
 \use_default_options true
 \maintain_unincluded_children no
+\begin_local_layout
+Style Lemma
+       CopyStyle       Theorem
+       DependsOn       Theorem
+       LaTeXName       lem
+       LabelString      "Lemma \thetheorem."
+       LabelFont
+               Shape   SmallCaps
+               Series  Medium
+       EndFont
+       TheoremName     lem
+       TheoremCounter  thm
+       TheoremLaTeXName lemmaname
+       TheoremZRefName lemma
+       TheoremCrossRefName Lemma
+       TheoremCrossRefPluralName Lemmas
+       LangPreamble
+         \providecommand{\lemmaname}{_(Lemma)}
+       EndLangPreamble
+       BabelPreamble
+         \addto\captions$$lang{\renewcommand{\lemmaname}{_(Lemma)}}
+       EndBabelPreamble
+       TheoremStyle    plain
+End
+\end_local_layout
 \language english
 \language_package none
 \inputencoding utf8-plain
@@ -1654,6 +1679,26 @@ tuple "list"
  because they share the same counter.
 \end_layout
 
+\begin_layout Lemma
+\SpecialChar LyX
+ can modify the style of a paragraph through local layout including the change 
of numbering.
+ See 
+\family sans
+Document\SpecialChar menuseparator
+Local Layout
+\family default
+ in this document for an example.
+ Also,
+ Section 5.3.7 Paragraph styles in 
+\family sans
+Help\SpecialChar menuseparator
+Customization
+\family default
+ provides explanation of the grammer.
+ By default,
+ the layout uses the counter by type.
+\end_layout
+
 \begin_layout Fact
 This is the body of the fact.
  Fact is unnumbered since it is defined so in the layout file.
@@ -1671,30 +1716,28 @@ Layout
 :
 \end_layout
 
-\begin_deeper
 \begin_layout Verbatim
     Style Fact
 \end_layout
 
 \begin_layout Verbatim
-        LabelString    "Fact 
+       LabelString    "Fact 
 \backslash
 thefact:"
 \end_layout
 
 \begin_layout Verbatim
-        LabelCounter   fact
+       LabelCounter   fact
 \end_layout
 
 \begin_layout Verbatim
-        TheoremCounter ""
+       TheoremCounter ""
 \end_layout
 
 \begin_layout Verbatim
     End
 \end_layout
 
-\end_deeper
 \begin_layout Proof
 \begin_inset Argument 1
 status open
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to