Skip to content

Commit

Permalink
Merge pull request #34 from typst-doc-cn/flaribbit-patch-2
Browse files Browse the repository at this point in the history
Update character-intersperse.md
  • Loading branch information
flaribbit authored Jan 19, 2025
2 parents 45625a8 + 3efe407 commit ca10f3b
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions docs/FAQ/character-intersperse.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,22 @@ tags: [chinese, layout]
#distr("身份证", w: 6em)
#distr("详细地址", w: 6em)
```

另一个在表格里的例子

```typst
#table(
columns: (6em, 1fr), ..(
[甲方],
[你的头],
[承担方],
[怎么尖尖的],
[这里五个字],
[那我问你],
)
.enumerate()
.map(((i, e)) => if calc.even(i) {
e.text.clusters().intersperse(h(1fr)).join()
} else { e })
)
```

0 comments on commit ca10f3b

Please sign in to comment.