The MathType viewer renders all MathML and LaTeX-like formulas in a webpage using the MathType rendering engine.
To use the MathType viewer in your page, just include the script dist/WIRISplugins.js
:
<script src="dist/WIRISplugins.js?viewer=image" defer></script>
When loading the page now, all MathML and LaTeX formulas should be displayed as images.
The MathType viewer admits various properties.
They can be set like this:
<script src="dist/WIRISplugins.js&viewer=image" defer></script>
<script>
window.document.addEventListener("viewerLoaded", () => {
window.viewer.Properties.key1 = value1;
window.viewer.Properties.key2 = value2;
// ...
});
</script>
In case you want to compile the source code, you must install the NPM dependencies and then run Webpack.
First, run
yarn
to install the dependencies. Then run
yarn build
to compile the package.
The output will be found in viewer/dist
.
If you want to compile the package in development mode Then run
yarn build-dev
The output will be found in viewer/dist
.
For the whole specification, see here.
The MathType Privacy Policy covers the data processing operations for the MathType users. It is an addendum of the company's general Privacy Policy and the general Privacy Policy still applies to MathType users.