Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/tutorial/reference-color.typ
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ A gradient can be used for the following purposes:

A repeating pattern fill. #ref-bookmark[`tiling`]

Typst supports the most common pattern type of tiled patterns, where a pattern is repeated in a grid-like fashion, covering the entire area of an element that is filled or stroked. The pattern is defined by a tile size and a body defining the content of each cell. You can also add horizontal or vertical spacing between the cells of the patterng.
Typst supports the most common pattern type of tiled patterns, where a pattern is repeated in a grid-like fashion, covering the entire area of an element that is filled or stroked. The pattern is defined by a tile size and a body defining the content of each cell. You can also add horizontal or vertical spacing between the cells of the pattern.

#code(```typ
#let pat = tiling(size: (30pt, 30pt))[
Expand Down
22 changes: 11 additions & 11 deletions src/tutorial/reference-math-symbols.typ
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
[$prec.eq$], [`prec.eq`], [$succ.eq$], [`succ.eq`], [$tilde.eq$], [`tilde.eq`],
[$subset$], [`subset`], [$supset$], [`supset`], [$approx$], [`approx`],
[$subset.eq$], [`subset.eq`], [$supset.eq$], [`supset.eq`], [$tilde.equiv$], [`tilde.equiv`],
[$subset.sq$], [`subset.sq`], [$supset.sq$], [`supset.sq`], [$join$], [`join`],
[$subset.sq$], [`subset.sq`], [$supset.sq$], [`supset.sq`], [$bowtie.big$], [`bowtie.big`],
[$subset.eq.sq$], [`subset.eq.sq`], [$supset.eq.sq$], [`supset.eq.sq`], [$$], [``],
[$in$], [`in`], [$in.rev$], [`in.rev`], [$prop$], [`prop`],
[$tack.r$], [`tack.r`], [$tack.l$], [`tack.l`], [$tack.r.double$], [`tack.r.double`],
[$tack.r$], [`tack.r`], [$tack.l$], [`tack.l`], [$tack.rr$], [`tack.rr`],
[$divides$], [`divides`], [$parallel$], [`parallel`], [$tack.t$], [`tack.t`],
[$:$], [`:`], [$in.not$], [`in.not`], [$!=$], [`!=, eq.not`],
),
Expand All @@ -74,23 +74,23 @@
table(
columns: 6,
[$+$], [`+, plus`], [$-$], [`-, minus`], [$$], [``],
[$plus.minus$], [`plus.minus`], [$minus.plus$], [`minus.plus`], [$lt.tri$], [`lt.tri`],
[$dot$], [`dot`], [$div$], [`div`], [$gt.tri$], [`gt.tri`],
[$plus.minus$], [`plus.minus`], [$minus.plus$], [`minus.plus`], [$lt.closed$], [`lt.closed`],
[$dot$], [`dot`], [$div$], [`div`], [$gt.closed$], [`gt.closed`],
[$times$], [`times`], [$without$], [`without`], [$star$], [`star`],
[$union$], [`union`], [$inter$], [`inter`], [$*$], [`*`],
[$union.sq$], [`union.sq`], [$inter.sq$], [`inter.sq`], [$circle.stroked.tiny$], [`circle.stroked.tiny`],
[$or$], [`or`], [$and$], [`and`], [$bullet$], [`bullet`],
[$xor$], [`xor`], [$minus.circle$], [`minus.circle`], [$dot.circle$], [`dot.circle`],
[$union.plus$], [`union.plus`], [$times.circle$], [`times.circle`], [$circle.big$], [`circle.big`],
[$xor$], [`xor`], [$minus.o$], [`minus.o`], [$dot.o$], [`dot.o`],
[$union.plus$], [`union.plus`], [$times.o$], [`times.o`], [$circle.big$], [`circle.big`],
[$product.co$],
[`product.co`],
[$triangle.stroked.t$],
[`triangle.stroked.t`],
[$triangle.stroked.b$],
[`triangle.stroked.b`],

[$dagger$], [`dagger`], [$lt.tri$], [`lt.tri`], [$gt.tri$], [`gt.tri`],
[$dagger.double$], [`dagger.double`], [$lt.tri.eq$], [`lt.tri.eq`], [$gt.tri.eq$], [`gt.tri.eq`],
[$dagger$], [`dagger`], [$lt.closed$], [`lt.closed`], [$gt.closed$], [`gt.closed`],
[$dagger.double$], [`dagger.double`], [$lt.closed.eq$], [`lt.closed.eq`], [$gt.closed.eq$], [`gt.closed.eq`],
[$wreath$], [`wreath`],
),
caption: [二元运算符],
Expand All @@ -102,8 +102,8 @@
[$sum$], [`sum`], [$union.big$], [`union.big`], [$or.big$], [`or.big`],
[$product$], [`product`], [$inter.big$], [`inter.big`], [$and.big$], [`and.big`],
[$product.co$], [`product.co`], [$union.sq.big$], [`union.sq.big`], [$union.plus.big$], [`union.plus.big`],
[$integral$], [`integral`], [$integral.cont$], [`integral.cont`], [$dot.circle.big$], [`dot.circle.big`],
[$plus.circle.big$], [`plus.circle.big`], [$times.circle.big$], [`times.circle.big`],
[$integral$], [`integral`], [$integral.cont$], [`integral.cont`], [$dot.o.big$], [`dot.o.big`],
[$plus.o.big$], [`plus.o.big`], [$times.o.big$], [`times.o.big`],
),
caption: [「大」运算符],
)
Expand Down Expand Up @@ -135,7 +135,7 @@
table(
columns: 6,
[$dots$], [`dots`], [$dots.c$], [`dots.c`], [$dots.v$], [`dots.v`],
[$dots.down$], [`dots.down`], [$planck.reduce$], [`planck.reduce`], [$dotless.i$], [`dotless.i`],
[$dots.down$], [`dots.down`], [$planck$], [`planck`], [$dotless.i$], [`dotless.i`],
[$dotless.j$], [`dotless.j`], [$ell$], [`ell`], [$Re$], [`Re`],
[$Im$], [`Im`], [$aleph$], [`aleph`], [$forall$], [`forall`],
[$exists$], [`exists`], [$Omega.inv$], [`Omega.inv`], [$partial$], [`partial`],
Expand Down
2 changes: 1 addition & 1 deletion src/tutorial/scripting-shape.typ
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Typst较LaTeX的一个有趣的特色是内置了很多方法对颜色进行计
Typst不仅支持颜色填充,还支持按照固定的模式将其他图形对元素进行填充。例如下面的pat定义了一个长为`61.8pt`,宽为`50pt`的图形。将其填充进一个矩形中,填充图形从左至右,从上至下布满矩形内容中。

#code(```typ
#let pat = pattern(size: (61.8pt, 50pt))[
#let pat = tiling(size: (61.8pt, 50pt))[
#place(line(start: (0%, 0%), end: (100%, 100%)))
#place(line(start: (0%, 100%), end: (100%, 0%)))
]
Expand Down