#Set theorem style numbering

11 messages · Page 1 of 1 (latest)

velvet wraith
#

Hi all, I want to set up an argument which can modify my theorem numbering. Like for a note without sections, I hope the theorem numbering starts with theorem1. On the other hand, if there is a section 1, all the theorems in section 1 should be theorem 1.x.
Right now I'm using the ctheorem package and the theorem numbering depends on the variable base_level. I hope to set the base_level at the beginning of my note. Can anyone help me this?

distant agate
#

What about just utilizing an adaptedly defined let thm-indie = thmbox(base: {}) for those independent notes?

velvet wraith
#

Thank you for your advice. This is something I don't wont to do. I hope there is a global variable to control the behavior of all thmboxes. I only need to import the package instead of redefining those environments.

distant agate
#

In terms of deduplication/recyclability, this would allow for even more conciseness in the concrete document, as you would only need to import that one files with your adapting definitions.

#

*file

unreal birch
#

As soon as we have custom types, I am changing it to using that

#

Like imagine doing:

#set codly(languages: (...), zebra-colors: none)

And then:

#[
  #set codly(offset: 4);
  #raw("...");
]
#

Would be so much nicer

distant agate