Format: Full HTML + TeX

Web page addresses and e-mail addresses turn into links automatically.

Writing maths works as in LaTeX. Use dollar signs to enclose inline math, e.g. $x^2$. Examples for paragraph math are \[ x^2 \] and $$x^2$$ (both variants are equivalent). There is also a display-style inline math environment, compare $\sum_{k=1}^\infty \frac{1}{k}$ and $!\sum_{k=1}^\infty \frac{1}{k}$. Arbitrary LaTeX code can be rendered as in this example: <tex>Let TeX Embedding failed! be a natural number.<\tex>

Tag DescriptionYou TypeYou Get
inline $\sum_{k=1}^\infty \frac{1}{k}$ TeX Embedding failed!
inline display $!\sum_{k=1}^\infty \frac{1}{k}$ TeX Embedding failed!
dollar sign \$ $
LaTeX code <tex>Let $x^2$ be a natural number.<\tex> TeX Embedding failed!

There are also more elaborate environments to write math—they support auto-numbering, referencing and more. These environments are <equation> and <equations>. They both support the same attributes. You can render an equation with a different resolution: <equation dpi="200">. To give the equation automatically a number, you have to give it an id: <equation id="euler">e^{i \cdot \pi} = -1.</equation>

TeX Embedding failed!(1)
You now can produce a link to that equation by typing \ref{euler}=1, or even better (\ref{euler})=(1). You can also give it a name instead of a number: <equation id="identity" name="Euler's Identity">e^{i \cdot \pi} = -1.</equation>
TeX Embedding failed!(Euler's Identity)
and link to it (\ref{identity})=(Euler's Identity).
Tag DescriptionYou TypeYou Get
Larger font <equation dpi="200">e^{i\cdot\pi}<\equation>
TeX Embedding failed!
numbered <equation id="a">e^\pi<\equation>
TeX Embedding failed!(2)
named <equation id="b" name="Euler">e^\pi<\equation>
TeX Embedding failed!(Euler)
reference \ref{a}    2
reference (\ref{a})    (2)
reference (\ref{b})    (Euler)
equations <equations>
  \int\ln(x)\;dx
   &= \int 1 \cdot\ln(x)\;dx\\
   &= x\cdot\ln(x)-
     \int x\cdot\frac{1}{x}\;dx\\
   &= x\cdot\ln(x)-x
</equations>
TeX Embedding failed!

The pdf version of a node can be retrieved by accessing drutex/pdf/nid where nid is the node id. But only users with the "access pdf files" flag can access this link! You can configure this on the access controal page admin/access. There is also the possibility to get the LaTeX source by accessing drutex/tex/nid.

To prohibit some text from being processed by DruTeX, you can use <code> and <notex>, e.g. <notex>$x^2$</notex>.