diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-02-27 11:05:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-27 10:05:16 +0000 |
| commit | 145723b1ef4fa23f1f6665b8907dfe79d0bf83cf (patch) | |
| tree | 02a7de661ddd5dafa75dfce3e3c8b45a7333b9dc /tests/typ/bugs | |
| parent | e9ee00a7c0df083663ff5ccca162238b88525e14 (diff) | |
New context system (#3497)
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 - |
