Skip to content

Numbering remarks, notes , etc #9

Open
@michihupf

Description

@michihupf

I really like this project but I have reached a problem for which I can't find any documentation.

Environments like remark, note are not numbered, which as a default is completely perfect. My professor numbers remarks in his lectures though and I would like to ask if there is a way to pass the theorem counter to environments like remark as well.

Let me know if this is possible. For now I have just not included a number and am stepping the counter manually.

Edit: For anyone interested this is the workaround I am using for this as of now:

#import "@preview/theorion:0.3.2": remark as remark-impl
#import "@preview/theorion:0.3.2": *

#let remark(body) = {
  (theorem-counter.step)()
  remark-impl(body, title: "Remark " + context (theorem-counter.display)())
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions