@@ -87,10 +87,22 @@ Typstは、最も一般的な文書要素に対する組み込みのマークア
8787多くの構文要素は式に特有のものです。
8888以下に、コードモードで利用可能なすべての構文の一覧表を示します。
8989
90- | 名称 | 例 | 参照 |
91- | -------------------------- | ----------------------------- | ------------------------------------- |
90+ | 名称 | 例 | 参照 |
91+ | -------------------------- | ----------------------------- | ---------------------------------------- |
92+ | none | ` {none} ` | [ ` none ` ] ( $reference/foundations/none ) |
93+ | 自動 | ` {auto} ` | [ ` auto ` ] ( $reference/foundations/auto ) |
94+ | ブール値 | ` {false} ` , ` {true} ` | [ ` bool ` ] ( $reference/foundations/bool ) |
95+ | 整数 | ` {10} ` , ` {0xff} ` | [ ` int ` ] ( $reference/foundations/int ) |
96+ | 浮動小数点数 | ` {3.14} ` , ` {1e5} ` | [ ` float ` ] ( $reference/foundations/float ) |
97+ | 長さ | ` {2pt} ` , ` {3mm} ` , ` {1em} ` , .. | [ ` length ` ] ( $reference/layout/length ) |
98+ | 角度 | ` {90deg} ` , ` {1rad} ` | [ ` angle ` ] ( $reference/layout/angle ) |
99+ | 比率 | ` {2fr} ` | [ ` fraction ` ] ( $reference/layout/fraction ) |
100+ | 割合 | ` {50%} ` | [ ` ratio ` ] ( $reference/layout/ratio ) |
101+ | 文字列 | ` {"hello"} ` | [ ` str ` ] ( $reference/foundations/str ) |
102+ | ラベル | ` {<intro>} ` | [ ` label ` ] ( $reference/foundations/label ) |
103+ | 数式 | ` [$x^2$] ` | [ Math] ( $category/math ) |
104+ | rawテキスト | `` [`print(1)`] `` | [ ` raw ` ] ( $reference/text/raw ) |
92105| 変数アクセス | ` {x} ` | [ Scripting] ( $scripting/#blocks ) |
93- | 任意のリテラル | ` {1pt, "hey"} ` | [ Types] ( $category/types ) |
94106| コードブロック | ` {{ let x = 1; x + 2 }} ` | [ Scripting] ( $scripting/#blocks ) |
95107| コンテンツブロック | ` {[*Hello*]} ` | [ Scripting] ( $scripting/#blocks ) |
96108| 括弧付き式 | ` {(1 + 2)} ` | [ Scripting] ( $scripting/#blocks ) |
@@ -108,15 +120,15 @@ Typstは、最も一般的な文書要素に対する組み込みのマークア
108120| 名前付き関数 | ` {let f(x) = 2 * x} ` | [ Function] ( $type/$function ) |
109121| setルール | ` {set text(14pt)} ` | [ Styling] ( $styling/#set-rules ) |
110122| set-ifルール | ` {set text(..) if .. } ` | [ Styling] ( $styling/#set-rules ) |
111- | show-setルール | ` {show par : set block(..)} ` | [ Styling] ( $styling/#show-rules ) |
123+ | show-setルール | ` {show heading : set block(..)} ` | [ Styling] ( $styling/#show-rules ) |
112124| 関数付きshowルール | ` {show raw: it => {..}} ` | [ Styling] ( $styling/#show-rules ) |
113125| show-everythingルール | ` {show: columns.with(2)} ` | [ Styling] ( $styling/#show-rules ) |
114126| コンテキスト式 | ` {context text.lang} ` | [ Context] ( $context ) |
115127| 条件式 | ` {if x == 1 {..} else {..}} ` | [ Scripting] ( $scripting/#conditionals ) |
116128| forループ | ` {for x in (1, 2, 3) {..}} ` | [ Scripting] ( $scripting/#loops ) |
117129| whileループ | ` {while x < 10 {..}} ` | [ Scripting] ( $scripting/#loops ) |
118130| ループ制御フロー | ` {break, continue} ` | [ Scripting] ( $scripting/#loops ) |
119- | 関数からのリターン | ` {return x} ` | [ Function] ( $type/$function ) |
131+ | 関数からのリターン | ` {return x} ` | [ Function] ( $type/$function ) |
120132| モジュールをインクルード | ` {include "bar.typ"} ` | [ Scripting] ( $scripting/#modules ) |
121133| モジュールをインポート | ` {import "bar.typ"} ` | [ Scripting] ( $scripting/#modules ) |
122134| モジュールからのインポート | ` {import "bar.typ": a, b, c} ` | [ Scripting] ( $scripting/#modules ) |
0 commit comments