数式 ---- 数式モード ~~~~~~~~~~ ANGEL でも、TeXや LaTeXと同じような多彩な数式表現が とれます。 ANGEL では、LaTeXのような数式モードはありません。 以下に説明する命令は、LaTeXでは、数式モードでしか使えないものが ほとんどですが、ANGEL では、そのまま普通のモードで使えます。 ただし、ANGEL でも ``$   $`` ではさまれる数式モードは、 準備してあります。 ``$   $`` ではさまれた部分では、英文字が斜体になり、 ``=, -, +`` などの記号がシンボルの書体に自動変更され、 数式としての体裁を良くします。 空白制御 ~~~~~~~~ ANGEL の数式モードでは、普通のモードでもそうですが、半角の空白は ``\`` で始る特殊命令の後の半角空白を除いて、 実際の半角空白として扱います。 しかしながら、細かな空白の制御のために、 LaTeXと同様な空白制御命令があります。 .. list-table:: 空白制御命令 :name: table-ref-math-spacing :align: center :class: image-table * - .. image:: assets/fon008.png :width: 430pt :class: responsive-figure :math:`^1` ``\quad`` は、本文に10ポイントの文字を 使っているなら10ポイントのアキを入れることです。 添え字 ~~~~~~ 下添え字は、\ ``_`` 記号、上添え字は、\ ``^`` 記号に 続けて書きます。添え字が1文字でないときは、\ ``{   }`` で 囲みます。上付きと下付きを同時に使うこともできます。 また、何重にも付けることができます。 分数 ~~~~ 分数の書式は、LaTeXと同じで ``\frac{  }{  }`` を 使います。第1引数に分子を、第2引数に分母を指定します。 この命令は、LaTeXの別行立ての分数に対応します。 LaTeXの本文中ですと、この分数は小さな文字で出力されます。 ANGEL では、この区別がありませんので、小さい文字で出力される 分数表現を ``\fracs{  }{  }`` としています。 以下に例題の入力と出力を示します。 .. list-table:: 分数 :name: table-ref-fractions :align: center :class: image-table * - .. image:: assets/fon009.png :width: 483.5pt :class: responsive-figure 平方根 ~~~~~~ 平方根を表すには ``\sqrt`` という命令を用います。 例えば :math:`\sqrt{x}` と出力するには、\ ``\sqrt{x}`` と 記述します。 x の部分に長い数式を入れても自動的に伸張します。 しかしながら、 ANGEL の場合、LaTeXと違って平方根の記号は上下に伸びません。 従って、分数や添え字の大きいものは平方根記号からはみ出してしまいます。 .. list-table:: 平方根 :name: table-ref-square-roots :align: center :class: image-table * - .. image:: assets/fon024.png :width: 483.5pt :class: responsive-figure ギリシャ文字 ~~~~~~~~~~~~ 数式では良くギリシャ文字が用いられますが、以下のギリシャ文字は ANGEL の場合何処でも使えます。 .. list-table:: ギリシャ小文字 :name: table-ref-greek-lowercase :align: center :class: image-table * - .. image:: assets/fon010.png :width: 483.5pt :class: responsive-figure 一部のギリシャ小文字 には、異書体が存在しています。 .. list-table:: ギリシャ小文字の異体文字 :name: table-ref-greek-variants :align: center :class: image-table * - .. image:: assets/fon011.png :width: 483.5pt :class: responsive-figure ギリシャ文字の大文字 を出力する命令は、\ ``\`` に 続く英語名の先頭を大文字にしたものです。 .. list-table:: ギリシャ大文字 :name: table-ref-greek-uppercase :align: center :class: image-table * - .. image:: assets/fon012.png :width: 483.5pt :class: responsive-figure 数式アクセント ~~~~~~~~~~~~~~ ANGEL では、LaTeXと同じ数式モードがありませんので、 通常のアクセント命令も使えます。 また、以下の LaTeXの数式モードの数式アクセントも使えます。 ここでは、\ :math:`a` にアクセントを付ける例を示します。 .. list-table:: 数式アクセント :name: table-ref-math-accents :align: center :class: image-table * - .. image:: assets/fon013.png :width: 483.5pt :class: responsive-figure また、次のような大きな数式アクセントもあります。 .. list-table:: 大きな数式アクセント :name: table-ref-wide-math-accents :align: center :class: image-table * - .. image:: assets/fon014.png :width: 483.5pt :class: responsive-figure 数学ルビ ~~~~~~~~ | 矢印の上に変数名を入れたり、等号の下に記号を入れたりする時に使います。 書式と働きは、漢字ルビとほぼ同じです。 .. container:: minipage angel-doublebox | ``\mathop{ 第1引数 }``\ ``^``\ ``{ 第2引数 }`` | ``\mathop{ 第1引数 }``\ ``_``\ ``{ 第2引数 }`` | ``^`` を使ったほうが、第1引数の上中央に第2引数が入ります。 ``_`` は第1引数の下中央に第2引数が入ります。 以下に例題を示します。 .. list-table:: 数学ルビ :name: table-ref-math-ruby :align: center :class: image-table * - .. image:: assets/fon025.png :width: 435pt :class: responsive-figure 2項演算子 ~~~~~~~~~ 足し算、引き算の記号の仲間です。 .. list-table:: 2項演算子 :name: table-ref-binary-operators :align: center :class: image-table * - .. image:: assets/fon015.png :width: 483.5pt :class: responsive-figure 関係演算子 ~~~~~~~~~~ 等号 :math:`=`\ 、不等号 :math:`<, >` の仲間です。 .. list-table:: 関係演算子 :name: table-ref-relations :align: center :class: image-table * - .. image:: assets/fon016.png :width: 483.5pt :class: responsive-figure 数学記号 ~~~~~~~~ プランク定数の :math:`\hbar`\ 、無限大 :math:`\infty`\ 、空集合 :math:`\emptyset` 等の 数学記号です。 .. list-table:: 数学記号 :name: table-ref-math-symbols :align: center :class: image-table * - .. image:: assets/fon017.png :width: 483.5pt :class: responsive-figure 矢印類 ~~~~~~ .. list-table:: 矢印類 :name: table-ref-arrows :align: center :class: image-table * - .. image:: assets/fon018.png :width: 483.5pt :class: responsive-figure 数学関数 ~~~~~~~~ :math:`\log x` と出力するつもりで ``$log x$`` と書くと :math:`log x` のような 見苦しい出力になってしまいます。正しくは ``\log`` という 命令を使って ``$\log x$`` と書きます。 そのような数学関数です。 .. list-table:: 数学関数 :name: table-ref-math-functions :align: center :class: image-table * - .. image:: assets/fon019.png :width: 483.5pt :class: responsive-figure 大きな数学記号 ~~~~~~~~~~~~~~ 和の記号など、大きな数学記号の場合には、記号の上下に 添え字が入る場合があります。添え字が上下に綺麗に入るものに 次に示すものがあります。それぞれの命令の最後に ``s`` がついたものが、 LaTeXでいう本文中で使用した時にあたります。 .. list-table:: 大きな数学記号 :name: table-ref-large-symbols :align: center :class: image-table * - .. image:: assets/fon020.png :width: 483.5pt :class: responsive-figure 積分記号 ~~~~~~~~ 積分記号は、3種類の大きさがあります。 .. list-table:: 積分記号 :name: table-ref-integrals :align: center :class: image-table * - .. image:: assets/fon021.png :width: 483.5pt :class: responsive-figure 括弧と区切り記号 ~~~~~~~~~~~~~~~~ .. list-table:: 括弧と区切り記号 :name: table-ref-delimiters :align: center :class: image-table * - .. image:: assets/fon022.png :width: 483.5pt :class: responsive-figure 以下の括弧は3種類の大きさがあります。 .. list-table:: 大きな括弧 :name: table-ref-large-delimiters :align: center :class: image-table * - .. image:: assets/fon023.png :width: 483.5pt :class: responsive-figure