usage: eqn [ -rvDCNR ] -dxx -fn -sn -pn -mn -Mdir -Ts [ files ... ]
usage: eqn [ -rvDCNR ] -dxx -fn -sn -pn -mn -Mdir -Ts [ files ... ]
EQN(1) EQN(1) 名称 eqn - troff 用の数式フォーマッタ 書式 eqn [ -rvCNR ] [ -dcc ] [ -Tname ] [ -Mdir ] [ -fF ] [ -sn ] [ -pn ] [ -mn ] [ files... ] コマンドラインオプションとパラメータの間に、空白を置くことが可能です。 解説 本マニュアルでは、groff ドキュメントフォーマットシステムの一部 で あ る GNU バージョンの eqn について記述します。 eqn は、 troff への入力ファイ ルに埋め込まれている数式に関する記述をコンパイルし、 troff が解釈できる 命令列に変換します。通常、 groff に -e オプションを指定することで、本プ ログラムは実行されます。文法は UNIX の eqn ととても似かよっ て い ま す 。GNU eqn の出力は UNIX の troff で処理できないので、 GNU troff を用い る必要があります。コマンドラインにファイル名が指定されなかった場合は 、 標準入力から読み込みます。ファイル名として - を指定した場合も標準入力か ら読み込みます。 eqn は、まず -M オプションで指定 さ れ た デ ィ レ ク ト リ を 、 次 に /usr/share/tmac, /usr/share/tmac を 、 最 後に標準マクロディレクトリ /usr/share/tmac (訳注: 重複していますが原文通りです) から eqnrc を検 索 し 、 もし存在すれば入力ファイルの処理に先がけて読み込みを行います。 -R オプションを使うことにより、この動作を禁止できます。 GNU eqn は neqn の機能のすべてを提供するものではありません。低解像度 の タ イプライタのような機器を (単純な入力に対しては十分であるのですが) サ ポートしません。 オプション -C 直後に空白文字や改行ではない文字が続く .EQ と .EN を解釈します。 -N 区切り文字から次の区切り文字までの間に改行がくることを禁止します 。誤って閉じる方の区切り文字をつけ忘れた場合も、以降の処理が正し く行われる可能性が高くなります。 -v バージョン番号を表示します。 -r サイズを 1 つだけ縮小します。 -mn 最低のポイントサイズを n とします。 eqn は下付き、上付き文字を n より小さなサイズにしません。 -Tname name で指定された機器用の出力を行います。実際は、 name という 値 1 のマクロが定義されるだけです。普通は eqnrc でこの定義されたマ クロによって出力機器にふさわしい設定がなされます。デフォルトの出 力機器は ps です。 -Mdir デフォルトのディレクトリ /usr/share/tmac よりも先に指定したディ レクトリ dir の eqnrc を探します。 -R eqnrc ファイルを読み込みません。 -fF gfont F コマンドと等価です。 -sn gsize n コマンドと等価です。このオプションは使うべきではありませ ん 。 eqn は、通常、数式が登場した位置のポイントサイズに数式のサ イズをあわせます。 -pn 上付き、下付き文字が隣接するテキストより n ポイント小さくなる よ う にします。このオプションは使うべきではありません。通常 eqn は 隣接するテキストの 70% のサイズになるように調節します。 使用法 ここでは、GNU eqn と Unix eqn の違いのみを解説します。 GNU eqn の新しい特徴のほとんどは、TeX に基づいています。以下には、い く つかの TeX と GNU eqn の違いを記述してあります。もし、あなたが TeX を知 らないならば、無視した方が安全でしょう。 自動スペーシング eqn は、数式の中の部分それぞれに対して型を与えて、その型を用いて数式 の 中の部分の間の間隔をそろえます。利用できる型には以下のものがあります。 ordinary 1や x のような通常の文字 operator Σ のような大きな演算記号 binary + のような、2 項演算子 relation = のような関係記号 opening ( のような括弧開始記号 closing )のような括弧終了記号 punctuation , のような句読点記号 inner 括弧内部に含まれた部分式 suppress オートマチックスペーシングによる位置補正を抑制する 式の中の項の型は、以下に示す 2 つの方法のどちらかで指定されます。 type t e 式 の中の項で e を含むものを、型 t であると指定します。 t は、上 述の型の中から指定します。たとえば、 times は type "binary" \(mu と定義されます。マクロ展開を防ぐためにクォーティングする以外は、 型の名前はクォートする必要はありません。 chartype t text クォートされていない文字のグループは、個々の文字に分割され、それ ぞれの文字の型が検索されます。この変更で、各文字について、それぞ れ 格納されている文字の型が変更されます。この指定方法では、 text にある文字は、型 t を持つようになります。例えば chartype "punctuation" .,;: という指定は、 .,;: という文字が、それぞれに句読点記号型を持つこ とを指定します。以後、式の中にこれらの文字が出現した場合は、句読 点記号として処理されます。型 t は、 letter や digit という指定も 可能です。この場合 chartype は、文字のフォントの型を変更します。 詳細は、フォントサブセクションを見て下さい。 新しいプリミティブ e1 smallover e2 これは over と似ています; smallover は e1 および e2 のサイズを小 さくします; また e1 および e2 と分数の線との間の垂直幅も小さくな ります。 over プリミティブは TeX のディスプレイスタイルの \over プ リ ミティブに対応します; smallover は非ディスプレイスタイルの \over に対応します。 vcenter e e を数式軸 (math axis) にあわせて垂直方向にセンタリングします 。 数式軸は垂直位置であり、これにあわせて + や - といった文字はセン タリングされます; また分数の線の垂直位置にもなります。例え ば 、 sum はこのように定義されています。 { type "operator" vcenter size +5 \(*S } e1 accent e2 e2 を e1 上のアクセントとします。 e2 は小文字のレターに対して適 正な高さにあると仮定します; e2 は、 e1 が小文字のレターよりも 文 字の高さが高かったり低かったりする場合には、必要に応じて下方に移 動されます。例えば hat はこのように定義されています。 accent { "^" } dotdot, dot, tilde, vec, dyad も accent プリミティブを用いて定義 されています。 e1 uaccent e2 e2 を e1 下のアクセントとします。 e2 は下に突き出ていない小文字 に対して適正な高さにあると仮定します; e2 は、 e1 が下に突き出 し て いる場合、下方に移動されます。 utilde は uaccent を使用して定 義されており、ベースライン下の tilde アクセントとなります。 split "text" 単なる text と同じ効果ですが、 text はクォートされているためマクロ展開の対象 と なりません; text は個々の文字に分割され、それぞれの文字の間に 空白が調整されます。 nosplit text "text" と同じですが、 text はクォートされていないためマクロ展開の対象と な ります; text は個々の文字に分割されず、それぞれの文字の間の空 白も調整されません。 e opprime prime の変形であり、 e のオペレ ー タ と し て 作 用 し ま す 。 A opprime sub 1 のような場合、 opprinme は prime とは異なる結果 となります: opprime では 1 は prime 文字の真下に挿入され、 A の 下付き文字となります (数式版組の形式のように)。一方、 prime では 1 は prime 文字の下付き文字となります。 opprime が前に付くという 事 は 、 bar と under が前に付くのと同じ事ですが、後者は accent, uaccent 以外の他の全ての文字よりも高くなります。クォートされてい ないテキスト中では、最初の文字ではない ’ は opprime として扱われ ます。 special text e troff(1) マクロ text を使用して、 e から新しいオブジェクトを生成 し ます。マクロが呼び出されると、文字列 0s は e の出力を保持しま す。また数字レジスタ 0w, 0h, 0d, 0skern, 0skew はそれぞれ e の幅 、高さ、深さ、下付き文字のカーニング、スキューを保持します (オブ ジェクトの subscript kern とは、オブジェクト中の下付き文字がどの 程度挿入されるかを表します; オブジェクトの skew とは、オブジェク ト上のアクセントがオブジェクトの中央から右側に向けてどの程度離れ て 配置されるかを表します)。マクロは 0s を修正することにより、現 在位置における望ましい結果を出力し、このオブジェクトの幅の分だけ 現在の水平位置を増加させます。数字レジスタは、結果に対応するよう に修正されている必要があります。 例えば、数式を ‘打ち消す’ 構造を、斜め線を数式上に描く事によって 実現する場合を考えて見ましょう。 .EQ define cancel ’special Ca’ .EN .de Ca .ds 0s \Z’\\*(0s’\v’\\n(0du’\D’l \\n(0wu -\\n(0hu-\\n(0du’\v’\\n(0hu’ .. 以 上の結果から、式 e を cancel { e } によって打ち消すことができ ます。 次はより複雑な構造により、式の周りに箱を描きます: .EQ define box ’special Bx’ .EN .de Bx .ds 0s \Z’\h’1n’\\*(0s’\ \Z’\v’\\n(0du+1n’\D’l \\n(0wu+2n 0’\D’l 0 -\\n(0hu-\\n(0du-2n’\ \D’l -\\n(0wu-2n 0’\D’l 0 \\n(0hu+\\n(0du+2n’’\h’\\n(0wu+2n’ .nr 0w +2n .nr 0d +1n .nr 0h +1n .. カスタマイズ 数式の外見は多くのパラメータにより制御します。これらのパラメータは set コマンドで設定します。 set p n パラメータ p を値 n に設定します; n は整数です。例えば、 set x_height 45 は、 eqn に対して x の高さは 0.45 em であると指示します。 パラメータを以下に示します。特に記述が無い場合は、値は em の 100 分の 1 を意味します。以下の記述は定義的ではなく説明的になるよ う に意図しています。 minimum_size eqn はこれよりも小さいポイントサイズのセ ッティングを行いません。値はポイントで指 定します。 fat_offset fat プリミティブは数式をボールドにするた めに、数式のコピーを 2 回重ね打ちしま す 。重ね打ちする時にずらす水平幅がこの値で す。 over_hang 分数の線の長さは、分子もしくは分母の広い 方 の幅にこの値を 2 倍した長さを加えた長 さとなります; 言い替えると、分子と分母は 少なくともこの値だけオーバハングします。 accent_width bar か under が単一文字に対して適用さ れ た場合、線の長さはこの値となります。通常 、 bar および under は適用対象のオブジェ クトの幅に等しい長さの線を生成します; し かし単一文字の場合、これでは大抵の場合線 が長すぎるように見えてしまいます。 delimiter_factor left および right プリミティブにより生成 される伸長性のあるデリミタは高さと深さを 持ちます。デリミタが括っている部分式が軸 に対して最大限伸長する長さの 2000 分の 1 を単位とするこのパラメータで表した値は、 デリミタの高さと深さの最低値を与えます。 delimiter_shortfall left および right プリミティブにより生成 される伸長性のあるデリミタは高さと深さを 持ちます。デリミタが括っている部分式が軸 に対して最大限伸長する長さの 2000 分の 1 を単位とするこのパラメータで表した値は、 デリミタの高さと深さの差の最低値となりま す。 null_delimiter_space 分数の前後にこれだけの水平空白が挿入され ます。 script_space 下付き文字、上付き文字の幅がこれだけ増や されます。 thin_space 句読点記号の後にこれだけの空白が自動的に 挿入されます。 medium_space 2 項演算子の前後にこれだけの空白が自動的 に挿入されます。 thick_space 関係演算子の前後にこれだけの空白が自動的 に挿入されます。 x_height x のように上に突き出た部分の無いレターの 高さ。 axis_height + や − といった文字のセンタ位置がベース ラインに対してどれくらい高いかを表します 。使用しているフォントに対して適切な値を 使用する事が重要です。 default_rule_thickness \(ru 文字の太さ、 \D エスケープシーケ ン スにより生成される水平線の太さを指定しま す。 num1 over コマンドは分子を最低この値だけ上 に 移動します。 num2 smallover コマンドは分子を最低この値だけ 上に移動します。 denom1 over コマンドは分母を最低この値だけ下 に 移動します。 denom2 smallover コマンドは分母を最低この値だけ 下に移動します。 sup1 通常上付き文字は最低この値だけ上に移動し ます。 sup2 上付き文字中もしくは上限中の上付き文字、 もしくは smallover における分子は、最 低 こ の 値だけ上に移動します。この値は通常 sup1 より小さいです。 sup3 分母中もしくは平方根中の上付き文字、もし くは下付き文字もしくは下限は、最低この値 だけ上に移動します。通常 sup2 より小さい です。 sub1 通常下付き文字は最低この値だけ下に移動し ます。 sub2 下付き文字と上付き文字の両方がある場合、 下付き文字は最低この値だけ下に移動します 。 sup_drop 上付き文字のベースラインは、上付き文字が セットされるオブジェクトの上部に対して、 この値よりも下になることはありません。 sub_drop 下付き文字のベースラインは、下付き文字が セットされるオブジェクトの下部に対して、 少なくともこの値よりも下になります。 big_op_spacing1 上限のベースラインは、上限がセットされる オブジェクトの上部に対して少なくともこの 値よりも上になります。 big_op_spacing2 下限のベースラインは、下限がセットされる オブジェクトの下部に対して少なくともこの 値よりも下になります。 big_op_spacing3 上限の下部は、上限がセットされるオブジェ クトの上部に対して少なくともこの値よりも 上になります。 big_op_spacing4 下限の上部は、下限がセットされるオブジェ クトの下部に対して少なくともこの値よりも 下になります。 big_op_spacing5 これで指定される空白が上限上および下限下 に付加されます。 baseline_sep 列ベクトルまたは行列の各行のベースライン がどれだけ離れているかを指定します。大抵 の場合、この値は num1 と denom1 の和に等 しいです。 shift_down 列ベクトルまたは行列の一番上のベースライ ンおよび一番下のベースラインの中間点が、 軸からどれだけ下がっているかを指定します 。 大抵の場合、この値は axis_height に等 しいです。 column_sep 行列の列間に加えられる空白の長さを指定し ます。 matrix_side_sep 行列の両端に加えられる空白の長さを指定し ます。 draw_lines この値が非0の場合、線を引く場合に \D エ スケープシーケンスを使用し、 \l エスケー プシーケンスと \(ru 文字は使用しなくなり ます。 body_height この値を式の高さが越えた分だけ、当該式を 含む行の前の空白に加えられます ( \xを 使 用します)。デフォルト値は 85 です。 body_depth この値を式の深さが越えた分だけ、当該式を 含む行の後の空白に加えられます ( \xを 使 用します)。デフォルト値は 35 です。 nroff こ の 値 が非 0 の場合には、 ndefine は define のように振舞い、 tdefine は無視さ れ ま す。この値が 0 の場合は tdefine は define のように振舞い、 ndefine は無視さ れ ます。デフォルト値は 0 です (典型的に は eqnrc ファイル に よ っ て 、 ascii, latin1, utf8, cp1047 デバイスの場合、こ の値は 1 に変更されます)。 これらのパラメータの役割に関するより正確な記述は The TeXbook の Appendix H に記載されています。 マクロ マ クロは引数を取ることができます。マクロが引数付きで呼ばれた場合、マク ロボディでは、 $n ただし n は 1 から 9 は、 n番目の引数に置き換えられま す; 引数が n より少ない場合、無と置き換えられます。左括弧を含む語で、左 括弧より前の語の部分が define コマンドで定義されている語は、引数付き の マ クロ呼び出しとして認識されます; 左括弧に続く複数の文字は、対応する右 括弧の範囲まで、コンマで区切られた引数として扱われます; ネストした括 弧 内のコンマでは引数は区切られません。 sdefine name X anything X define コマンドに似ていますが、引数付きで呼ばれた場合 name は認 識されません。 include "file" file の内容を組み込みます。 file 中の行で、 .EQ もしくは .EN で 始まる行は無視されます。 ifdef name X anything X name が define で定義されている場合 (または name が出力デバイス であるために自動的に定義されている場合)、 anything を処理します; そ うでない場合は anything を無視します。 X は anything に含まれ ない文字であれば何でも構いません。 フォント eqn は通常少なくとも 2 つのフォントを式のセットに使用します: すなわち、 レターにはイタリックを、その他にはローマンを使用します。既存の gfont コ マンドは、イタリックフォントとして使用されるフォントを変更します。デ フ ォ ル ト 値 は I です。ローマンフォントとして使用されるフォントは新しい grfont コマンドで変更します。 grfont f ローマンフォントを f に設定します。 italic プリミティブは gfont によってセットされた現在のイタリックフォ ン ト を使用します; roman プリミティブは grfont によってセットされた現在の ローマンフォントを使用します。また gbfont コマンドという新しいコマン ド も あり、 bold プリミティブで使用されるフォントを変更します。式中でフォ ントを変更するのに roman, italic, bold プリミティブしか使用しない場合、 全ての式中のフォントを変更するのには gfont, grfont, gbfont コマンドを使 用するだけで済みます。 どの文字をレター (イタリックでセットされるもの) として扱うのかを、既 に 示 した chartype コマンドで指定できます。 letter タイプは文字をイタリッ クタイプでセットされるようにします。 digit タイプは文字をローマンタイプ でセットされるようにします、 関連ファイル /usr/share/tmac/eqnrc 初期化ファイル バグ 文中に出現する式は、行の先頭での文字サイズに設定されます。 関連項目 groff(1), troff(1), groff_font(5), The TeXbook Groff Version 1.17.2 6 August 2001 EQN(1)
EQN(1) EQN(1) NAME eqn - format equations for troff SYNOPSIS eqn [ -rvCNR ] [ -dxy ] [ -Tname ] [ -Mdir ] [ -fF ] [ -sn ] [ -pn ] [ -mn ] [ files... ] It is possible to have whitespace between a command line option and its parameter. DESCRIPTION This manual page describes the GNU version of eqn, which is part of the groff document formatting system. eqn compiles descriptions of equa- tions embedded within troff input files into commands that are under- stood by troff. Normally, it should be invoked using the -e option of groff. The syntax is quite compatible with Unix eqn. The output of GNU eqn cannot be processed with Unix troff; it must be processed with GNU troff. If no files are given on the command line, the standard input will be read. A filename of - will cause the standard input to be read. eqn searches for the file eqnrc in the directories given with the -M option first, then in /usr/lib64/groff/site-tmac, /usr/share/groff/site-tmac, and finally in the standard macro directory /usr/share/groff/1.18.1.4/tmac. If it exists, eqn will process it before the other input files. The -R option prevents this. GNU eqn does not provide the functionality of neqn: it does not support low-resolution, typewriter-like devices (although it may work ade- quately for very simple input). OPTIONS -dxy Specify delimiters x and y for the left and right end, respec- tively, of in-line equations. Any delim statements in the source file overrides this. -C Recognize .EQ and .EN even when followed by a character other than space or newline. -N Don’t allow newlines within delimiters. This option allows eqn to recover better from missing closing delimiters. -v Print the version number. -r Only one size reduction. -mn The minimum point-size is n. eqn will not reduce the size of subscripts or superscripts to a smaller size than n. -Tname The output is for device name. The only effect of this is to define a macro name with a value of 1. Typically eqnrc will use this to provide definitions appropriate for the output device. The default output device is ps. -Mdir Search dir for eqnrc before the default directories. -R Don’t load eqnrc. -fF This is equivalent to a gfont F command. -sn This is equivalent to a gsize n command. This option is depre- cated. eqn will normally set equations at whatever the current point size is when the equation is encountered. -pn This says that subscripts and superscripts should be n points smaller than the surrounding text. This option is deprecated. Normally eqn makes sets subscripts and superscripts at 70% of the size of the surrounding text. USAGE Only the differences between GNU eqn and Unix eqn are described here. Most of the new features of GNU eqn are based on TeX. There are some references to the differences between TeX and GNU eqn below; these may safely be ignored if you do not know TeX. Automatic spacing eqn gives each component of an equation a type, and adjusts the spacing between components using that type. Possible types are: ordinary an ordinary character such as 1 or x; operator a large operator such as Σ; binary a binary operator such as +; relation a relation such as =; opening a opening bracket such as (; closing a closing bracket such as ); punctuation a punctuation character such as ,; inner a subformula contained within brackets; suppress spacing that suppresses automatic spacing adjustment. Components of an equation get a type in one of two ways. type t e This yields an equation component that contains e but that has type t, where t is one of the types mentioned above. For exam- ple, times is defined as type "binary" \(mu The name of the type doesn’t have to be quoted, but quoting pro- tects from macro expansion. chartype t text Unquoted groups of characters are split up into individual char- acters, and the type of each character is looked up; this changes the type that is stored for each character; it says that the characters in text from now on have type t. For example, chartype "punctuation" .,;: would make the characters .,;: have type punctuation whenever they subsequently appeared in an equation. The type t can also be letter or digit; in these cases chartype changes the font type of the characters. See the Fonts subsection. New primitives e1 smallover e2 This is similar to over; smallover reduces the size of e1 and e2; it also puts less vertical space between e1 or e2 and the fraction bar. The over primitive corresponds to the TeX \over primitive in display styles; smallover corresponds to \over in non-display styles. vcenter e This vertically centers e about the math axis. The math axis is the vertical position about which characters such as + and - are centered; also it is the vertical position used for the bar of fractions. For example, sum is defined as { type "operator" vcenter size +5 \(*S } e1 accent e2 This sets e2 as an accent over e1. e2 is assumed to be at the correct height for a lowercase letter; e2 will be moved down according if e1 is taller or shorter than a lowercase letter. For example, hat is defined as accent { "^" } dotdot, dot, tilde, vec and dyad are also defined using the accent primitive. e1 uaccent e2 This sets e2 as an accent under e1. e2 is assumed to be at the correct height for a character without a descender; e2 will be moved down if e1 has a descender. utilde is pre-defined using uaccent as a tilde accent below the baseline. split "text" This has the same effect as simply text but text is not subject to macro expansion because it is quoted; text will be split up and the spacing between individual charac- ters will be adjusted. nosplit text This has the same effect as "text" but because text is not quoted it will be subject to macro expansion; text will not be split up and the spacing between individual characters will not be adjusted. e opprime This is a variant of prime that acts as an operator on e. It produces a different result from prime in a case such as A opprime sub 1: with opprime the 1 will be tucked under the prime as a subscript to the A (as is conventional in mathemati- cal typesetting), whereas with prime the 1 will be a subscript to the prime character. The precedence of opprime is the same as that of bar and under, which is higher than that of every- thing except accent and uaccent. In unquoted text a ’ that is not the first character will be treated like opprime. special text e This constructs a new object from e using a troff(1) macro named text. When the macro is called, the string 0s will contain the output for e, and the number registers 0w, 0h, 0d, 0skern and 0skew will contain the width, height, depth, subscript kern, and skew of e. (The subscript kern of an object says how much a subscript on that object should be tucked in; the skew of an object says how far to the right of the center of the object an accent over the object should be placed.) The macro must modify 0s so that it will output the desired result with its origin at the current point, and increase the current horizontal position by the width of the object. The number registers must also be modified so that they correspond to the result. For example, suppose you wanted a construct that ‘cancels’ an expression by drawing a diagonal line through it. .EQ define cancel ’special Ca’ .EN .de Ca .ds 0s \Z’\\*(0s’\v’\\n(0du’\D’l \\n(0wu -\\n(0hu-\\n(0du’\v’\\n(0hu’ .. Then you could cancel an expression e with cancel { e } Here’s a more complicated construct that draws a box round an expression: .EQ define box ’special Bx’ .EN .de Bx .ds 0s \Z’\h’1n’\\*(0s’\ \Z’\v’\\n(0du+1n’\D’l \\n(0wu+2n 0’\D’l 0 -\\n(0hu-\\n(0du-2n’\ \D’l -\\n(0wu-2n 0’\D’l 0 \\n(0hu+\\n(0du+2n’’\h’\\n(0wu+2n’ .nr 0w +2n .nr 0d +1n .nr 0h +1n .. Customization The appearance of equations is controlled by a large number of parame- ters. These can be set using the set command. set p n This sets parameter p to value n ; n is an integer. For exam- ple, set x_height 45 says that eqn should assume an x height of 0.45 ems. Possible parameters are as follows. Values are in units of hun- dredths of an em unless otherwise stated. These descriptions are intended to be expository rather than definitive. minimum_size eqn will not set anything at a smaller point-size than this. The value is in points. fat_offset The fat primitive emboldens an equation by overprinting two copies of the equa- tion horizontally offset by this amount. over_hang A fraction bar will be longer by twice this amount than the maximum of the widths of the numerator and denominator; in other words, it will overhang the numerator and denominator by at least this amount. accent_width When bar or under is applied to a single character, the line will be this long. Normally, bar or under produces a line whose length is the width of the object to which it applies; in the case of a single character, this tends to produce a line that looks too long. delimiter_factor Extensible delimiters produced with the left and right primitives will have a combined height and depth of at least this many thousandths of twice the maxi- mum amount by which the sub-equation that the delimiters enclose extends away from the axis. delimiter_shortfall Extensible delimiters produced with the left and right primitives will have a combined height and depth not less than the difference of twice the maximum amount by which the sub-equation that the delimiters enclose extends away from the axis and this amount. null_delimiter_space This much horizontal space is inserted on each side of a fraction. script_space The width of subscripts and superscripts is increased by this amount. thin_space This amount of space is automatically inserted after punctuation characters. medium_space This amount of space is automatically inserted on either side of binary opera- tors. thick_space This amount of space is automatically inserted on either side of relations. x_height The height of lowercase letters without ascenders such as x. axis_height The height above the baseline of the center of characters such as + and −. It is important that this value is cor- rect for the font you are using. default_rule_thickness This should set to the thickness of the \(ru character, or the thickness of hor- izontal lines produced with the \D escape sequence. num1 The over command will shift up the numerator by at least this amount. num2 The smallover command will shift up the numerator by at least this amount. denom1 The over command will shift down the denominator by at least this amount. denom2 The smallover command will shift down the denominator by at least this amount. sup1 Normally superscripts will be shifted up by at least this amount. sup2 Superscripts within superscripts or upper limits or numerators of smallover fractions will be shifted up by at least this amount. This is usually less than sup1. sup3 Superscripts within denominators or square roots or subscripts or lower lim- its will be shifted up by at least this amount. This is usually less than sup2. sub1 Subscripts will normally be shifted down by at least this amount. sub2 When there is both a subscript and a superscript, the subscript will be shifted down by at least this amount. sup_drop The baseline of a superscript will be no more than this much amount below the top of the object on which the superscript is set. sub_drop The baseline of a subscript will be at least this much below the bottom of the object on which the subscript is set. big_op_spacing1 The baseline of an upper limit will be at least this much above the top of the object on which the limit is set. big_op_spacing2 The baseline of a lower limit will be at least this much below the bottom of the object on which the limit is set. big_op_spacing3 The bottom of an upper limit will be at least this much above the top of the object on which the limit is set. big_op_spacing4 The top of a lower limit will be at least this much below the bottom of the object on which the limit is set. big_op_spacing5 This much vertical space will be added above and below limits. baseline_sep The baselines of the rows in a pile or matrix will normally be this far apart. In most cases this should be equal to the sum of num1 and denom1. shift_down The midpoint between the top baseline and the bottom baseline in a matrix or pile will be shifted down by this much from the axis. In most cases this should be equal to axis_height. column_sep This much space will be added between columns in a matrix. matrix_side_sep This much space will be added at each side of a matrix. draw_lines If this is non-zero, lines will be drawn using the \D escape sequence, rather than with the \l escape sequence and the \(ru character. body_height The amount by which the height of the equation exceeds this will be added as extra space before the line containing the equation (using \x.) The default value is 85. body_depth The amount by which the depth of the equation exceeds this will be added as extra space after the line containing the equation (using \x.) The default value is 35. nroff If this is non-zero, then ndefine will behave like define and tdefine will be ignored, otherwise tdefine will behave like define and ndefine will be ignored. The default value is 0 (This is typi- cally changed to 1 by the eqnrc file for the ascii, latin1, utf8, and cp1047 devices.) A more precise description of the role of many of these parame- ters can be found in Appendix H of The TeXbook. Macros Macros can take arguments. In a macro body, $n where n is between 1 and 9, will be replaced by the n-th argument if the macro is called with arguments; if there are fewer than n arguments, it will be replaced by nothing. A word containing a left parenthesis where the part of the word before the left parenthesis has been defined using the define command will be recognized as a macro call with arguments; char- acters following the left parenthesis up to a matching right parenthe- sis will be treated as comma-separated arguments; commas inside nested parentheses do not terminate an argument. sdefine name X anything X This is like the define command, but name will not be recognized if called with arguments. include "file" Include the contents of file. Lines of file beginning with .EQ or .EN will be ignored. ifdef name X anything X If name has been defined by define (or has been automatically defined because name is the output device) process anything; otherwise ignore anything. X can be any character not appearing in anything. Fonts eqn normally uses at least two fonts to set an equation: an italic font for letters, and a roman font for everything else. The existing gfont command changes the font that is used as the italic font. By default this is I. The font that is used as the roman font can be changed using the new grfont command. grfont f Set the roman font to f. The italic primitive uses the current italic font set by gfont; the roman primitive uses the current roman font set by grfont. There is also a new gbfont command, which changes the font used by the bold primitive. If you only use the roman, italic and bold primitives to changes fonts within an equation, you can change all the fonts used by your equations just by using gfont, grfont and gbfont commands. You can control which characters are treated as letters (and therefore set in italics) by using the chartype command described above. A type of letter will cause a character to be set in italic type. A type of digit will cause a character to be set in roman type. FILES /usr/share/groff/1.18.1.4/tmac/eqnrc Initialization file. BUGS Inline equations will be set at the point size that is current at the beginning of the input line. SEE ALSO groff(1), troff(1), groff_font(5), The TeXbook Groff Version 1.18.1.4 05 October 2001 EQN(1)
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa