mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
65 lines
1.1 KiB
Typst
65 lines
1.1 KiB
Typst
#set page(width: auto)
|
|
|
|
```typ
|
|
#set hello()
|
|
#set hello()
|
|
#set hello.world()
|
|
#set hello.my.world()
|
|
#let foo(x) = x * 2
|
|
#show heading: func
|
|
#show module.func: func
|
|
#show module.func: it => {}
|
|
#foo(ident: ident)
|
|
|
|
#hello
|
|
#hello()
|
|
#hello.world
|
|
#hello.world()
|
|
#hello().world()
|
|
#hello.my.world
|
|
#hello.my.world()
|
|
#hello.my().world
|
|
#hello.my().world()
|
|
|
|
$ hello $
|
|
$ hello() $
|
|
$ hello.world $
|
|
$ hello.world() $
|
|
$ hello().world() $
|
|
$ hello.my.world $
|
|
$ hello.my.world() $
|
|
$ hello.my().world $
|
|
$ hello.my().world() $
|
|
$ f_zeta(x), f_zeta(x)/1 $
|
|
|
|
$ emph(hello) $
|
|
$ emph(hello()) $
|
|
$ emph(hello.world) $
|
|
$ emph(hello.world()) $
|
|
$ emph(hello().world()) $
|
|
$ emph(hello.my.world) $
|
|
$ emph(hello.my.world()) $
|
|
$ emph(hello.my().world) $
|
|
$ emph(hello.my().world()) $
|
|
|
|
$ #hello $
|
|
$ #hello() $
|
|
$ #hello.world $
|
|
$ #hello.world() $
|
|
$ #hello().world() $
|
|
$ #hello.my.world $
|
|
$ #hello.my.world() $
|
|
$ #hello.my().world $
|
|
$ #hello.my().world() $
|
|
|
|
#{ hello }
|
|
#{ hello() }
|
|
#{ hello.world }
|
|
#{ hello.world() }
|
|
#{ hello().world() }
|
|
#{ hello.my.world }
|
|
#{ hello.my.world() }
|
|
#{ hello.my().world }
|
|
#{ hello.my().world() }
|
|
```
|