====== Math Plugin ====== This plugin makes use of [[http://www.xm1math.net/phpmathpublisher/|phpmathpublisher]] to allow inclusion of properly rendered mathematical formulae in Dokuwiki pages. This is a completely self-contained php solution requiring no third party packages. ===== Usage ===== ...mathematical formulae... //size// (optional) the base glyph size in pixels - default value: 12. //alignment// can be controlled in the same way as dokuwiki images, one space to the left to right align, one to the right to left align, one on each side to centre. ===== Syntax ===== Adapted from [[http://www.xm1math.net/phpmathpublisher/doc/help.html]]. To toggle to the math mode, you must use the ... tag. Apart from this tag, any html code can be used. The math commands must be separated by a space character or surrounded by {}. Typical commands * x+y : x+y * x-y : x-y * x*y : x*y * x/y : x/y * x^y : x^y * x_y : x_y * x<>y : x<>y * x>y : x>y * x>=y : x>=y * xx * x<=y : x<=y * (x) : (x) * {x} : {x} Space * a~b : a~b Greek: * alpha : alpha * beta : beta * gamma : gamma * delta : delta * epsilon : epsilon * varepsilon : varepsilon * zeta : zeta * eta : eta * theta : theta * vartheta : vartheta * iota : iota * kappa : kappa * lambda : lambda * mu : mu * nu : nu * xi : xi * pi : pi * varpi : varpi * rho : rho * varrho : varrho * sigma : sigma * varsigma : varsigma * tau : tau * upsilon : upsilon * phi : phi * varphi : varphi * chi : chi * psi : psi * omega : omega * Gamma : Gamma * Lambda : Lambda * Sigma : Sigma * Psi : Psi * Delta : Delta * Xi : Xi * Upsilon : Upsilon * Omega : Omega * Theta : Theta * Pi : Pi * Phi : Phi Symbols: * infty : infty * in : in * notin : notin * forall : forall * exists : exists * notexists : notexists * partial : partial * approx : approx * pm : pm * inter : inter * union : union * ortho : ortho * parallel : parallel * backslash : backslash * prime : prime * wedge : wedge * vert : vert * lbrace : { * rbrace : } * circ : circ * varnothing : varnothing * subset : subset * notsubset : notsubset * cdots : cdots * vdots : vdots * ddots : ddots Arrows: * left : left * right : right * leftright : leftright * doubleleft : doubleleft * doubleright : doubleright * doubleleftright : doubleleftright * nearrow : nearrow * searrow : searrow Sets: * bbR : bbR * bbN : bbN * bbZ : bbZ * bbC : bbC Roots and Limits: * sqrt{a} : sqrt{a} * root{n}{a} : root{n}{a} * lim{a}{x} : lim{a}{x} Big Operators: * int{a}{b}{x} : int{a}{b}{x} * doubleint{a}{b}{x} : doubleint{a}{b}{x} * tripleint{a}{b}{x} : tripleint{a}{b}{x} * oint{a}{b}{x} : oint{a}{b}{x} * sum{a}{b}{x} : sum{a}{b}{x} * prod{a}{b}{x} : prod{a}{b}{x} * bigcup{a}{b}{x} : bigcup{a}{b}{x} * bigcap{a}{b}{x} : bigcap{a}{b}{x} Delimiters: * delim{[}{x}{]} : delim{[}{x}{]} * delim{]}{x}{]} : delim{]}{x}{]} * delim{[}{x}{[} : delim{[}{x}{[} * delim{]}{x}{[} : delim{]}{x}{[} * delim{lbrace}{x}{rbrace} : delim{lbrace}{x}{rbrace} * delim{|}{x}{|} : delim{|}{x}{|} * delim{vert}{x}{vert} : delim{vert}{x}{vert} Matrix: * Syntax : matrix{num of lines}{num of columns}{first_element ... last_element} * matrix{2}{3}{a b c d e f g} : matrix{2}{3}{a b c d e f g} Tabular: * Syntax : tabular{lines description}{columns description}{first_element ... last_element} * //lines// : sequence of 1 (draw the horizontal line) or 0 (don't draw the horizontal line) - the length of the sequence=num of lines+1 * //columns// : sequence of 1 (draw the vertical line) or 0 (don't draw the vertical line) - the length of the sequence=num of columns+1 * tabular{111}{1111}{a b c d e f g} : tabular{111}{1111}{a b c d e f g} * tabular{1001}{101}{1 2 3 4 5 6} : tabular{1001}{101}{1 2 3 4 5 6} Constructions: * vec{express} : vec{express} * {express}under{foo} : {express}under{foo} * {express}over{foo} : {express}over{foo} * overline{express} : overline{express} * underline{express} : underline{express} * hat{express} : hat{express} ===== Demo ===== S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)} S(f)(t)=a_{0}+sum{n=1}{+infty}{a_{n} cos(n omega t)+b_{n} sin(n omega t)} delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ } delim{lbrace}{matrix{3}{1}{{3x-5y+z=0} {sqrt{2}x-7y+8z=0} {x-8y+9z=0}}}{ } delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3 delim{|}{{1/N} sum{n=1}{N}{gamma(u_n)} - 1/{2 pi} int{0}{2 pi}{gamma(t) dt}}{|} <= epsilon/3