Difference between revisions of "Enabling math markup"

From Organic Design wiki
m
m
Line 4: Line 4:
 
|status = in use
 
|status = in use
 
}}
 
}}
 
 
{{info|This procedure is only required to be run on platforms which were not installed with the [[install a new server]] procedure as maths markup should already be enabled after running that procedure. Also math markup is enabled in all [[OD/Wikia|Organic Design wikia]] by default too.}}
 
{{info|This procedure is only required to be run on platforms which were not installed with the [[install a new server]] procedure as maths markup should already be enabled after running that procedure. Also math markup is enabled in all [[OD/Wikia|Organic Design wikia]] by default too.}}
  

Revision as of 08:07, 17 July 2008

Procedure.svg Enabling math markup
Organic Design procedure
Info.svg This procedure is only required to be run on platforms which were not installed with the install a new server procedure as maths markup should already be enabled after running that procedure. Also math markup is enabled in all Organic Design wikia by default too.


Enabling math markup requires the following binaries latex, dvips, gs, and ImageMagicks convert . These must all be available in $PATH. The binary texvc must also be available, either as a binary or source installation.

Installation of texvc

From source

  1. Note: OCaml 3.06 or later is required to compile texvc; this can be acquired from http://caml.inria.fr/ if your system doesn't have it available. The apt-get commands apt-get install dvipng tetex-extra cjk-latex ocaml (documented in Debian Post Install) install OCaml.
  2. Inside each mediawiki instance ./math directory there is a README file which documents the process involved to make an executable from source called texvc. Basically from in the math directory you type make and check that texvc has been compiled.

Binary

The apt-get install mediawiki-math creates the texvc executable in /usr/local/bin.


You should then test that it works from the command line for example;

 texvc /tmp /var/www/mediawiki-1.12.0/math "y=x+2" iso-8859-1

should create a file in /var/www/mediawiki-1.12.0/math.


Make sure the directories 'tmp' and 'math' under 'images' exist and are writable.

LocalSettings.php customization

The following lines need to be added;

{{{1}}}

See also