Difference between revisions of "Enabling math markup"
From Organic Design wiki
(→Transparency (not working on current versions): You will then need to rebuild the ''texvc'' binary) |
(→Transparency (not working on current versions): different for new versions) |
||
Line 35: | Line 35: | ||
== Transparency (not working on current versions) == | == Transparency (not working on current versions) == | ||
− | + | The ''/wiki/math/render.ml'' script has notes about swtches that can be added to the ''convert'' and ''dvips'' commands to give transparency, but these images will not work correctly in Microsoft browsers prior to IE7. After making changes to ''render.ml'', you must rebuild the ''texvc'' executable by issuing a '''make clean && make'''. | |
+ | |||
+ | For older codebases, we used the following ''render.ml'' hack instead. | ||
{{code|<pre> | {{code|<pre> | ||
let cmd_convert tmpprefix finalpath = "convert -quality 100 -density 480 " \ | let cmd_convert tmpprefix finalpath = "convert -quality 100 -density 480 " \ | ||
Line 42: | Line 44: | ||
&& composite -compose CopyOpacity " ^ finalpath ^ " " ^ finalpath ^ ".png " ^ finalpath | && composite -compose CopyOpacity " ^ finalpath ^ " " ^ finalpath ^ ".png " ^ finalpath | ||
</pre>}} | </pre>}} | ||
− | |||
− | |||
== See also == | == See also == |
Revision as of 10:55, 14 January 2009
Enabling math markup Organic Design procedure |
Contents
Example
The following maths code
Should give the following output
Build the texvc binary
OCaml 3.06 or later from caml.inria.fr is required to compile texvc
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.
LocalSettings.php customization
The following lines need to be added;
Transparency (not working on current versions)
The /wiki/math/render.ml script has notes about swtches that can be added to the convert and dvips commands to give transparency, but these images will not work correctly in Microsoft browsers prior to IE7. After making changes to render.ml, you must rebuild the texvc executable by issuing a make clean && make.
For older codebases, we used the following render.ml hack instead.
See also
- 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.