Files
pandoc-lua-filters/text-crossrefs/sample-with-options.md
2025-12-22 09:41:53 +01:00

2.2 KiB

tcrf-references-range-separator, tcrf-default-prefixref, tcrf-default-reftype, tcrf-page-prefix, tcrf-pages-prefix, tcrf-note-prefix, tcrf-notes-prefix, tcrf-pagenote-separator, tcrf-pagenote-at-end, tcrf-pagenote-factorize-first-prefix-in-enum, tcrf-pagenote-first-type, tcrf-range-separator, tcrf-references-enum-separator, tcrf-multiple-delimiter, tcrf-multiple-before-last, tcrf-additional-types, tcrf-range-delim-crossrefenum, header-includes
tcrf-references-range-separator tcrf-default-prefixref tcrf-default-reftype tcrf-page-prefix tcrf-pages-prefix tcrf-note-prefix tcrf-notes-prefix tcrf-pagenote-separator tcrf-pagenote-at-end tcrf-pagenote-factorize-first-prefix-in-enum tcrf-pagenote-first-type tcrf-range-separator tcrf-references-enum-separator tcrf-multiple-delimiter tcrf-multiple-before-last tcrf-additional-types tcrf-range-delim-crossrefenum header-includes
-> no note page  pages  note  notes  ( ) yes note - ; ; ; and
line
> \input{crossrefenum}

(About the notes, see [toc-notes-begin -> toc-notes-end]{.tcrf reftype="page"}.)

Émile Gaboriau published [L'Affaire Lerouge in 1866]{#publication}.1

[It was very popular.]{#reception}

See [publication]{.tcrf reftype="page"} for the publication date. I expressed my thoughts about it in [my-evaluation]{.tcrf reftype=pagenote}.

If you want to know more about L'Affaire Lerouge, see [publication->reception]{.tcrf reftype="page"}.

Here are some precisions.2

[I want to refer to a note]{#toc-notes-begin}:

  • How can I refer to a note by its number? → See [refer-to-note]{.tcrf reftype="page"}.
  • What formats are supported? → See [format]{.tcrf reftype="page"}.
  • What if the note contains multiple spans with identifiers? → See [which-identifier]{.tcrf reftype="page"}.
  • What happens if a span is contained in a span? → See [nested-spans]{.tcrf reftype="page"}.
  • What are the notes? → [my-evaluation ; format ; refer-to-note]{.tcrf}
  • Where are the notes? → [my-evaluation;format]{.tcrf reftype="page"}[]{#toc-notes-end}

[A portion of text that may cross a page break.]{#doubledlbl refanchor=both}

[And this one is labelized at the end.]{#lblatend refanchor=end}

What if you want to refer to the last line, i.e. [lblatend]{.tcrf reftype=line}?

See [doubledlbl-beg->doubledlbl-end]{.tcrf reftype="page"}.


  1. It is a very [fine piece of literature]{#my-evaluation}. ↩︎

  2. [Whatever format]{#format} you choose, you can [refer to a note]{#refer-to-note} by the identifier of [any of its spans. You can even [nest spans]{#nested-spans}!]{#which-identifier} ↩︎