Replies: 1 comment 3 replies
-
I'm finding it is possible to remove numberings by redefining the caption function: show figure.caption: it => [
#text(it.body)
] So maybe this is (a) not needed or (b) if not [a], could go in the template instead of the writer. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
By default, Typst numbers all figures, including tables. There's no way to disable this globally, as far as I can tell; you have to set
numbering: none
on each figure as you create it.I know that the odt, docx, and opendocument writers support a
native_numbering
extension that can be enabled/disabled. Would it be reasonable to hook the Typst writer into that, too, at have it emit the disabling markup if the extension is turned off?I don't think this could be done with a Lua filter, since it's not modifying Pandoc's AST, but the writer... but maybe there's some clever use of attributes that could get around it?
Beta Was this translation helpful? Give feedback.
All reactions