diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/issue-3481-cite-location.png | bin | 0 -> 602 bytes | |||
| -rw-r--r-- | tests/ref/issue-footnotes-skip-first-page.png | bin | 0 -> 571 bytes | |||
| -rw-r--r-- | tests/suite/model/cite.typ | 17 | ||||
| -rw-r--r-- | tests/suite/model/footnote.typ | 7 |
4 files changed, 24 insertions, 0 deletions
diff --git a/tests/ref/issue-3481-cite-location.png b/tests/ref/issue-3481-cite-location.png Binary files differnew file mode 100644 index 00000000..cfc13db5 --- /dev/null +++ b/tests/ref/issue-3481-cite-location.png diff --git a/tests/ref/issue-footnotes-skip-first-page.png b/tests/ref/issue-footnotes-skip-first-page.png Binary files differnew file mode 100644 index 00000000..d24387e3 --- /dev/null +++ b/tests/ref/issue-footnotes-skip-first-page.png diff --git a/tests/suite/model/cite.typ b/tests/suite/model/cite.typ index c6bdccb1..df8b7e76 100644 --- a/tests/suite/model/cite.typ +++ b/tests/suite/model/cite.typ @@ -90,3 +90,20 @@ B #cite(<netwok>) #cite(<arrgh>). #show bibliography: none #bibliography("/assets/bib/works.bib") + +--- issue-3481-cite-location --- +// The locator was cloned in the wrong location, leading to inconsistent +// citation group locations in the second footnote attempt. +#set page(height: 60pt) + +// First page shouldn't be empty because otherwise we won't skip the first +// region which causes the bug in the first place. +#v(10pt) + +// Everything moves to the second page because we want to keep the line and +// its footnotes together. +#footnote[@netwok] +#footnote[A] + +#show bibliography: none +#bibliography("/assets/bib/works.bib") diff --git a/tests/suite/model/footnote.typ b/tests/suite/model/footnote.typ index c41db577..34450ca4 100644 --- a/tests/suite/model/footnote.typ +++ b/tests/suite/model/footnote.typ @@ -180,3 +180,10 @@ B #footnote[b] - #footnote[1] - #footnote[2] + +--- issue-footnotes-skip-first-page --- +// In this issue, we would get an empty page at the beginning because footnote +// layout didn't properly check for in_last. +#set page(height: 50pt) +#footnote[A] +#footnote[B] |
