Am Montag, dem 09.06.2025 um 16:12 +0200 schrieb Jürgen Spitzmüller:
> I have now added code to the layout conversion script that should
> handle this automatically. If you want to try, replace the
> layout2layout.py script of your installation with this one:
> https://www.lyx.org/trac/export/05b922b8ad1868b9045098bb3a4557c833e0fda3/lyxgit/lib/scripts/layout2layout.py

Try this instead:
https://www.lyx.org/trac/export/f72000ec820f3b01ae0243906603922ca8c49f93/lyxgit/lib/scripts/layout2layout.py


To fix your case manually, you need either:

Style Axiom
        CopyStyle             Definition
        LabelCounter          axiom
        LatexName             axiom
        LabelString           "Axiom \theaxiom."
        LabelFont
          Shape               Up
          Series              Bold
        EndFont
        TheoremStyle          definition
        TheoremCounter        thm
        TheoremLaTeXName      axiomname
        LangPreamble
                \providecommand{\axiomname}{_(Axiom)}
        EndLangPreamble
End

or (if you absolutely want no localization):

Style Axiom
        CopyStyle             Definition
        LabelCounter          axiom
        LatexName             axiom
        LabelString           "Axiom \theaxiom."
        LabelFont
          Shape               Up
          Series              Bold
        EndFont
        # Bypass new theorem construction
        TheoremName ""
        Preamble
          \theoremstyle{definition}
          \newtheorem{axiom}[thm]{Axiom}
        EndPreamble
End


-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to