[Customization] Document "Provides newtheorem:thm 1"

Guillaume Munch-Maccagnoni Guillaume.Munch-Maccagnoni at inria.fr
Thu Sep 3 00:38:51 UTC 2026


Dear maintainers, dear Riki,

Upon writing a layout for a document class, I thought it would be very 
useful to declare a theorem (incl. its i18n strings) even though the 
\newtheorem command was already issued by the document class. This 
turned out to be crucial for what I was aiming to do, so I was ready to 
open an enhancement request. However I found by reading the source that 
it was already implemented, only not documented. This was implemented here:

    commit ebd6df5167c2a4adba7ea48257c3b83e4bd88838
    Author: Juergen Spitzmueller <spitz at lyx.org>
    Date:   Sun May 4 12:11:34 2025 +0200

         Prevent conflicting theorem definitions

         Provide a way to omit automatic definition and use this in
         lyx2lyx if definition is not in LyX preamble.

It is all the more important to document this feature when its use-case 
is a bit more general than described in the commit above.

I have attached a possible documentation of the feature. I hope it 
applies easily on both branch and master.

Kindly CC me for any reply as I am not on this list.

Sincerely,

Guillaume
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-docs/attachments/20260903/d8ea1cd6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Document-Provides-newtheorem-thm-1.patch
Type: text/x-patch
Size: 5554 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-docs/attachments/20260903/d8ea1cd6/attachment.bin>


More information about the lyx-docs mailing list