Skip to content

Commit f8d51ad

Browse files
dev: minor changes
1 parent 5a0b920 commit f8d51ad

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/tutorial/latex-look.typ

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
)
88
set text(font: "New Computer Modern")
99
show raw: set text(font: "New Computer Modern Mono")
10-
show par: set block(spacing: 0.55em)
10+
show par: set par(spacing: 0.55em)
1111
show heading: set block(
1212
above: 1.4em,
1313
below: 1em,

src/tutorial/reference-color.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ A gradient can be used for the following purposes:
131131

132132
== 填充模式
133133

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

136136
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.
137137

138138
#code(```typ
139-
#let pat = pattern(size: (30pt, 30pt))[
139+
#let pat = tiling(size: (30pt, 30pt))[
140140
#place(line(start: (0%, 0%), end: (100%, 100%)))
141141
#place(line(start: (0%, 100%), end: (100%, 0%)))
142142
]

0 commit comments

Comments
 (0)