Re: #13355: Latex error or potential conflict with AMS-Latex

Jacob Hammer <[email protected]>
Newsgroups gmane.editors.lyx.devel
Message-ID <[email protected]>
Okay, thank you.

I have been using it that way for many years and never had any problem with it. It still works perfectly well in LyX. 2.4.5. (There was no need in 2.4.5 to define the thm counter separately in the preamble).

Not sure why this change was made in 2.5. They can just copy the relevant parts from LyX 2.4.5. People might have large amounts of material that works very well with the older versions of LyX. With this change, older Lyx files won't be compatible anymore with the new LyX.

In any case, thank you for responding.

Jacob Hammer

> On Aug 18, 2026, at 7:14 PM, LyX Ticket Tracker <[email protected]> wrote:
> 
> #13355: Latex error or potential conflict with AMS-Latex
> ---------------------+--------------------------
> Reporter:  jhammer  |       Owner:  lasgouttes
>     Type:  defect   |      Status:  closed
> Priority:  normal   |   Milestone:
> Component:  general  |     Version:  unspecified
> Severity:  normal   |  Resolution:  worksforme
> Keywords:           |
> ---------------------+--------------------------
> Changes (by Richard Kimberly Heck):
> 
> * keywords:  Latex error =>
> * resolution:   => worksforme
> * status:  new => closed
> 
> Comment:
> 
> The problem is that you define the theorem counter yourself in the
> preamble, but that happens before LyX defines the theorem environment, at
> which point the counter gets redefined. Hence the error.
> 
> If you want to define extra types of theorems, the way to do it in LyX is
> to use a module, or else the Local Layout pane of Document> Settings.
> Something like:
> 
> {{{
> Format 111
> 
> Style Convention
>         CopyStyle             Theorem
>         DependsOn             Theorem
>         LatexName             convention
>         LabelString           "Convention \thetheorem."
>         TheoremName           convention
>         TheoremCounter        thm
>         TheoremLaTeXName      convname
>         TheoremZRefName       convname
>         TheoremCrossRefName   Convention
>         TheoremCrossRefPluralName Conventions
> End
> }}}
> 
> And similarly for the other ones you want. Then delete the definitions
> from the preamble.
> 
> Mostly, that is copied from {{{ams-theorems.inc}}}.
> -- 
> Ticket URL: <https://www.lyx.org/trac/ticket/13355#comment:2>
> The LyX Project <https://www.lyx.org/>
> LyX -- The Document Processor

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.