Theorion: non numbered theorems

We can get a non-numbered theorem with

#theorem-box(title: "Theorem without numbering", outlined: false)[
  This theorem is not numbered.
]

but not, as I’d expect with

#theorem(title: "Theorem without numbering", outlined: false)[
  This theorem *is* numbered.
]

Moreover, I expected that letting

#let theorem = theorem.with(outlined: false)

would make all theorems non numbered by default.

Am I missing something? Or this feature is not implemented?

It’s unnumbered regardless of outlined.

Why not let theorem = theorem-box then?

If I have to guess what you want, then you can override the title.

#import "@preview/theorion:0.3.3": *
#show: show-theorion

#let theorem = theorem-box.with(get-full-title: (_, title) => [Theorem (#title)])

#theorem-box(title: "Theorem without numbering")[
  This theorem is not numbered.
]

#theorem(title: "Theorem without numbering")[
  This theorem *is* numbered.
]

image

Which I guess is not documented.

Cc @OrangeX4

Thanks! this is what I wanted, but I needed to add a little hack for the case when there’s no title (since we don’t want empty parentheses):

#let theorem = theorem-box.with(get-full-title: (_, title) => [Theorem #if title=="" [] else [(#title)]])

Anyway, I think it’s natural to need unnumbered theorems (e.g., for presentations), and that it should be more at hand (like the * in latex).

This was not obvious with no expected result example or description.

#let theorem = theorem-box.with(
  get-full-title: (_, title) => [Theorem#if title != "" [ (#title)]],
)