packages feed

typst-0.9: test/typ/math/cancel-01.out

--- parse tree ---
[ Comment
, SoftBreak
, Code
    "typ/math/cancel-01.typ"
    ( line 2 , column 2 )
    (Set
       (Ident (Identifier "page"))
       [ KeyValArg (Identifier "width") (Literal Auto) ])
, SoftBreak
, Equation
    True
    [ Text "a"
    , Text "+"
    , Text "b"
    , Text "+"
    , Code
        "typ/math/cancel-01.typ"
        ( line 3 , column 11 )
        (FuncCall
           (Ident (Identifier "cancel"))
           [ BlockArg [ Text "b" , Text "+" , Text "c" ] ])
    , Code
        "typ/math/cancel-01.typ"
        ( line 3 , column 25 )
        (Ident (Identifier "minus"))
    , Code
        "typ/math/cancel-01.typ"
        ( line 3 , column 27 )
        (FuncCall (Ident (Identifier "cancel")) [ BlockArg [ Text "b" ] ])
    , Code
        "typ/math/cancel-01.typ"
        ( line 3 , column 37 )
        (Ident (Identifier "minus"))
    , Code
        "typ/math/cancel-01.typ"
        ( line 3 , column 39 )
        (FuncCall (Ident (Identifier "cancel")) [ BlockArg [ Text "c" ] ])
    , Code
        "typ/math/cancel-01.typ"
        ( line 3 , column 49 )
        (Ident (Identifier "minus"))
    , Text "5"
    , Text "+"
    , Code
        "typ/math/cancel-01.typ"
        ( line 3 , column 55 )
        (FuncCall (Ident (Identifier "cancel")) [ BlockArg [ Text "6" ] ])
    , Code
        "typ/math/cancel-01.typ"
        ( line 3 , column 65 )
        (Ident (Identifier "minus"))
    , Code
        "typ/math/cancel-01.typ"
        ( line 3 , column 67 )
        (FuncCall (Ident (Identifier "cancel")) [ BlockArg [ Text "6" ] ])
    ]
, SoftBreak
, Equation
    True
    [ Text "e"
    , Text "+"
    , MFrac
        (MGroup
           (Just "(")
           (Just ")")
           [ Text "a"
           , Code
               "typ/math/cancel-01.typ"
               ( line 4 , column 10 )
               (FieldAccess (Ident (Identifier "c")) (Ident (Identifier "dot")))
           , Code
               "typ/math/cancel-01.typ"
               ( line 4 , column 16 )
               (FuncCall
                  (Ident (Identifier "cancel"))
                  [ BlockArg
                      [ MGroup
                          (Just "(")
                          (Just ")")
                          [ Text "b" , Text "+" , Text "c" , Text "+" , Text "d" ]
                      ]
                  ])
           ])
        (MGroup
           Nothing
           Nothing
           [ Code
               "typ/math/cancel-01.typ"
               ( line 4 , column 38 )
               (FuncCall
                  (Ident (Identifier "cancel"))
                  [ BlockArg [ Text "b" , Text "+" , Text "c" , Text "+" , Text "d" ]
                  ])
           ])
    ]
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]), 
                 text(body: [
]), 
                 math.equation(block: true, 
                               body: { text(body: [a]), 
                                       text(body: [+]), 
                                       text(body: [b]), 
                                       text(body: [+]), 
                                       math.cancel(body: { text(body: [b]), 
                                                           text(body: [+]), 
                                                           text(body: [c]) }), 
                                       text(body: [−]), 
                                       math.cancel(body: text(body: [b])), 
                                       text(body: [−]), 
                                       math.cancel(body: text(body: [c])), 
                                       text(body: [−]), 
                                       text(body: [5]), 
                                       text(body: [+]), 
                                       math.cancel(body: text(body: [6])), 
                                       text(body: [−]), 
                                       math.cancel(body: text(body: [6])) }, 
                               numbering: none), 
                 text(body: [
]), 
                 math.equation(block: true, 
                               body: { text(body: [e]), 
                                       text(body: [+]), 
                                       math.frac(denom: math.cancel(body: { text(body: [b]), 
                                                                            text(body: [+]), 
                                                                            text(body: [c]), 
                                                                            text(body: [+]), 
                                                                            text(body: [d]) }), 
                                                 num: { text(body: [a]), 
                                                        text(body: [·]), 
                                                        math.cancel(body: math.lr(body: ({ [(], 
                                                                                           text(body: [b]), 
                                                                                           text(body: [+]), 
                                                                                           text(body: [c]), 
                                                                                           text(body: [+]), 
                                                                                           text(body: [d]), 
                                                                                           [)] }))) }) }, 
                               numbering: none), 
                 parbreak() })