This wiki supports markup.

The markup can be either in an in-line macro, or a markup covering one or more lines. The former allows markup within a normal text sentence.

The following examples show the raw text, followed by the resulting output.

## In-Line Macro Markup

An in-line macro begins with <<latex( and ends with )>>. For math mode, include the macro definition within $...$. The following example uses math mode:

The formula <<latex($\sqrt{l^2 + w^2}$)>> is the diagonal of a rectangle with sides <<latex($l$)>> and <<latex($w$)>>.

The formula is the diagonal of a rectangle with sides and .

## In-Line Format

The format is set for the whole page with #format instruction:

#format inline_latex

This mode just formats the $..$ formulas and $$..$$ for display mode, but accepts all regular wiki syntax. It's a shortcut for <<latex($..$)>>

Value $\pi^2/6$ is $\sum_{i=1}^{\infty} {1 \over i^2}$.
Or separately in display block
$${\pi^2\over 6} = \sum_{i=1}^n {1 \over i^2}$$

Value is . Or separately in display block

Note: using $..$ or $$..$$ not only switches to but also to a math mode. So if you need to display non-math in-line construct such as "" fontogram, use either the in-line macro <<latex(\TeX)>> or explicitly switch from text mode from math mode $\textrm\TeX$.

## Multi-Line Markup

Multi-line markup begins with a line {{{#!latex and ends with a line }}}. See example below. Note that the last line of the raw text is not shown, since }}} ends the raw text display:

{{{#!latex
If $e_1 \dots e_n$ is a basis for $E^n$ then $v = \sum e_jv^j = ev \qquad (\textrm{column} \,v^j)$

If $\sigma ^1 \dots \sigma ^n$ is a dual basis for linear functionals in $E^{\star}$, then $\sigma ^i(e_j)=\delta ^i_j$

## Preamble

Preamble set locally affects only the current format block:

{{{#!latex
\usepackage{cmbright}
%%end-prologue%%

With preamble \usepackage{cmbright}

latex error! exitcode was 1 (signal 0), transscript follows:

This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./latex_4585c952398cba6b9859e7900c85b213bafc352a_p.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo))
(/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
(/usr/share/texmf-texlive/tex/latex/base/utf8.def
(/usr/share/texmf-texlive/tex/latex/base/t1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/ot1enc.dfu)
(/usr/share/texmf-texlive/tex/latex/base/omsenc.dfu)))
(/usr/share/texmf-texlive/tex/latex/ltxmisc/concrete.sty
(/usr/share/texmf-texlive/tex/latex/beton/beton.sty
Package: beton' v1.3 <1995/03/05> (FJ)
) (/usr/share/texmf-texlive/tex/latex/euler/euler.sty
Package: euler' v2.5 <1995/03/05> (FJ and FMi)
))

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name:
! Emergency stop.

l.7 ^^M

No pages of output.
Transcript written on latex_4585c952398cba6b9859e7900c85b213bafc352a_p.log.


Common external preamble can be set for all instances on the page with latex_preamble #pragma:

#pragma latex_preamble LaTeX/CommonPreamble`

The previous example uses its own preamble, the example below picks up the page-wide preamble specified in LaTeX/CommonPreamble :

Without preamble

Pragma latex_preamble also affects the style of all code in inline_latex format mode.

## Combining In-Line and Multi-Line Formats

To produce rich formatting that has the convenience of in-lining expressions in otherwise HTML text, searchable by engines, and complex display modes and environments of available in multi-line, it is possible to freely mix both modes.

To mix in-line and multi-line modes, declare page-wide pragma for #format inline_latex and continue to use {{{#!latex ... }}} for multi-line passages.

## Examples

1. Cards: .

2. In-line macro that outputs over several lines:
3. APL characters are available with the wasysym package:

## Notes

The markup works by converting the output into png files that are added as inline images. There may be a delay when the page is first rendered. Each page is cached, so subsequent reads are fast. If necessary, rebuild the cache by selecting menu More Actions|Delete Cache.