Skip to content

Commit 0f67ced

Browse files
committed
fix(typst-page): improve column layout examples and documentation
- Simplify column layout examples with consistent indentation - Remove gutter option (not supported in #set page) - Replace columns() example with note recommending #columns element - Clarify that segment gaps are set via #columns element Closes #166
1 parent 40f2351 commit 0f67ced

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

docs/source/typst/typst-page.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -321,30 +321,26 @@ ISO規格のほかにもJIS規格(日本)、DIN規格(ドイツ)、ANSI
321321
```typst
322322
// 2段組
323323
#set page(
324-
columns: 2,
325-
gutter: 1.5em // 段間の間隔
324+
columns: 2,
326325
)
327326
328327
// 3段組
329328
#set page(
330-
columns: 3,
331-
gutter: 5mm
329+
columns: 3,
332330
)
333331
```
334332

335-
`columns`オプションで段組を変更できます
336-
デフォルトは1段組`columns: 1`)です。
333+
`columns`オプションで段組の数を変更できます
334+
デフォルトは1段`columns: 1`)です。
337335

338-
```typst
339-
// 本文中
340-
#columns(2)[
341-
このコンテンツブロックは2段組
342-
]
336+
:::{seealso}
343337

344-
そのあとの本文はページ設定の段組に戻る
345-
```
338+
`#page`のオプションでは段間を設定できないようです。
339+
段間を調整したい場合は、
340+
[#columns要素](https://typst.app/docs/reference/layout/columns/)
341+
で本文中で段組するほうがよさそうです。
346342

347-
`#columns(段数)`で、本文中に部分的に段組を適用できます。
343+
:::
348344

349345
## 縦置きしたい(``flipped``
350346

0 commit comments

Comments
 (0)