pandoc-lua-filters/text-crossrefs/sample.md

42 lines
1.5 KiB
Markdown
Raw Permalink Normal View History

---
tcrf-pagenote-separator: '\ ('
tcrf-pagenote-at-end: ')'
header-includes: |
\input{crossrefenum}
---
(About the notes, see [toc-notes-begin>toc-notes-end]{.tcrf}.)
Émile Gaboriau published [_L'Affaire Lerouge_ in
1866]{#publication}.[^1]
[^1]: It is a very [fine piece of literature]{#my-evaluation}.
[It was very popular.]{#reception}
See [publication]{.tcrf} 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}.
Here are some precisions.[^2]
[^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}
[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}.
* What formats are supported? → See [format]{.tcrf}.
* What if the note contains multiple spans with identifiers? → See [which-identifier]{.tcrf}.
* What happens if a span in contained in a span? → See [nested-spans]{.tcrf}.
* What are the notes? → [my-evaluation, format, refer-to-note]{.tcrf reftype=note}
* Where are the notes? → [my-evaluation, format]{.tcrf}
[]{#toc-notes-end}
2022-11-16 09:14:58 +00:00
[A portion of text that may cross a page break.]{#doubledlbl refanchor=both}
[And this one is labelized at the end.]{#lblatend refanchor=end}
See [doubledlbl-beg>doubledlbl-end]{.tcrf}.