数式プラグイン EditToHeaderToFooter

プラグイン EditToHeaderToFooter

インラインプラグイン「&eq(〜);」「$eq(〜){{〜}} EditToHeaderToFooter

インラインプラグイン &eq
  1
  2
  3
  4
  5
#spanend
#spanadd
このように、&eq{y = f(x)};の形でTexの数式を文中に埋め込められる。
#spanend
#spanadd
このように、$$ y = f(x) $$の形でTexの数式を文中に埋め込められる。
インライン数式では、Latexのインライン数式環境($〜$)に引数を代入して数式画像を生成しています。数式が複雑な場合、複数行プラグインを利用できる。
### 前前前 $eq(){{{ \begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix} }}} 後後後 ###
前前前 $eq(){{{ \begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix} }}} 後後後
関数$$ y = f(x) $$の微分は$$ \ddd{y}{x} $$その逆関数の微分は$$ \ddd{y}{x} $$=$$ \ffd{1}{\ddd{x}{y}} $$と分数のように計算できる。
関数&eq(y = f(x));の微分は&eq(\ddd{y}{x});、
その逆関数の微分は&eq(\ddd{y}{x});=&eq(\ffd{1}{\ddd{x}{y}});と分数のように計算できる。
行列は
 #spanend &spandel; \begin{bmatrix}&spanend; &spandel; a_{11} & a_{12}&spanend; &spandel; \\ a_{21} & a_{22}&spanend; &spandel; \end{bmatrix}&spanend; #spandel 
/home/limg/www/LimgWiki/eq! You can't use `macro parameter character #' in math mode.
 $\displaystyle \mathstrut { ##
                                         spanend &spandel; \begin {bmatrix}&...
l.33 $}
       
のように行と列を揃えて書くと見やすい。ブロックプラグイン #code
### 前前前 #eq(){{{ \begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix} }}} 後後後 ###
前前前 #eq(){{{ \begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix} }}} 後後後
行列は
$eq(){{{{
    \begin{bmatrix}
        a_{11} & a_{12}
     \\ a_{21} & a_{22}
    \end{bmatrix}
}}}}
のように行と列を揃えて書くと見やすい。

ブロック数式プラグイン「#eq(〜){{〜}} EditToHeaderToFooter

ネイティブエイリアス EditToHeaderToFooter

ブロック数式では、Latexのalign 環境に引数を代入して数式画像を生成しています。
数学的に美しい等式:
#spanend #spandel e^{\pi i} + 1 = 0 #spanend #spandel 
/home/limg/www/LimgWiki/eq! You can't use `macro parameter character #' in math mode.
  \displaystyle \mathstrut ##
                                       spanend ##spandel e^{\pi i} + 1 = 0 #...
l.15 \end{align*}
                 
WikiCodeの可読性を改善するため、コードに関して専用記号「$」を割り当てている。
数学的に美しい等式:
#eq{{{{
e^{\pi i} + 1 = 0
}}}}
「$$」で括られたコードは &eq() に渡され、インラインプラグインと等価。また、数式を「$」で区切ることにより、複数の数式画像に分割して処理できる。数式に共通部が多い場合、データの転送量が減り、数式の表示が速くなる。
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
#spanend
#spanadd
$$ a + b = b + a $$と書くと式を丸ごと転送するが、
#spanend
#spanadd
$$ a  $ + $ b $ = $ b $ + $ a $$と書くと、
#spanend
#spanadd
実際処理するのが「$$ a $$」、「$$ b $$」、「$$ + $$」、「$$ = $$」だけになる。
#spanend
#spanadd
$$ a + b = b + a $$と書くと式を丸ごと転送するが、$$ a $$$$ + $$$$ b $$$$ = $$$$ b $$$$ + $$$$ a $$と書くと、実際処理するのが「$$ a $$」、「$$ b $$」、「$$ + $$」、「$$ = $$」だけになる。
インライン書式の場合、式の分数線を文字列の中心線に合わせるように配置される。そのため、上下非対称な式を埋めると、行間が空くようになる。
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
#spanend
#spanadd
□□□□□□前の行□□□□□□&br;
#spanend
#spanadd
前前前$$ \ffd{\ffd{A}{B}}{C} $ \neq $ \ffd{A}{\ffd{B}{C}} $$後後後
#spanend
#spanadd
&br;□□□□□□後ろの行□□□□□□
#spanend
#spanadd
□□□□□□前の行□□□□□□
前前前$$ \ffd{\ffd{A}{B}}{C} $$$$ \neq $$$$ \ffd{A}{\ffd{B}{C}} $$後後後
□□□□□□後ろの行□□□□□□
また、「$$$」のみの行で挟まれる部分は #eq() に渡され、ブロックプラグインと等価。
  1
  2
  3
  4
  5
  6
  7
  8
  9
