diff options
Diffstat (limited to 'tests/typ/bugs')
| -rw-r--r-- | tests/typ/bugs/2650-cjk-latin-spacing-meta.typ | 3 | ||||
| -rw-r--r-- | tests/typ/bugs/cite-locate.typ | 2 | ||||
| -rw-r--r-- | tests/typ/bugs/math-realize.typ | 2 | ||||
| -rw-r--r-- | tests/typ/bugs/pagebreak-numbering.typ | 1 |
4 files changed, 3 insertions, 5 deletions
diff --git a/tests/typ/bugs/2650-cjk-latin-spacing-meta.typ b/tests/typ/bugs/2650-cjk-latin-spacing-meta.typ index e234e651..12c7ea41 100644 --- a/tests/typ/bugs/2650-cjk-latin-spacing-meta.typ +++ b/tests/typ/bugs/2650-cjk-latin-spacing-meta.typ @@ -1,6 +1,5 @@ // https://github.com/typst/typst/issues/2650 -#let with-locate(body) = locate(loc => body) 测a试 -测#with-locate[a]试 +测#context [a]试 diff --git a/tests/typ/bugs/cite-locate.typ b/tests/typ/bugs/cite-locate.typ index 4eb95b54..c576c45e 100644 --- a/tests/typ/bugs/cite-locate.typ +++ b/tests/typ/bugs/cite-locate.typ @@ -17,7 +17,7 @@ caption: [A pirate @arrgh in @intro], ) -#locate(loc => [Citation @distress on page #loc.page()]) +#context [Citation @distress on page #here().page()] #pagebreak() #bibliography("/files/works.bib", style: "chicago-notes") diff --git a/tests/typ/bugs/math-realize.typ b/tests/typ/bugs/math-realize.typ index d7991542..10d8b78e 100644 --- a/tests/typ/bugs/math-realize.typ +++ b/tests/typ/bugs/math-realize.typ @@ -4,7 +4,7 @@ --- #let my = $pi$ #let f1 = box(baseline: 10pt, [f]) -#let f2 = style(sty => f1) +#let f2 = context f1 #show math.vec: [nope] $ pi a $ diff --git a/tests/typ/bugs/pagebreak-numbering.typ b/tests/typ/bugs/pagebreak-numbering.typ index d805c2c6..a9fae3e4 100644 --- a/tests/typ/bugs/pagebreak-numbering.typ +++ b/tests/typ/bugs/pagebreak-numbering.typ @@ -10,4 +10,3 @@ This and next page should not be numbered #counter(page).update(1) This page should - |
