Difference between revisions of "Enabling math markup"
From Organic Design wiki
m (→Build the texvc binary) |
(→OSX Specific installation) |
||
Line 41: | Line 41: | ||
== OSX Specific installation == | == OSX Specific installation == | ||
− | + | Modify the file '''render.ml''' to include the full absolute paths to latex, dvips convert etc as follows: | |
− | <pre> | + | {{code|<pre> |
let cmd_dvips tmpprefix = "/usr/local/teTeX/bin/powerpc-apple-darwin-current/dvips -q -R -E " ^ tmpprefix ^ ".dvi -f >" ^ tmpprefix ^ ".ps" | let cmd_dvips tmpprefix = "/usr/local/teTeX/bin/powerpc-apple-darwin-current/dvips -q -R -E " ^ tmpprefix ^ ".dvi -f >" ^ tmpprefix ^ ".ps" | ||
2 let cmd_latex tmpprefix = "/usr/local/teTeX/bin/powerpc-apple-darwin-current/latex " ^ tmpprefix ^ ".tex >/dev/null" | 2 let cmd_latex tmpprefix = "/usr/local/teTeX/bin/powerpc-apple-darwin-current/latex " ^ tmpprefix ^ ".tex >/dev/null" | ||
Line 53: | Line 53: | ||
8 let cmd_dvipng tmpprefix finalpath = "/usr/local/teTeX/bin/powerpc-apple-darwin-current/dvipng -gamma 1.5 -D 120 -T tight --strict " ^ \ | 8 let cmd_dvipng tmpprefix finalpath = "/usr/local/teTeX/bin/powerpc-apple-darwin-current/dvipng -gamma 1.5 -D 120 -T tight --strict " ^ \ | ||
tmpprefix ^ ".dvi -o " ^ finalpath ^ " >/dev/null 2>/dev/null" | tmpprefix ^ ".dvi -o " ^ finalpath ^ " >/dev/null 2>/dev/null" | ||
− | </pre> | + | </pre>}} |
Now compile texvc with '''make''' to create a texvc executable that knows where the locations of the components are. | Now compile texvc with '''make''' to create a texvc executable that knows where the locations of the components are. | ||
Revision as of 07:51, 5 August 2010
Enabling math markup Organic Design procedure |
Contents
Build the texvc binary
Enabling math markup requires latex, dvips, gs, and convert. OCaml 3.06 or later from caml.inria.fr is required to compile texvc. On Debian-based systems the requirements can be installed with the following packages:
- Run make from within the MediaWiki's math directory to build the texvc binary on your system.
- Make sure the directories tmp and math under 'images' exist and are writable.
Example
The following maths code
Should give the following output
LocalSettings.php changes
OSX Specific installation
Modify the file render.ml to include the full absolute paths to latex, dvips convert etc as follows:
Now compile texvc with make to create a texvc executable that knows where the locations of the components are.
See also
- Mediawiki and LaTeX
- Manual:Enable TeX
- Manual_talk:Running_MediaWiki_on_Mac_OS_X#Mathematics
- TeX#TeX
- Thread on mwusers
- Articles containing maths
- There was a problem extracting the database on 13/11 due to duplicate entries in the math table, see 13 November 2006.