mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-12-19 02:50:44 +00:00
d8822169ab
Renders formulae via mathoid without to run mathoid as a service. Mathoid 0.7.1 or later must be installed locally and configured to be accessed directly from the math extension. It has been tested with the config.dev.yaml of version 0.7.1. If mathoid is installed in '/srv/mathoid' the following line might be added to LocalSettings.php $wgMathoidCli = ['/srv/mathoid/cli.js', '-c', '/srv/mathoid/config.dev.yaml']; i.e., make sure to specify the -c parameter with an absolute path. In addition mathoid uses more memory than the the default. With the config.dev.yaml a value of $wgMaxShellMemory = 2097152; has been tested to work well. Change-Id: I0600f056d21927963267cf979d342e313419e9fa
23 lines
619 B
SQL
23 lines
619 B
SQL
--
|
|
-- Used by the math module to keep track
|
|
-- of previously-rendered items.
|
|
--
|
|
CREATE TABLE /*_*/mathoid (
|
|
-- Binary MD5 hash of math_inputtex, used as an identifier key.
|
|
math_inputhash BYTEA PRIMARY KEY,
|
|
-- the user input
|
|
math_input TEXT NOT NULL,
|
|
-- the validated tex
|
|
math_tex TEXT,
|
|
-- MathML output LaTeXML
|
|
math_mathml TEXT,
|
|
-- SVG output mathoid
|
|
math_svg TEXT,
|
|
-- MW_MATHSTYLE_(INLINE_DISPLAYSTYLE|DISPLAY|INLINE)
|
|
math_style SMALLINT,
|
|
-- type of the Math input (TeX, MathML, AsciiMath...)
|
|
math_input_type SMALLINT,
|
|
-- png output of mathoid
|
|
math_png BYTEA
|
|
) /*$wgDBTableOptions*/;
|