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 Description | You Type | You 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) |
| TeX Embedding failed! | (Euler's Identity) |
| Tag Description | You Type | You Get | ||
|---|---|---|---|---|
| Larger font | <equation dpi="200">e^{i\cdot\pi}<\equation> |
|
||
| numbered | <equation id="a">e^\pi<\equation> |
|
||
| named | <equation id="b" name="Euler">e^\pi<\equation> |
|
||
| reference | \ref{a} |
2 | ||
| reference | (\ref{a}) |
(2) | ||
| reference | (\ref{b}) |
(Euler) | ||
| equations |
<equations> |
|
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>.