Wiki Page Content

This section describes the new-moinmoin-LaTeX installation process. If you're running a moinmoin-based wiki on your server, the following allows you to use LaTeX commands in MoinMoin Wiki.

This is already installed on ViSLAB moinmoin wiki. You can just test example in your ViSLAB wiki page.

  1. install dvipng

apt-get install dvipng
  1. install latex with UTF-8 support (the following will also install tetex-bin)

apt-get install latex-ucs tetex-extra
  1. curl the parser code from http://johannes.sipsolutions.net/Projects/new-moinmoin-latex/parser?action=raw and save it as latex.py in $WikiPath$/plugin/parser (/var/lib/moin/vislab-wiki/data/plugin/parser)

  2. curl the macro code from http://johannes.sipsolutions.net/Projects/new-moinmoin-latex/macro?action=raw and save it as latex.py in $WikiPath$/plugin/macro (/var/lib/moin/vislab-wiki/data/plugin/macro)

  3. activate AttachFile in the wikiconfig.py (allowed_actions = 'AttachFile')

  4. test it with the following examples.

Examples

Example 1: 

[[latex(\usepackage{dsfont} % $$\mathds{R}$$)]]

Example 2: 
The equations to convert a point on the sphere [[latex($$(\theta, \phi)$$)]] to a point on 2D plane [[latex($$(x, y)$$)]] are:

{ { {#!latex
\begin{equation}
x=R\frac{\beta\theta}{\sqrt{\alpha\beta}}\cos{(\alpha\phi)}
\end{equation}

\begin{eqnarray}
y & = & R\frac{\alpha\phi}{\sqrt{\alpha\beta}} \\
\alpha & = & \frac{2\arccos{c}}{\pi} \\
\beta & = & \frac{\alpha}{2p}
\end{eqnarray}
} } }
where [[latex($$\theta$$)]] is the longitude and [[latex($$\phi$$)]] the latitude. R is the
radius of the sphere, which is 1 in our program. [[latex($$c=0.5$$)]] and
[[latex($$p=0.5$$)]] are two constants controlling the shape of the projection.

Note: make sure to remove spaces between "{ { {" and "} } }".

latex(\usepackage{dsfont} % $$\mathds{R}$$)

The equations to convert a point on the sphere latex($$(\theta, \phi)$$) to a point on 2D plane latex($$(x, y)$$) are:

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

where latex($$\theta$$) is the longitude and latex($$\phi$$) the latitude. R is the radius of the sphere, which is 1 in our program. latex($$c=0.5$$) and latex($$p=0.5$$) are two constants controlling the shape of the projection.

moinmoin-LaTeX (last edited 2006-12-14 10:12:15 by MasaTakatsuka)