packages feed

typst-0.9: test/typ/text/shift-02.out

--- parse tree ---
[ Code
    "typ/text/shift-02.typ"
    ( line 1 , column 2 )
    (Set
       (Ident (Identifier "underline"))
       [ KeyValArg (Identifier "stroke") (Literal (Numeric 0.5 Pt))
       , KeyValArg (Identifier "offset") (Literal (Numeric 0.15 Em))
       ])
, SoftBreak
, Code
    "typ/text/shift-02.typ"
    ( line 2 , column 2 )
    (FuncCall
       (Ident (Identifier "underline"))
       [ BlockArg
           [ Text "The"
           , Space
           , Text "claim"
           , Code
               "typ/text/shift-02.typ"
               ( line 2 , column 22 )
               (FuncCall
                  (Ident (Identifier "super"))
                  [ BlockArg [ Text "[" , Text "4" , Text "]" ] ])
           ]
       ])
, Space
, Text "has"
, Space
, Text "been"
, Space
, Text "disputed"
, Text "."
, Space
, HardBreak
, Text "The"
, Space
, Text "claim"
, Code
    "typ/text/shift-02.typ"
    ( line 3 , column 11 )
    (FuncCall
       (Ident (Identifier "super"))
       [ BlockArg
           [ Code
               "typ/text/shift-02.typ"
               ( line 3 , column 18 )
               (FuncCall
                  (Ident (Identifier "underline"))
                  [ BlockArg [ Text "[" , Text "4" , Text "]" ] ])
           ]
       ])
, Space
, Text "has"
, Space
, Text "been"
, Space
, Text "disputed"
, Text "."
, Space
, HardBreak
, Text "It"
, Space
, Text "really"
, Space
, Text "has"
, Space
, Text "been"
, Code
    "typ/text/shift-02.typ"
    ( line 4 , column 20 )
    (FuncCall
       (Ident (Identifier "super"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "box"))
              [ NormalArg
                  (FuncCall
                     (Ident (Identifier "text"))
                     [ KeyValArg (Identifier "baseline") (Literal (Numeric 0.0 Pt))
                     , NormalArg
                         (FuncCall
                            (Ident (Identifier "underline"))
                            [ BlockArg [ Text "[" , Text "4" , Text "]" ] ])
                     ])
              ])
       ])
, Space
, HardBreak
]
--- evaluated ---
document(body: { text(body: [
]), 
                 underline(body: { text(body: [The claim]), 
                                   super(body: text(body: [[4]])) }, 
                           offset: 0.15em, 
                           stroke: 0.5pt), 
                 text(body: [ has been disputed. ]), 
                 linebreak(), 
                 text(body: [The claim]), 
                 super(body: underline(body: text(body: [[4]]), 
                                       offset: 0.15em, 
                                       stroke: 0.5pt)), 
                 text(body: [ has been disputed. ]), 
                 linebreak(), 
                 text(body: [It really has been]), 
                 super(body: box(body: text(baseline: 0.0pt, 
                                            body: underline(body: text(body: [[4]]), 
                                                            offset: 0.15em, 
                                                            stroke: 0.5pt)))), 
                 text(body: [ ]), 
                 linebreak() })