#spanend
#spanadd
$$$
#spanend
    e^{\pi i} + 1 = 0
#spanadd
$$$
#spanend
#spanadd
#spanend &spanadd; e^{\pi i} + 1 = 0&spanend; #spanadd 
/home/limg/www/LimgWiki/eq! You can't use `macro parameter character #' in math mode.
  \displaystyle \mathstrut ##
                                       spanend &spanadd; e^{\pi i} + 1 = 0&s...
l.15 \end{align*}
                 

拡張コマンド EditToHeaderToFooter

インライン数式、ブロック数式を問わず、デフォルトでは msmathamssymbbmパッケージを適応しています。また、以下の独自コマンドを定義しています。インライン数式、ブロック数式を問わず、デフォルトでは msmathamssymbbmパッケージを適応している。その上、日本で使われる表記に近づけるよう、Texコードが短くなるよう、独自のTexコマンドを定義している。

分数・微分・ルート EditToHeaderToFooter

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
#spanend
#spandel
\newcommand{\disp}[1]{{\displaystyle {#1}}}
#spanend
#spanadd
*** 微分記号 [#l8faaf31]
#spanend
 
#spanadd
###
#spanend
\newcommand{\pr}{\partial}
\newcommand{\dl}{\delta}
\newcommand{\Dl}{\varDelta}
#spanadd
###
#spanend
 
#spandel
\newcommand{\ff} [2]{\frac{\,{#1}\,}{\,{#2}\,}}
#spanend
#spandel
\newcommand{\dd} [2]{\frac{\,d{#1}\,}{\,d{#2}\,}}
#spanend
#spandel
\newcommand{\pp} [2]{\frac{\,\pr{#1}\,}{\,\pr{#2}\,}}
#spanend
#spanadd
|## d ##|## D ##|## \dl ##|## \Dl ##|## \pr ##|
#spanend
#spanadd
|$$ d $$|$$ D $$|$$ \dl $$|$$ \Dl $$|$$ \pr $$|
#spanend
 
#spanadd
*** 線幅調節スタイル [#c4e0c612]
#spanend
#spanadd
 
#spanend
#spanadd
###
#spanend
#spanadd
\newcommand{\ff}[2]{\frac{\,{#1}\,}{\,{#2}\,}}
#spanend
#spanadd
\newcommand{\dd}[2]{\frac{\,d{#1}\,}{\,d{#2}\,}}
#spanend
#spanadd
\newcommand{\pp}[2]{\frac{\,\pr{#1}\,}{\,\pr{#2}\,}}
#spanend
#spanadd
\newcommand{\rt}[2][{\;\;}]{\sqrt[#1]{#2\,}} 
#spanend
#spanadd
###
#spanend
#spanadd
 
#spanend
#spanadd
|## \ff{y}{x} ##|## \dd{y}{x} ##|## \pp{y}{x} ##|## \rt{x} ##|## \rt[n]{x} ##|
#spanend
#spanadd
|$$ \ff{y}{x} $$|$$ \dd{y}{x} $$|$$ \pp{y}{x} $$|$$ \rt{x} $$|$$ \rt[n]{x} $$|
#spanend
#spanadd
*** ディスプレイスタイル [#r48e6bfe]
#spanend
#spanadd
 
#spanend
#spanadd
###
#spanend
#spanadd
\newcommand{\disp}[1]{{\displaystyle {#1}}}
#spanend
\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}}}
#spanadd
###
#spanend
 
#spandel
\newcommand{\rt}[2][{\;\;}]{\sqrt[#1]{#2\,}} 
#spanend
#spandel
#spanend &spandel; x = \ffd{-b \pm \rt{b^2 - 4 a c}}{2a} &spanend; &spandel; & ; \hspace{2em}&spanend; &spandel; \ddd{f}{x} \equiv \! \lim_{\Dl x \to 0} \! \ffd{f(x + \Dl x) - f(x)}{\Dl x}&spanend; &spandel;\\ \textrm{vs.} \hspace{1em}&spanend; &spandel; x = \frac{-b \pm \sqrt{b^2 - 4 a c}}{2a}&spanend; &spandel; & ; \hspace{2em}&spanend; &spandel; \frac{df}{dx} \equiv \! \lim_{\varDelta x \to 0} \! \frac{f(x + \varDelta x) - f(x)}{\varDelta x}&spanend; #spandel 
/home/limg/www/LimgWiki/eq! You can't use `macro parameter character #' in math mode.
  \displaystyle \mathstrut ##
                                       spanend &spandel; x = \ffd {-b \pm \r...
l.15 \end{align*}
                 
\ffd{\ffd{A}{B}}{C} \ddd{\ddd{A}{B}}{C} \ppd{\ppd{A}{B}}{C}
$$ \ffd{\ffd{A}{B}}{C} $$$$ \ddd{\ddd{A}{B}}{C} $$$$ \ppd{\ppd{A}{B}}{C} $$
#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}
 \\ \textrm{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}
}}}}

ベクトル・テンソル EditToHeaderToFooter

ベクトル・テンソル EditToHeaderToFooter

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
#spanend
#spandel
\renewcommand{\b}[1]{{\bm {#1}}}
#spanend
#spanadd
###
#spanend
#spanadd
\def\:#1{{\b#1}}
#spanend
\newcommand{\sx}{ {\bm \cdot} }         % スカラー積
\newcommand{\vx}{ \! \times  \! }       % ベクトル積
\newcommand{\wx}{ \! \wedge  \! }       % ウェッジ積
\newcommand{\tx}{ \! \otimes \! }       % テンソル積
#spandel

#code(){{{{{{{{{{{{{{{{
#spanend

#spandel
#eq(){{{
#spanend
\b A \vx (\b B \vx \b C)
& = (\b A \sx \b C) \b B
- (\b A \sx \b B) \b C
\\ d \left( P\,dy \wx dz + Q\,dz \wx dx + R\,dx \wx dy \right)
& = \left( \ppd{P}{x} + \ppd{Q}{y} + \ppd{R}{z} \right) dx \wx dy \wx dz
#spandel
}}}
#spanend
#spandel
^#eq(){{{
#spanend
#spandel
^ \b A \vx (\b B \vx \b C)
#spanend
#spandel
^ & = (\b A \sx \b C) \b B
#spanend
#spandel
^ - (\b A \sx \b B) \b C
#spanend
#spandel
^ \\ d \left( P\,dy \wx dz + Q\,dz \wx dx + R\,dx \wx dy \right)
#spanend
#spandel
^ & = \left( \ppd{P}{x} + \ppd{Q}{y} + \ppd{R}{z} \right) dx \wx dy \wx dz
#spanend
#spandel
^}}}
#spanend
#spanadd
| A \:A | \:A \sx \:B | \:A \vx \:B | \:A \wx \:B | \:A \tx \:B |
#spanend
#spanadd
|$$ A \:A $$|$$ \:A \sx \:B $$|$$ \:A \vx \:B $$|$$ \:A \wx \:B $$|$$ \:A \tx \:B $$|
#spanend

#spanadd
*** 独自コマンド定義コード [#sb1da13b]
#spanend
- 独自コマンドを定義するTeXコードはこちら
#spanadd

#spanend
#spanadd
////////////////////////////////////////////////////////////////
#spanend
#spanadd

#spanend

    初基 一覧 検索 最新 バックアップ リンク元   ヘルプ   最終更新のRSS