typst-0.9: test/typ/meta/query-figure-00.out
--- parse tree ---
[ Code
"typ/meta/query-figure-00.typ"
( line 1 , column 2 )
(Set
(Ident (Identifier "page"))
[ KeyValArg (Identifier "paper") (Literal (String "a7"))
, KeyValArg (Identifier "numbering") (Literal (String "1 / 1"))
, KeyValArg
(Identifier "margin")
(Dict
[ Reg ( Ident (Identifier "bottom") , Literal (Numeric 1.0 Cm) )
, Reg ( Ident (Identifier "rest") , Literal (Numeric 0.5 Cm) )
])
])
, ParBreak
, Code
"typ/meta/query-figure-00.typ"
( line 7 , column 2 )
(Set
(Ident (Identifier "figure"))
[ KeyValArg (Identifier "numbering") (Literal (String "I")) ])
, SoftBreak
, Code
"typ/meta/query-figure-00.typ"
( line 8 , column 2 )
(Show
(Just (Ident (Identifier "figure")))
(Set
(Ident (Identifier "image"))
[ KeyValArg (Identifier "width") (Literal (Numeric 80.0 Percent))
]))
, ParBreak
, Heading
1 [ Text "List" , Space , Text "of" , Space , Text "Figures" ]
, SoftBreak
, Code
"typ/meta/query-figure-00.typ"
( line 11 , column 2 )
(FuncCall
(Ident (Identifier "locate"))
[ NormalArg
(FuncExpr
[ NormalParam (Identifier "it") ]
(Block
(CodeBlock
[ Let
(BasicBind (Just (Identifier "elements")))
(FuncCall
(Ident (Identifier "query"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "after"))
(FuncCall
(Ident (Identifier "selector"))
[ NormalArg (Ident (Identifier "figure")) ]))
[ NormalArg (Ident (Identifier "it")) ])
, NormalArg (Ident (Identifier "it"))
])
, For
(BasicBind (Just (Identifier "it")))
(Ident (Identifier "elements"))
(Block
(Content
[ SoftBreak
, Text "Figure"
, SoftBreak
, Code
"typ/meta/query-figure-00.typ"
( line 15 , column 6 )
(FuncCall
(Ident (Identifier "numbering"))
[ NormalArg
(FieldAccess
(Ident (Identifier "numbering"))
(Ident (Identifier "it")))
, SpreadArg
(FuncCall
(FieldAccess
(Ident (Identifier "at"))
(FuncCall
(Ident (Identifier "counter"))
[ NormalArg (Ident (Identifier "figure")) ]))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "location"))
(Ident (Identifier "it")))
[])
])
])
, Text ":"
, SoftBreak
, Code
"typ/meta/query-figure-00.typ"
( line 17 , column 6 )
(FieldAccess
(Ident (Identifier "caption")) (Ident (Identifier "it")))
, SoftBreak
, Code
"typ/meta/query-figure-00.typ"
( line 18 , column 6 )
(FuncCall
(Ident (Identifier "box"))
[ KeyValArg (Identifier "width") (Literal (Numeric 1.0 Fr))
, NormalArg
(FuncCall
(Ident (Identifier "repeat")) [ BlockArg [ Text "." ] ])
])
, SoftBreak
, Code
"typ/meta/query-figure-00.typ"
( line 19 , column 6 )
(FuncCall
(FieldAccess
(Ident (Identifier "first"))
(FuncCall
(FieldAccess
(Ident (Identifier "at"))
(FuncCall
(Ident (Identifier "counter"))
[ NormalArg (Ident (Identifier "page")) ]))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "location"))
(Ident (Identifier "it")))
[])
]))
[])
, Space
, HardBreak
]))
])))
])
, ParBreak
, Code
"typ/meta/query-figure-00.typ"
( line 23 , column 2 )
(FuncCall
(Ident (Identifier "figure"))
[ NormalArg
(FuncCall
(Ident (Identifier "image"))
[ NormalArg (Literal (String "/assets/files/glacier.jpg")) ])
, KeyValArg
(Identifier "caption")
(Block (Content [ Text "Glacier" , Space , Text "melting" ]))
])
, ParBreak
, Code
"typ/meta/query-figure-00.typ"
( line 28 , column 2 )
(FuncCall
(Ident (Identifier "figure"))
[ NormalArg
(FuncCall
(Ident (Identifier "rect"))
[ BlockArg
[ Text "Just"
, Space
, Text "some"
, Space
, Text "stand"
, Text "-"
, Text "in"
, Space
, Text "text"
]
])
, KeyValArg (Identifier "kind") (Ident (Identifier "image"))
, KeyValArg (Identifier "supplement") (Literal (String "Figure"))
, KeyValArg
(Identifier "caption")
(Block
(Content
[ Text "Stand" , Text "-" , Text "in" , Space , Text "text" ]))
])
, ParBreak
, Code
"typ/meta/query-figure-00.typ"
( line 35 , column 2 )
(FuncCall
(Ident (Identifier "figure"))
[ NormalArg
(FuncCall
(Ident (Identifier "image"))
[ NormalArg (Literal (String "/assets/files/tiger.jpg")) ])
, KeyValArg
(Identifier "caption")
(Block (Content [ Text "Tiger" , Space , Text "world" ]))
])
, ParBreak
]
--- evaluated ---
document(body: { parbreak(),
text(body: [
]),
parbreak(),
heading(body: text(body: [List of Figures]),
level: 1),
locate(func: ),
parbreak(),
figure(body: image(source: "/assets/files/glacier.jpg"),
caption: text(body: [Glacier melting]),
numbering: "I"),
parbreak(),
figure(body: rect(body: text(body: [Just some stand-in text])),
caption: text(body: [Stand-in text]),
kind: ,
numbering: "I",
supplement: "Figure"),
parbreak(),
figure(body: image(source: "/assets/files/tiger.jpg"),
caption: text(body: [Tiger world]),
numbering: "I"),
parbreak() })