Contents
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 \]![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 \] 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 \]](/jwiki/LaTeX?action=AttachFile&do=get&target=latex_511244bd0aac49d33480dea63641513559e34770_p1.png)
Preamble
Preamble set locally affects only the current format block:
{{{#!latex
\usepackage{cmbright}
%%end-prologue%%With preamble \usepackage{cmbright}

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
Cards:
. - In-line macro that outputs over several lines:
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.
Additional Resources
Not So Short Introduction to LaTeX, Good introduction for the beginner
Quick reference at Wikipedia
Project Page of Johannes Berg, the author of the LaTeX plugin
Further contributions by OlegKobchenko.

![$ \quad \APLdown \, r \gets tieno$
$ [1] \, r \gets (( \iota \rho r) \, \epsilon \, r \gets 0, \APLbox fnums) \, \iota \, 0$
$\quad \APLdown$
$ \quad \APLdown \, r \gets tieno$
$ [1] \, r \gets (( \iota \rho r) \, \epsilon \, r \gets 0, \APLbox fnums) \, \iota \, 0$
$\quad \APLdown$](/jwiki/LaTeX?action=AttachFile&do=get&target=latex_f676a528834dd9ce0b688f7186d5081c45baf689_p1.png)