インライン数式プラグイン「&eq(〜);」「$eq(〜){{〜}}」
インライン数式では、Latexのインライン数式環境($〜$)に引数を代入して数式画像を生成しています。
&eq(x = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2a});
){{{ \frac{df}{dx} \equiv \lim_{\varDelta x \to 0} \frac{f(x + \varDelta x) - f(x
/home/limg/www/LimgWiki/eq! File ended while scanning use of \inlineframe.
\par
<*> eq-ni-0097b3a5b77fe1b9f0df53e0a687681c.tex
$eq(){{{
\frac{df}{dx}
\equiv \lim_{\varDelta x \to 0}
\frac{f(x + \varDelta x) - f(x)}{\varDelta x}
}}}
ブロック数式プラグイン「#eq(〜){{〜}}」
ブロック数式では、Latexのalign 環境に引数を代入して数式画像を生成しています。
&eq(数式); #eq{数式}
#eq{{{{
e^{\pi i}=-1
}}}}
拡張コマンド
インライン数式、ブロック数式を問わず、デフォルトでは msmath、amssymb、bmパッケージを適応しています。また、以下の独自コマンドを定義しています。
分数・微分・ルート
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| | \newcommand{\disp}[1]{{\displaystyle {#1}}}
\newcommand{\pr}{\partial}
\newcommand{\dl}{\delta}
\newcommand{\Dl}{\varDelta}
\newcommand{\ff} [2]{\frac{\,{#1}\,}{\,{#2}\,}}
\newcommand{\dd} [2]{\frac{\,d{#1}\,}{\,d{#2}\,}}
\newcommand{\pp} [2]{\frac{\,\pr{#1}\,}{\,\pr{#2}\,}}
\newcommand{\ffd}[2]{\disp{\ff{\disp{#1}\mathstrut}{\disp{#2}\mathstrut}}}
\newcommand{\ddd}[2]{\disp{\dd{\disp{#1}\mathstrut}{\disp{#2}\mathstrut}}}
\newcommand{\ppd}[2]{\disp{\pp{\disp{#1}\mathstrut}{\disp{#2}\mathstrut}}}
\newcommand{\rt}[2][{\;\;}]{\sqrt[#1]{#2\,}}
|
#eq(){{{{
\phantom{\textit{vs.} \hspace{1em}}
x = \ffd{-b \pm \rt{b^2 - 4 a c}}{2a}
; \hspace{2em}
\ddd{f}{x} \equiv \! \lim_{\Dl x \to 0} \! \ffd{f(x + \Dl x) - f(x)}{\Dl x}
\\ \textit{vs.} \hspace{1em}
x = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2a}
; \hspace{2em}
\frac{df}{dx} \equiv \! \lim_{\varDelta x \to 0} \! \frac{f(x + \varDelta x) - f(x)}{\varDelta x}
}}}}
ベクトル・テンソル
1
2
3
4
5
| | \renewcommand{\b}[1]{{\bm {#1}}}
\newcommand{\sx}{ {\bm \cdot} } \newcommand{\vx}{ \! \times \! } \newcommand{\wx}{ \! \wedge \! } \newcommand{\tx}{ \! \otimes \! }
|