diff --git a/text-crossrefs/README.md b/text-crossrefs/README.md index e54fc20..cf17b65 100644 --- a/text-crossrefs/README.md +++ b/text-crossrefs/README.md @@ -131,9 +131,14 @@ The `#crossrefenum` command has the following parameters: See the [Typst-specific options](#typst-options) to know how to switch to `#crossrefenum`. If you keep the defaults (outputting `#ref` commands), -you may wish to set some [formatting options](#docx-odt-options) -and to add a show rule for `#ref` to prevent it from typesetting prefixes (e.g. “p. ”) -in addition to those that _text-crossrefs_ already inserts. +you may wish to set some [formatting options](#docx-odt-options). +_text-crossrefs_ will automatically add the following rule at the end of the preamble +to prevent Typst from typesetting the prefix “page ” +in addition to those that the filter already inserts: + +```{typst} +#set page(supplement: []) +``` In the default mode, you can also (ab)use the `note` reference type to refer to a heading, figure or equation by its number, for the `note` reference type diff --git a/text-crossrefs/text-crossrefs.lua b/text-crossrefs/text-crossrefs.lua index 511877d..cf54942 100644 --- a/text-crossrefs/text-crossrefs.lua +++ b/text-crossrefs/text-crossrefs.lua @@ -702,6 +702,7 @@ end return { { Meta = configure }, { Meta = support_footnote_label_ConTeXt }, + { Meta = remove_prefixes_typst }, { Note = set_notelabels }, { Note = map_spans_to_notelabels }, { Span = control_label_placement },