Frame-it : how to remove counter from frame

Greetings,

I am using the “Frame-it” package to add comments for my students. Is there any possible way to remove the counter on the right? (as per image below)

The image below is my code. I’ve tried to tinker around with the code to find possible keywords like “counter”, “hide”, “show” and searched around the forum and package documentation but can’t seem to find it.

Frames are based on figures, so a quick and dirty hack is setting the numbering to a function that returns none.

#show figure.where(kind: "frame"): set figure(numbering: c => none)

BTW, if you’re using just one kind of frame, it’s much easier and much more readable to define it with the frame-function (singular, as in one frame):

#let example = frame("", yellow)

instead of

#let (example,) = frames(example: ("", yellow))

You can use #show figure.where(kind: "frame"): set figure(numbering: none), but since package doesn’t properly handle edge cases, this won’t work with it currently.

So…fix(api): handle `none` as figure numbering by Andrew15-5 · Pull Request #15 · marc-thieme/frame-it · GitHub

1 Like