typst-0.7: test/typ/layout/pagebreak-03.out
--- parse tree ---
[ Code
"typ/layout/pagebreak-03.typ"
( line 1 , column 2 )
(Let
(BasicBind (Just (Identifier "test")))
(FuncExpr
[ NormalParam (Identifier "x") , NormalParam (Identifier "y") ]
(Block
(CodeBlock
[ If
[ ( Equals (Ident (Identifier "x")) (Ident (Identifier "y"))
, Block (Content [ Text "\9989" ])
)
, ( Literal (Boolean True)
, Block
(Content
[ Text "\10060"
, Text "("
, Code
"typ/layout/pagebreak-03.typ"
( line 1 , column 47 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "x")) ])
, Space
, Text "/"
, Text "="
, Space
, Code
"typ/layout/pagebreak-03.typ"
( line 1 , column 59 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "y")) ])
, Text ")"
])
)
]
]))))
, SoftBreak
, Comment
, Comment
, Code
"typ/layout/pagebreak-03.typ"
( line 4 , column 2 )
(Set
(Ident (Identifier "page"))
[ KeyValArg (Identifier "width") (Literal (Numeric 80.0 Pt))
, KeyValArg (Identifier "height") (Literal (Numeric 30.0 Pt))
])
, SoftBreak
, Code
"typ/layout/pagebreak-03.typ"
( line 5 , column 2 )
(Block
(Content
[ Code
"typ/layout/pagebreak-03.typ"
( line 5 , column 4 )
(Set
(Ident (Identifier "page"))
[ KeyValArg (Identifier "width") (Literal (Numeric 60.0 Pt)) ])
, Space
, Text "First"
]))
, SoftBreak
, Code
"typ/layout/pagebreak-03.typ"
( line 6 , column 2 )
(FuncCall (Ident (Identifier "pagebreak")) [])
, SoftBreak
, Code
"typ/layout/pagebreak-03.typ"
( line 7 , column 2 )
(FuncCall (Ident (Identifier "pagebreak")) [])
, SoftBreak
, Text "Third"
, SoftBreak
, Code
"typ/layout/pagebreak-03.typ"
( line 9 , column 2 )
(FuncCall
(Ident (Identifier "page"))
[ KeyValArg (Identifier "height") (Literal (Numeric 20.0 Pt))
, KeyValArg (Identifier "fill") (Ident (Identifier "red"))
, BlockArg []
])
, SoftBreak
, Text "Fif"
, Code
"typ/layout/pagebreak-03.typ"
( line 10 , column 5 )
(Block
(Content
[ Code
"typ/layout/pagebreak-03.typ"
( line 10 , column 7 )
(Set (Ident (Identifier "page")) [])
, Text "th"
]))
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
]),
text(body: [ First]),
text(body: [
]),
pagebreak(),
text(body: [
]),
pagebreak(),
text(body: [
Third
]),
page(body: { },
fill: rgb(100%,25%,21%,100%),
height: 20.0pt,
width: 60.0pt),
text(body: [
Fif]),
text(body: [th]),
parbreak() })