1- Typst has special [ syntax] ( $syntax/#math )  and library functions to typeset
2- mathematical formulas. Math formulas can be displayed inline with text or as
3- separate blocks. They will be typeset into their own block if they start and end
4- with at least one space (e.g. ` [$ x^2 $] ` ).
1+ Typstには数式を組版するための特別な[ 構文] ( $syntax/#math ) とライブラリ関数があります。
2+ 数式は、テキスト中にインラインで、あるいは独立したブロックのいずれかで表示できます。
3+ 始まりと終わりに少なくとも1つの空白がある場合(例えば、` [$ x^2 $] ` )はブロックとして組版されます。
54
6- # Variables  
7- In math, single letters are always displayed as is. Multiple letters, however, 
8- are interpreted as variables and functions. To display multiple letters 
9- verbatim, you can place them into quotes and to access single letter variables, 
10- you can use the  [ hash syntax ] ( $scripting/#expressions ) . 
5+ # 変数  
6+ 数式モードでは1文字は常にそのまま表示されます。 
7+ しかし、複数の文字は変数か関数として解釈されます。 
8+ 複数の文字を文字通りに表示するには引用符で囲んでください。 
9+ 1文字の変数にアクセスしたい場合は [ ハッシュ構文 ] ( $scripting/#expressions ) を使用してください。 
1110
1211``` example 
1312$ A = pi r^2 $ 
@@ -18,39 +17,37 @@ $ cal(A) :=
1817$ #x < 17 $ 
1918``` 
2019
21- # Symbols  
22- Math mode makes a wide selection of [ symbols] ( $category/symbols/sym )  like ` pi ` ,
23- ` dot ` , or ` RR `  available. Many mathematical symbols are available in different
24- variants. You can select between different variants by applying
25- [ modifiers] ( $symbol )  to the symbol. Typst further recognizes a number of
26- shorthand sequences like ` => `  that approximate a symbol. When such a shorthand
27- exists, the symbol's documentation lists it.
20+ # 記号  
21+ 数式モードでは` pi ` 、` dot ` 、` RR ` などのさまざまな[ 記号] ( $category/symbols/sym ) が利用可能です。
22+ 多くの数式記号ではバリアントが利用可能です。
23+ 記号に[ 修飾子] ( $symbol ) を適用することで異なるバリアントを選択できます。
24+ Typstはさらに` => ` のような、記号を近似するいくつかの省略記法を認識します。
25+ そのような省略記法が存在する場合、記号ドキュメントのリストに記載されています。
2826
2927``` example 
3028$ x < y => x gt.eq.not y $ 
3129``` 
3230
33- # Line Breaks  
34- Formulas can also contain line breaks. Each line can contain one or multiple 
35- _ alignment points _  ( ` & ` ) which are then aligned. 
31+ # 改行  
32+ 数式には改行を含めることもできます。 
33+ 各行には、その場所で配置することを指定する、1つまたは複数の  _ 配置点 _ ( ` & ` )を含めることができます。 
3634
3735``` example 
3836$ sum_(k=0)^n k 
3937    &= 1 + ... + n \ 
4038    &= (n(n+1)) / 2 $ 
4139``` 
4240
43- # Function calls  
44- Math mode supports special function calls without the hash prefix. In these 
45- "math calls", the argument list works a little differently than in code: 
41+ # 関数呼び出し  
42+ 数式モードはハッシュプレフィックスを用いない特別な関数呼び出しをサポートしています。 
43+ このような「数式呼び出し」内では、引数リストは以下のとおりコード中とは少し異なる動作をします。 
4644
47- -  Within them, Typst is still in "math mode". Thus, you can write math directly
48-   into them, but need to use hash syntax to pass code expressions (except for
49-   strings, which are available in the math syntax).
50- -  They support positional and named arguments, as well as argument spreading.
51- -  They don't support trailing content blocks.
52- -  They provide additional syntax for 2-dimensional argument lists. The semicolon
53-   (` ; ` ) merges preceding arguments separated by commas into an array argument.
45+ -  その中では、Typstは依然として「数式モード」です。
46+ したがって、その中で数式を直接書くことができますが、コード式を渡すには(数式構文で利用可能なstringを除いて)ハッシュ構文を使う必要があります。
47+ -  位置引数、キーワード引数、引数展開をサポートしています。
48+ -  後続のコンテンツブロックはサポートされていません。
49+ -  2次元引数リストのための追加の構文があります。
50+ セミコロン(` ; ` )はその前のカンマ区切りの引数を配列引数へとマージします。
5451
5552``` example 
5653$ frac(a^2, 2) $ 
@@ -61,22 +58,18 @@ $ lim_x =
6158    op("lim", limits: #true)_x $ 
6259``` 
6360
64- To write a verbatim comma or semicolon in a math call, escape it with a
65- backslash. The colon on the other hand is only recognized in a special way if
66- directly preceded by an identifier, so to display it verbatim in those cases,
67- you can just insert a space before it.
61+ 数式呼び出しでカンマやセミコロンをそのまま書きたい場合は、バックスラッシュを用いてエスケープしてください。
62+ 一方、コロンは識別子の直後にあるときにのみ特別な方法で認識されるため、そのまま表示したい場合は単にその前に空白を挿入してください。
6863
69- Functions calls preceded by a hash are normal code function calls and not
70- affected by these rules.
64+ 前にハッシュがある関数呼び出しは通常のコードの関数呼び出しで、これらの規則に影響されません。
7165
72- # Alignment  
73- When equations include multiple _ alignment points_  (` & ` ), this creates blocks of
74- alternatingly right- and left-aligned columns. In the example below, the
75- expression ` (3x + y) / 7 `  is right-aligned and ` = 9 `  is left-aligned. The word
76- "given" is also left-aligned because ` && `  creates two alignment points in a row,
77- alternating the alignment twice. ` & & `  and ` && `  behave exactly the same way.
78- Meanwhile, "multiply by 7" is right-aligned because just one ` & `  precedes it.
79- Each alignment point simply alternates between right-aligned/left-aligned.
66+ # 配置  
67+ 数式が複数の _ 配置点_ (` & ` )を含む場合、右揃えと左揃えが交互に行われる列のブロックが作成されます。
68+ 以下の例では、` (3x + y) / 7 ` という式は右揃えで、` = 9 ` が左揃えです。
69+ "given"という単語も左揃えです。これは` && ` が行内に2つの配置点を作成し、2回配置方法が切り替わるためです。
70+ ` & & ` と` && ` は全く同じように振る舞います。
71+ 一方、"multiply by 7"は、その前に` & ` がただ1つあるため右揃えです。
72+ 各配置点は単に右揃えと左揃えを交互に切り替えます。
8073
8174``` example 
8275$ (3x + y) / 7 &= 9 && "given" \ 
@@ -85,17 +78,15 @@ $ (3x + y) / 7 &= 9 && "given" \
8578  x &= 21 - y/3 & "divide by 3" $ 
8679``` 
8780
88- # Math fonts  
89- You can set the math font by with a [ show-set rule] ( $styling/#show-rules )  as
90- demonstrated below. Note that only special OpenType math fonts are suitable for
91- typesetting maths.
81+ # 数式フォント  
82+ 以下に示すように、[ show-setルール] ( $styling/#show-rules ) を用いて数式フォントの設定が可能です。
83+ 数式組版に適しているのは一部の特別なOpenType数式フォントのみであることに注意してください。
9284
9385``` example 
9486#show math.equation: set text(font: "Fira Math") 
9587$ sum_(i in NN) 1 + i $ 
9688``` 
9789
98- # Math module  
99- All math functions are part of the ` math `  [ module] ( $scripting/#modules ) , which
100- is available by default in equations. Outside of equations, they can be accessed
101- with the ` math. `  prefix.
90+ # mathモジュール  
91+ 全ての数学関数は、数式中ではデフォルトで利用できる` math ` [ モジュール] ( $scripting/#modules ) に属しています。
92+ 数式外では、` math. ` プレフィックスを付けるとアクセスできます。
0 commit comments