typst-0.9: test/typ/layout/clip-01.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/layout/clip-01.typ"
( line 2 , column 2 )
(FuncCall
(Ident (Identifier "block"))
[ KeyValArg (Identifier "width") (Literal (Numeric 5.0 Em))
, KeyValArg (Identifier "height") (Literal (Numeric 2.0 Em))
, KeyValArg (Identifier "clip") (Literal (Boolean False))
, KeyValArg
(Identifier "stroke")
(Plus (Literal (Numeric 1.0 Pt)) (Ident (Identifier "black")))
, BlockArg
[ SoftBreak
, Text "But,"
, Space
, Text "soft!"
, Space
, Text "what"
, Space
, Text "light"
, Space
, Text "through"
, Space
, ParBreak
]
])
, ParBreak
, Code
"typ/layout/clip-01.typ"
( line 6 , column 2 )
(FuncCall
(Ident (Identifier "v")) [ NormalArg (Literal (Numeric 2.0 Em)) ])
, ParBreak
, Code
"typ/layout/clip-01.typ"
( line 8 , column 2 )
(FuncCall
(Ident (Identifier "block"))
[ KeyValArg (Identifier "width") (Literal (Numeric 5.0 Em))
, KeyValArg (Identifier "height") (Literal (Numeric 2.0 Em))
, KeyValArg (Identifier "clip") (Literal (Boolean True))
, KeyValArg
(Identifier "stroke")
(Plus (Literal (Numeric 1.0 Pt)) (Ident (Identifier "black")))
, BlockArg
[ SoftBreak
, Text "But,"
, Space
, Text "soft!"
, Space
, Text "what"
, Space
, Text "light"
, Space
, Text "through"
, Space
, Text "yonder"
, Space
, Text "window"
, Space
, Text "breaks?"
, Space
, Text "It"
, Space
, Text "is"
, Space
, Text "the"
, Space
, Text "east,"
, Space
, Text "and"
, Space
, Text "Juliet"
, SoftBreak
, Text "is"
, Space
, Text "the"
, Space
, Text "sun"
, Text "."
, ParBreak
]
])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
block(body: { text(body: [
But, soft! what light through ]),
parbreak() },
clip: false,
height: 2.0em,
stroke: (thickness: 1.0pt,
color: rgb(0%,0%,0%,100%)),
width: 5.0em),
parbreak(),
v(amount: 2.0em),
parbreak(),
block(body: { text(body: [
But, soft! what light through yonder window breaks? It is the east, and Juliet
is the sun.]),
parbreak() },
clip: true,
height: 2.0em,
stroke: (thickness: 1.0pt,
color: rgb(0%,0%,0%,100%)),
width: 5.0em),
parbreak() })