WPMathPub Syntax

The WPMathPub plugin is built around the pmath shortcode block. More details and examples here>

pmath tag parameters

Enter a shortcode block like this…

[pmath size-control color-control pmath-syntax-processing]y=mx^2+b[/pmath]

Demonstration of color, size, native vs. LaTeX parameters

Enter this shortcode…

[pmath color=”#009900″ size=16]y=mx^2+2[/pmath]

[pmath color=”gray” size=20]y=mx^2+2[/pmath]

[pmath color=”red” size=14 latex=1]y=mx^2+2[/pmath]

The result looks like this …

y=mx^2+2

y=mx^2+2

y=mx^2+2

WPMathPub Syntax: Table of Contents

Description
PMath Command
[pmath]
PMath Command
[/pmath]
[pmath color="#ffffff"]
PMath Command
[/pmath] on #1a3a4a
LaTeX Command
[pmath latex=1]
LaTeX Command
[/pmath]
Notes
Usual commands
Superscript
x^2
x^2
x^2
x^2
x^2
Subscript
x_2
x_2
x_2
x_2
x_2
Superscript group
x^{a+b}
x^{a+b}
x^{a+b}
x^{a+b}
x^{a+b}
Subscript group
x_{a+b}
x_{a+b}
x_{a+b}
x_{a+b}
x_{a+b}
Fraction
{x+y}/{z}
{x+y}/{z}
{x+y}/{z}
\frac{x+y}{z}
{{x+y}/{z}}
Addition
x+y
x+y
x+y
x+y
x+y
Subtraction
x-y
x-y
x-y
x-y
x-y
Multiplication (cross)
x times y
x times y
x times y
x \times y
x times y
Multiplication (dot)
x cdot y
x cdot y
x cdot y
x \cdot y
x cdot y
Division / inline fraction
x/y
x/y
x/y
\frac{x}{y}
{{x}/{y}}
Equality
x=y
x=y
x=y
x=y
x=y
Less than and greater than
x lt gt y
x lt gt y
x lt gt y
x \lt \gt y
x lt gt y
Not equal
x!=y
x ne y
x ne y
x \ne y
x ne y
Greater than
x y gt
x y gt
x y gt
x \gt y
x gt y
Greater than or equal
x ge
x ge
x ge
x \ge y
x ge y
Less than
x lt y
x lt y
x lt y
x \lt y
x lt y
Less than or equal
x le y
x le y
x le y
x \le y
x le y
Prime / first derivative
f prime
f prime
f prime
f^{\prime}
f prime
Double prime / second derivative
f prime prime
f prime prime
f prime prime
f^{\prime\prime}
f prime prime
Brackets and Parentheses
Round brackets — direct
(x)
(x)
(x)
\left(x\right)
(x)
Square brackets
delim{[}{x+y}{]}
delim{[}{x+y}{]}
delim{[}{x+y}{]}
\left[ x+y \right]
delim{[}{x+y}{]}
Absolute value
delim{|}{x+y}{|}
delim{|}{x+y}{|}
delim{|}{x+y}{|}
\left| x+y \right|
delim{|}{x+y}{|}
Curly braces
delim{lbrace}{x+y}{rbrace}
delim{lbrace}{x+y}{rbrace}
delim{lbrace}{x+y}{rbrace}
\left\{ x+y \right\}
delim{lbrace}{x+y}{rbrace}
Double vertical bar (norm)
delim{vert}{x+y}{vert}
delim{vert}{x+y}{vert}
delim{vert}{x+y}{vert}
\left\| x+y \right\|
delim{vert}{x+y}{vert}
Left curly brace standalone
lbrace
lbrace
lbrace
\{
lbrace
Right curly brace standalone
rbrace
rbrace
rbrace
\}
rbrace
Silent curly braces
a{b}
a{b}
a{b}
a{b}
a{b}
Half-open interval
delim{]}{x}{]}
delim{]}{x}{]}
delim{]}{x}{]}
\left]x\right]
delim{]}{x}{]}
Half-open interval
delim{[}{x}{[}
delim{[}{x}{[}
delim{[}{x}{[}
\left[x\right[
delim{[}{x}{[}
Open interval
delim{]}{x}{[}
delim{]}{x}{[}
delim{]}{x}{[}
\left]x\right[
delim{]}{x}{[}
Math space
Thin space
a~b
a~b
a~b
a\,b
a~b
Greek letters
alpha
alpha
alpha
alpha
\alpha
alpha
beta
beta
beta
beta
\beta
beta
gamma
gamma
gamma
gamma
\gamma
gamma
delta
delta
delta
delta
\delta
delta
epsilon
epsilon
epsilon
epsilon
\epsilon
epsilon
varepsilon
varepsilon
varepsilon
varepsilon
\varepsilon
varepsilon
zeta
zeta
zeta
zeta
\zeta
zeta
eta
eta
eta
eta
\eta
eta
theta
theta
theta
theta
\theta
theta
vartheta
vartheta
vartheta
vartheta
\vartheta
vartheta
iota
iota
iota
iota
\iota
iota
kappa
kappa
kappa
kappa
\kappa
kappa
lambda
lambda
lambda
lambda
\lambda
lambda
nu
nu
nu
nu
\nu
nu
xi
xi
xi
xi
\xi
xi
varpi
varpi
varpi
varpi
\varpi
varpi
rho
rho
rho
rho
\rho
rho
varrho
varrho
varrho
varrho
\varrho
varrho
sigma
sigma
sigma
sigma
\sigma
sigma
varsigma
varsigma
varsigma
varsigma
\varsigma
varsigma
tau
tau
tau
tau
\tau
tau
upsilon
upsilon
upsilon
upsilon
\upsilon
upsilon
phi
phi
phi
phi
\phi
phi
varphi
varphi
varphi
varphi
\varphi
varphi
chi
chi
chi
chi
\chi
chi
omega
omega
omega
omega
\omega
omega
Gamma
Gamma
Gamma
Gamma
\Gamma
Gamma
Delta
Delta
Delta
Delta
\Delta
Delta
Theta
Theta
Theta
Theta
\Theta
Theta
Lambda
Lambda
Lambda
Lambda
\Lambda
Lambda
Xi
Xi
Xi
Xi
\Xi
Xi
Sigma
Sigma
Sigma
Sigma
\Sigma
Sigma
Upsilon
Upsilon
Upsilon
Upsilon
\Upsilon
Upsilon
Phi
Phi
Phi
Phi
\Phi
Phi
Omega
Omega
Omega
Omega
\Omega
Omega
Symbols
Plus or minus
pm
pm
pm
\pm
pm
Times
times
times
times
\times
times
Centered dot
cdot
cdot
cdot
\cdot
cdot
Bullet
bullet
bullet
bullet
\bullet
bullet
Because
because
because
because
\because
because
Therefore
therefore
therefore
therefore
\therefore
therefore
Less than or equal
le
le
le
\le
le
Greater than or equal
ge
ge
ge
\ge
ge
Less than
lt
lt
lt
\lt
lt
Greater than
gt
gt
gt
\gt
gt
Not equal
ne
ne
ne
\ne
ne
Approximately equal
approx
approx
approx
\approx
approx
Infinity
infty
infty
infty
\infty
infty
Partial derivative
partial
partial
partial
\partial
partial
Nabla / del operator
del
del
del
\nabla
del
For all
forall
forall
forall
\forall
forall
There exists
exists
exists
exists
\exists
exists
Does not exist
notexists
notexists
notexists
\nexists
notexists
Not element of
notin
notin
notin
\notin
notin
Element of
in
in
in
\in
in
Prime symbol
prime
prime
prime
x'
x'
Reduced Planck constant
hbar
hbar
hbar
\hbar
hbar
Composition / degree
circ
circ
circ
\circ
circ
Vertical bar
vert
vert
vert
\vert
vert
Empty set
varnothing
varnothing
varnothing
\varnothing
varnothing
Perpendicular
ortho
ortho
ortho
\perp
ortho
Parallel
parallel
parallel
parallel
\parallel
parallel
Logical and / wedge
wedge
wedge
wedge
\wedge
wedge
Backslash
backslash
backslash
backslash
\backslash
backslash
Horizontal ellipsis
cdots
cdots
cdots
\cdots
cdots
Vertical ellipsis
vdots
vdots
vdots
\vdots
vdots
Used in matrices
Diagonal ellipsis
ddots
ddots
ddots
\ddots
ddots
Used in matrices
Subset
subset
subset
subset
\subset
subset
Not subset
notsubset
notsubset
notsubset
\not\subset
notsubset
Trigonometry
sine
sin
sin
sin
\sin
sin
cosine
cos
cos
cos
\cos
cos
tangent
tan
tan
tan
\tan
tan
arc sine
arcsin
arcsin
arcsin
\arcsin
arcsin
arc cosine
arccos
arccos
arccos
\arccos
arccos
arc tangent
arctan
arctan
arctan
\arctan
arctan
hyperbolic sine
sinh
sinh
sinh
\sinh
sinh
hyperbolic cosine
cosh
cosh
cosh
\cosh
cosh
hyperbolic tangent
tanh
tanh
tanh
\tanh
tanh
secant
sec
sec
sec
\sec
sec
cosecant
csc
csc
csc
\csc
csc
cotangent
cot
cot
cot
\cot
cot
hyperbolic cotangent
coth
coth
coth
\coth
coth
Math operators
natural logarithm
ln
ln
ln
\ln
ln
logarithm
log
log
log
\log
log
exponential
exp
exp
exp
\exp
exp
determinant
det
det
det
\det
det
dimension
dim
dim
dim
\dim
dim
maximum
max
max
max
\max
max
minimum
min
min
min
\min
min
greatest common divisor
gcd
gcd
gcd
\gcd
gcd
degree
deg
deg
deg
\deg
deg
argument
arg
arg
arg
\arg
arg
base-2 logarithm
lg
lg
lg
\lg
lg
homomorphism
hom
hom
hom
\hom
hom
infimum
inf
inf
inf
\inf
inf
supremum
sup
sup
sup
\sup
sup
real part
Re
Re
Re
\Re
Re
imaginary part
Im
Im
Im
\Im
Im
Arrows
left arrow
left
left
left
\leftarrow
left
right arrow
right
right
right
\rightarrow
right
left-right arrow
leftright
leftright
leftright
\leftrightarrow
leftright
double left arrow
doubleleft
doubleleft
doubleleft
\Leftarrow
doubleleft
double right arrow
doubleright
doubleright
doubleright
\Rightarrow
doubleright
double left-right arrow
doubleleftright
doubleleftright
doubleleftright
\Leftrightarrow
doubleleftright
north-east arrow
nearrow
nearrow
nearrow
\nearrow
nearrow
south-east arrow
searrow
searrow
searrow
\searrow
searrow
Sets
natural numbers
bbN
bbN
bbN
\mathbb{N}
bbN
integers
bbZ
bbZ
bbZ
\mathbb{Z}
bbZ
rationals
bbQ
bbQ
bbQ
\mathbb{Q}
bbQ
real numbers
bbR
bbR
bbR
\mathbb{R}
bbR
complex numbers
bbC
bbC
bbC
\mathbb{C}
bbC
subset
subset
subset
subset
\subset
subset
not subset
notsubset
notsubset
notsubset
\not\subset
notsubset
intersection
inter
inter
inter
\cap
inter
union
union
union
union
\cup
union
element of
in
in
in
\in
in
not element of
notin
notin
notin
\notin
notin
Roots
square root
sqrt{x}
sqrt{x}
sqrt{x}
\sqrt{x}
sqrt{x}
nth root
root{3}{x}
root{3}{x}
root{3}{x}
\sqrt[3]{x}
root{3}{x}
Limits
limit expression
lim{x right +infty}{f(x)}
lim{x right +infty}{f(x)}
lim{x right +infty}{f(x)}
\lim_{x\to+\infty} f(x)
lim{x right +infty}{f(x)}
Constructions
vector arrow over expression
vec{x}
vec{x}
vec{x}
\vec{x}
vec{x}
hat accent over expression
hat{x}
hat{x}
hat{x}
\hat{x}
hat{x}
overline above expression
overline{x}
overline{x}
overline{x}
\overline{x}
overline{x}
underline below expression
underline{x}
underline{x}
underline{x}
\underline{x}
underline{x}
label placed below base expression
{a}under{b}
{a}under{b}
{a}under{b}
\underset{a}{b}
{a}under{b}
label placed above base expression
{a}over{b}
{a}over{b}
{a}over{b}
\overset{a}{b}
{a}over{b}
Pseudo bold
pmb{x}
pmbIMG4
pmbIMG5
\pmb{x}
pmbIMG6
Image-overprint technique — any one symbol
italic free-form text
mathit{Share Enjoy}
S h a r e  ~  E n j o y
S h a r e  ~  E n j o y
\mathit{Share Enjoy}
S h a r e  ~  E n j o y
Renders text in italic — spaces preserved
upright free-form text
text{Share Enjoy}
rmS rmh rma rmr rme  ~  rmE rmn rmj rmo rmy
rmS rmh rma rmr rme  ~  rmE rmn rmj rmo rmy
\text{Share Enjoy}
rmS rmh rma rmr rme  ~  rmE rmn rmj rmo rmy
Renders text upright (Latin Modern Roman) — new in v3.0.5
upright text (\mathrm alias)
text{const}
rmc rmo rmn rms rmt
rmc rmo rmn rms rmt
\mathrm{const}
rmc rmo rmn rms rmt
Same as \text{}; for legacy \mathrm documents
upright text (\mbox alias)
text{const}
rmc rmo rmn rms rmt
rmc rmo rmn rms rmt
\mbox{const}
rmc rmo rmn rms rmt
Same as \text{}; for legacy \mbox documents
Big operators
summation
sum{a}{b}{x}
sum{a}{b}{x}
sum{a}{b}{x}
\sum_{a}^{b}x
sum{a}{b}{x}
definite integral
int{a}{b}{f(x)dx}
int{a}{b}{f(x)dx}
int{a}{b}{f(x)dx}
\int_{a}^{b}f(x)dx
int{a}{b}{f(x)dx}
double integral
doubleint{a}{b}{x}
doubleint{a}{b}{x}
doubleint{a}{b}{x}
\iint_{a}^{b}x
doubleint{a}{b}{x}
triple integral
tripleint{a}{b}{x}
tripleint{a}{b}{x}
tripleint{a}{b}{x}
\iiint_{a}^{b}x
tripleint{a}{b}{x}
contour integral
oint{a}{b}{f(t)dt}
oint{a}{b}{f(t)dt}
oint{a}{b}{f(t)dt}
\oint_{a}^{b}f(t)dt
oint{a}{b}{f(t)dt}
product
prod{a}{b}{x}
prod{a}{b}{x}
prod{a}{b}{x}
\prod_{a}^{b}x
prod{a}{b}{x}
big union
bigcup{a}{b}{x}
bigcup{a}{b}{x}
bigcup{a}{b}{x}
\bigcup_{a}^{b}x
bigcup{a}{b}{x}
big intersection
bigcap{a}{b}{x}
bigcap{a}{b}{x}
bigcap{a}{b}{x}
\bigcap_{a}^{b}x
bigcap{a}{b}{x}
Delimiters
square bracket delimiters
delim{[}{expr}{]}
delim{[}{x}{]}
delim{[}{x}{]}
\left[ expr \right]
delim{[}{x}{]}
absolute value delimiters
delim{|}{expr}{|}
delim{|}{x}{|}
delim{|}{x}{|}
\left| expr \right|
delim{|}{x}{|}
curly brace delimiters
delim{lbrace}{expr}{rbrace}
delim{lbrace}{x}{rbrace}
delim{lbrace}{x}{rbrace}
\left\{ expr \right\}
delim{lbrace}{x}{rbrace}
round bracket delimiters
(expr)
(x)
(x)
\left( expr \right)
(x)
double bar delimiters (norm)
delim{vert}{expr}{vert}
delim{vert}{x}{vert}
delim{vert}{x}{vert}
\left\| expr \right\|
delim{vert}{x}{vert}
square brackets (unary)
delim{[}{x}{]}
delim{[}{x}{]}
delim{[}{x}{]}
\left[x\right]
delim{[}{x}{]}
absolute value (unary)
delim{|}{x}{|}
delim{|}{x}{|}
delim{|}{x}{|}
\left|x\right|
delim{|}{x}{|}
curly braces (unary)
delim{lbrace}{x}{rbrace}
delim{lbrace}{x}{rbrace}
delim{lbrace}{x}{rbrace}
\left\{x\right\}
delim{lbrace}{x}{rbrace}
double bar (unary)
delim{vert}{x}{vert}
delim{vert}{x}{vert}
delim{vert}{x}{vert}
\left\|x\right\|
delim{vert}{x}{vert}
matrix with one left brace
delim{lbrace}{matrix{2}{1}{{a}{b}}}{~}
delim{lbrace}{matrix{2}{1}{{a}{b}}}{~}
delim{lbrace}{matrix{2}{1}{{a}{b}}}{~}
\left\{ \begin{matrix} a \\ b \end{matrix}
delim{lbrace}{matrix{2}{1}{{a} {b}}}{~}
matrix with square brackets
delim{[}{matrix{2}{2}{{a}{b}{c}{d}}}{]}
delim{[}{matrix{2}{2}{{a}{b}{c}{d}}}{]}
delim{[}{matrix{2}{2}{{a}{b}{c}{d}}}{]}
\left[ \begin{matrix} a & b \\ c & d \end{matrix} \right]
delim{[}{matrix{2}{2}{{a} {b} {c} {d}}}{]}
determinant form
delim{|}{matrix{2}{2}{{a}{b}{c}{d}}}{|}
delim{|}{matrix{2}{2}{{a}{b}{c}{d}}}{|}
delim{|}{matrix{2}{2}{{a}{b}{c}{d}}}{|}
\left| \begin{matrix} a & b \\ c & d \end{matrix} \right|
delim{|}{matrix{2}{2}{{a} {b} {c} {d}}}{|}
Matrix
matrix{num of lines}{num of columns}{first_element … last_element}
2×3 matrix example
matrix{2}{3}{a b c d e f}
matrix{2}{3}{a b c d e f}
matrix{2}{3}{a b c d e f}
\begin{matrix}a & b & c \\ d & e & f\end{matrix}
matrix{2}{3}{{a} {b} {c} {d} {e} {f}}
2×2 matrix with brackets
delim{[}{matrix{2}{2}{{a}{b}{c}{d}}}{]}
delim{[}{matrix{2}{2}{{a}{b}{c}{d}}}{]}
delim{[}{matrix{2}{2}{{a}{b}{c}{d}}}{]}
\left[ \begin{matrix} a & b \\ c & d \end{matrix} \right]
delim{[}{matrix{2}{2}{{a} {b} {c} {d}}}{]}
square brackets (unary)
delim{[}{x}{]}
delim{[}{x}{]}
delim{[}{x}{]}
\left[x\right]
delim{[}{x}{]}
absolute value (unary)
delim{|}{x}{|}
delim{|}{x}{|}
delim{|}{x}{|}
\left|x\right|
delim{|}{x}{|}
curly braces (unary)
delim{lbrace}{x}{rbrace}
delim{lbrace}{x}{rbrace}
delim{lbrace}{x}{rbrace}
\left\{x\right\}
delim{lbrace}{x}{rbrace}
double bar (unary)
delim{vert}{x}{vert}
delim{vert}{x}{vert}
delim{vert}{x}{vert}
\left\|x\right\|
delim{vert}{x}{vert}
matrix with one left brace
delim{lbrace}{matrix{2}{1}{{a}{b}}}{~}
delim{lbrace}{matrix{2}{1}{{a}{b}}}{~}
delim{lbrace}{matrix{2}{1}{{a}{b}}}{~}
\left\{ \begin{matrix} a \\ b \end{matrix}
delim{lbrace}{matrix{2}{1}{{a} {b}}}{~}
Piecewise functions and case notation
determinant (matrix with pipes)
delim{|}{matrix{2}{2}{{a}{b}{c}{d}}}{|}
delim{|}{matrix{2}{2}{{a}{b}{c}{d}}}{|}
delim{|}{matrix{2}{2}{{a}{b}{c}{d}}}{|}
\left| \begin{matrix} a & b \\ c & d \end{matrix} \right|
delim{|}{matrix{2}{2}{{a} {b} {c} {d}}}{|}
Tabular
tabular{lines description}{columns description}{first_element … last_element}
table 2 lines x 3 columns inner bars shown
tabular{111}{1111}{a b c d e f}
tabular{111}{1111}{a b c d e f}
tabular{111}{1111}{a b c d e f}
\begin{tabular}{|l|l|l|} \hline a & b & c \\ \hline d & e & f \\ \hline \end{tabular}
tabular{111}{1111}{a b c d e f}
table 3 lines x 2 columns inner bars hidden
tabular{1001}{101}{1 2 3 4 5 6}
tabular{1001}{101}{1 2 3 4 5 6}
tabular{1001}{101}{1 2 3 4 5 6}
\begin{tabular}{|ll|} \hline 1 & 2 \\ 3 & 4 \\ 5 & 6 \\ \hline \end{tabular}
tabular{1001}{101}{1 2 3 4 5 6}