@wiris/mathtype-viewer
v8.11.1
Published
The MathType viewer renders all MathML and LaTeX-like formulas in a webpage using the MathType rendering engine.
Downloads
26
Readme
MathType Viewer
The MathType viewer renders all MathML and LaTeX-like formulas in a webpage using the MathType rendering engine.
Usage
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.
Properties
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>
Compilation
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
.
Documentation
For the whole specification, see here.
Privacy policy
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.