diff options
| author | Jeremie Knuesel <knuesel@gmail.com> | 2024-09-26 11:15:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-26 09:15:31 +0000 |
| commit | a69ada7889c5c5996d0660401e981b6baac14a83 (patch) | |
| tree | 5d44fd834bc932bd5e3996984d9b7cccaa9d5a56 /tests | |
| parent | 5823429a968eeb60f39aba55302f4fca57bdf615 (diff) | |
Rename place scope "page" to "parent" (#5027)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/suite/layout/flow/footnote.typ | 2 | ||||
| -rw-r--r-- | tests/suite/layout/flow/place.typ | 30 | ||||
| -rw-r--r-- | tests/suite/model/figure.typ | 4 |
3 files changed, 18 insertions, 18 deletions
diff --git a/tests/suite/layout/flow/footnote.typ b/tests/suite/layout/flow/footnote.typ index f7722e15..945ae4d3 100644 --- a/tests/suite/layout/flow/footnote.typ +++ b/tests/suite/layout/flow/footnote.typ @@ -84,7 +84,7 @@ Beautiful footnotes. #footnote[Wonderful, aren't they?] #place( top + center, float: true, - scope: "page", + scope: "parent", clearance: 12pt, strong[Title], ) diff --git a/tests/suite/layout/flow/place.typ b/tests/suite/layout/flow/place.typ index dc655ec5..f3b77118 100644 --- a/tests/suite/layout/flow/place.typ +++ b/tests/suite/layout/flow/place.typ @@ -110,7 +110,7 @@ A #align(center)[A] #pagebreak() #align(center)[B] -#place(bottom, scope: "page", rect(height: 10pt)) +#place(bottom, scope: "parent", rect(height: 10pt)) --- place-float-flow-size-alone --- #set page(width: auto, height: auto) @@ -123,7 +123,7 @@ A #set rect(width: 70%) #place(top + center, rect[I]) -#place(bottom + center, scope: "page", rect[II]) +#place(bottom + center, scope: "parent", rect[II]) A #v(1fr) @@ -137,7 +137,7 @@ C #set place(float: true, clearance: 10pt) #set rect(width: 70%) -#place(top + center, scope: "page", rect[I]) +#place(top + center, scope: "parent", rect[I]) #place(top + center, rect[II]) // This test result is not ideal: The first column takes 30% of the full page, @@ -200,19 +200,19 @@ C #set place(float: true, clearance: 10pt) #set rect(width: 70%) -#place(top + center, scope: "page", rect[I]) +#place(top + center, scope: "parent", rect[I]) #place(top + center, rect[II]) #lines(4) #place(top + center, rect[III]) #block(width: 100%, height: 70pt, fill: conifer) -#place(bottom + center, scope: "page", rect[IV]) +#place(bottom + center, scope: "parent", rect[IV]) #place(bottom + center, rect[V]) #v(1pt, weak: true) #block(width: 100%, height: 60pt, fill: aqua) --- place-float-twocolumn-queued --- #set page(height: 100pt, columns: 2) -#set place(float: true, scope: "page", clearance: 10pt) +#set place(float: true, scope: "parent", clearance: 10pt) #let t(align, fill) = place(top + align, rect(fill: fill, height: 25pt)) #t(left, aqua) @@ -225,9 +225,9 @@ C #set place(float: true, clearance: 10pt) #set rect(width: 70%) -#place(auto, scope: "page", rect[I]) // Should end up `top` +#place(auto, scope: "parent", rect[I]) // Should end up `top` #lines(4) -#place(auto, scope: "page", rect[II]) // Should end up `bottom` +#place(auto, scope: "parent", rect[II]) // Should end up `bottom` #lines(4) --- place-float-twocolumn-fits --- @@ -236,7 +236,7 @@ C #set rect(width: 70%) #lines(6) -#place(auto, scope: "page", rect[I]) +#place(auto, scope: "parent", rect[I]) #lines(12, "1") --- place-float-twocolumn-fits-not --- @@ -245,7 +245,7 @@ C #set rect(width: 70%) #lines(10) -#place(auto, scope: "page", rect[I]) +#place(auto, scope: "parent", rect[I]) #lines(10, "1") --- place-float-threecolumn --- @@ -253,9 +253,9 @@ C #set place(float: true, clearance: 10pt) #set rect(width: 70%) -#place(bottom + center, scope: "page", rect[I]) +#place(bottom + center, scope: "parent", rect[I]) #lines(21) -#place(top + center, scope: "page", rect[II]) +#place(top + center, scope: "parent", rect[II]) --- place-float-threecolumn-block-backlog --- #set page(height: 100pt, columns: 3) @@ -264,10 +264,10 @@ C // The most important part of this test is that we get the backlog of the // conifer (green) block right. -#place(top + center, scope: "page", rect[I]) +#place(top + center, scope: "parent", rect[I]) #block(fill: aqua, width: 100%, height: 70pt) #block(fill: conifer, width: 100%, height: 160pt) -#place(bottom + center, scope: "page", rect[II]) +#place(bottom + center, scope: "parent", rect[II]) #place(top, rect(height: 40%)[III]) #block(fill: yellow, width: 100%, height: 60pt) @@ -296,7 +296,7 @@ C #t(top, 3) #colbreak() #cd -#t(scope: "page", bottom, 11) +#t(scope: "parent", bottom, 11) #colbreak() #cd #t(top, 12) diff --git a/tests/suite/model/figure.typ b/tests/suite/model/figure.typ index d71d92e3..feaf8d3b 100644 --- a/tests/suite/model/figure.typ +++ b/tests/suite/model/figure.typ @@ -49,7 +49,7 @@ We can clearly see that @fig-cylinder and #figure( placement: auto, - scope: "page", + scope: "parent", caption: [I], rect(height: 15pt, width: 80%), ) @@ -70,7 +70,7 @@ We can clearly see that @fig-cylinder and #figure( placement: auto, - scope: "page", + scope: "parent", caption: [IV], rect(width: 80%), ) |
