packages feed

typst-0.7: test/typ/layout/page-marginals-00.out

--- parse tree ---
[ Code
    "typ/layout/page-marginals-00.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/page-marginals-00.typ"
                                 ( line 1 , column 47 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "x")) ])
                             , Space
                             , Text "/"
                             , Text "="
                             , Space
                             , Code
                                 "typ/layout/page-marginals-00.typ"
                                 ( line 1 , column 59 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "y")) ])
                             , Text ")"
                             ])
                      )
                    ]
                ]))))
, SoftBreak
, Code
    "typ/layout/page-marginals-00.typ"
    ( line 2 , column 2 )
    (Set
       (Ident (Identifier "page"))
       [ KeyValArg (Identifier "paper") (Literal (String "a8"))
       , KeyValArg
           (Identifier "margin")
           (Dict
              [ Reg ( Ident (Identifier "x") , Literal (Numeric 15.0 Pt) )
              , Reg ( Ident (Identifier "y") , Literal (Numeric 30.0 Pt) )
              ])
       , KeyValArg
           (Identifier "header")
           (Block
              (CodeBlock
                 [ FuncCall
                     (Ident (Identifier "text"))
                     [ NormalArg (Ident (Identifier "eastern"))
                     , BlockArg [ Strong [ Text "Typst" ] ]
                     ]
                 , FuncCall
                     (Ident (Identifier "h")) [ NormalArg (Literal (Numeric 1.0 Fr)) ]
                 , FuncCall
                     (Ident (Identifier "text"))
                     [ NormalArg (Literal (Numeric 0.8 Em))
                     , BlockArg [ Emph [ Text "Chapter" , Space , Text "1" ] ]
                     ]
                 ]))
       , KeyValArg
           (Identifier "footer")
           (FuncCall
              (Ident (Identifier "align"))
              [ NormalArg (Ident (Identifier "center"))
              , BlockArg
                  [ Text "~"
                  , Space
                  , Code
                      "typ/layout/page-marginals-00.typ"
                      ( line 10 , column 29 )
                      (FuncCall
                         (FieldAccess
                            (Ident (Identifier "display"))
                            (FuncCall
                               (Ident (Identifier "counter"))
                               [ NormalArg (Ident (Identifier "page")) ]))
                         [])
                  , Space
                  , Text "~"
                  ]
              ])
       , KeyValArg
           (Identifier "background")
           (FuncCall
              (FieldAccess
                 (Ident (Identifier "display"))
                 (FuncCall
                    (Ident (Identifier "counter"))
                    [ NormalArg (Ident (Identifier "page")) ]))
              [ NormalArg
                  (FuncExpr
                     [ NormalParam (Identifier "n") ]
                     (If
                        [ ( LessThanOrEqual (Ident (Identifier "n")) (Literal (Int 2))
                          , Block
                              (CodeBlock
                                 [ FuncCall
                                     (Ident (Identifier "place"))
                                     [ NormalArg
                                         (Plus
                                            (Ident (Identifier "center"))
                                            (Ident (Identifier "horizon")))
                                     , NormalArg
                                         (FuncCall
                                            (Ident (Identifier "circle"))
                                            [ KeyValArg
                                                (Identifier "radius") (Literal (Numeric 1.0 Cm))
                                            , KeyValArg
                                                (Identifier "fill")
                                                (FuncCall
                                                   (Ident (Identifier "luma"))
                                                   [ NormalArg (Literal (Numeric 90.0 Percent)) ])
                                            ])
                                     ]
                                 ])
                          )
                        ]))
              ])
       ])
, ParBreak
, 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 "."
, Space
, Text "Arise,"
, Space
, Text "fair"
, Space
, Text "sun,"
, Space
, Text "and"
, Space
, Text "kill"
, Space
, Text "the"
, Space
, Text "envious"
, Space
, Text "moon,"
, Space
, Text "Who"
, Space
, Text "is"
, Space
, Text "already"
, Space
, Text "sick"
, Space
, Text "and"
, SoftBreak
, Text "pale"
, Space
, Text "with"
, Space
, Text "grief,"
, Space
, Text "That"
, Space
, Text "thou"
, Space
, Text "her"
, Space
, Text "maid"
, Space
, Text "art"
, Space
, Text "far"
, Space
, Text "more"
, Space
, Text "fair"
, Space
, Text "than"
, Space
, Text "she"
, Text ":"
, Space
, Text "Be"
, Space
, Text "not"
, Space
, Text "her"
, Space
, Text "maid,"
, SoftBreak
, Text "since"
, Space
, Text "she"
, Space
, Text "is"
, Space
, Text "envious;"
, Space
, Text "Her"
, Space
, Text "vestal"
, Space
, Text "livery"
, Space
, Text "is"
, Space
, Text "but"
, Space
, Text "sick"
, Space
, Text "and"
, Space
, Text "green"
, Space
, Text "And"
, Space
, Text "none"
, Space
, Text "but"
, Space
, Text "fools"
, SoftBreak
, Text "do"
, Space
, Text "wear"
, Space
, Text "it;"
, Space
, Text "cast"
, Space
, Text "it"
, Space
, Text "off"
, Text "."
, Space
, Text "It"
, Space
, Text "is"
, Space
, Text "my"
, Space
, Text "lady,"
, Space
, Text "O,"
, Space
, Text "it"
, Space
, Text "is"
, Space
, Text "my"
, Space
, Text "love!"
, Space
, Text "O,"
, Space
, Text "that"
, Space
, Text "she"
, Space
, Text "knew"
, Space
, Text "she"
, SoftBreak
, Text "were!"
, Space
, Text "She"
, Space
, Text "speaks"
, Space
, Text "yet"
, Space
, Text "she"
, Space
, Text "says"
, Space
, Text "nothing"
, Text ":"
, Space
, Text "what"
, Space
, Text "of"
, Space
, Text "that?"
, Space
, Text "Her"
, Space
, Text "eye"
, Space
, Text "discourses;"
, Space
, Text "I"
, Space
, Text "will"
, SoftBreak
, Text "answer"
, Space
, Text "it"
, Text "."
, ParBreak
, Code
    "typ/layout/page-marginals-00.typ"
    ( line 24 , column 2 )
    (Set
       (Ident (Identifier "page"))
       [ KeyValArg (Identifier "header") (Literal None)
       , KeyValArg (Identifier "height") (Literal Auto)
       , KeyValArg
           (Identifier "margin")
           (Dict
              [ Reg ( Ident (Identifier "top") , Literal (Numeric 15.0 Pt) )
              , Reg ( Ident (Identifier "bottom") , Literal (Numeric 25.0 Pt) )
              ])
       ])
, SoftBreak
, Text "The"
, Space
, Text "END"
, Text "."
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]), 
                 parbreak(), 
                 text(body: [But, soft! what light through yonder window breaks? It is the east, and Juliet
is the sun. Arise, fair sun, and kill the envious moon, Who is already sick and
pale with grief, That thou her maid art far more fair than she: Be not her maid,
since she is envious; Her vestal livery is but sick and green And none but fools
do wear it; cast it off. It is my lady, O, it is my love! O, that she knew she
were! She speaks yet she says nothing: what of that? Her eye discourses; I will
answer it.]), 
                 parbreak(), 
                 text(body: [
The END.]), 
                 parbreak() })