Make key sibling
more sensible with \declaretheorem{<env list>}
#20
Labels
enhancement
New feature or request
sibling
more sensible with \declaretheorem{<env list>}
#20
Use case:
Define multiple theorem environments simultaneously and make them share the same counter. So with
one will get
(from user José Gil Férez by email)
Discussions:
Suppose
\declaretheorem{theorem, definition}[<key>=theorem]
does the work, then the logic is "use key value (theorem) as sibling value, or ignore it if it is the same as the env name to be defined". It seems this logic can be directly added to the existing keysibling
, because normally it's non-sense to use\declaretheorem{env}[sibling=env]
.Cons: This requires that the
sibling
value to be the first one in the env list. As a counterexample,\declaretheorem{theorem, definition}[sibling=definition]
won't work.The text was updated successfully, but these errors were encountered: