-
MathType
-
WirisQuizzes
-
Nubric
-
CalcMe
-
MathPlayer
-
Store FAQ
-
MathFlow
-
BF FAQ
-
Miscellaneous
-
Wiris Integrations
Configure rendering output
Reading time: 2minConfigure how MathType Integration Services render formulas and how formulas are stored in your content. Rendering output determines the format generated by MathType Integration Services (such as SVG or PNG), while the save mode determines whether formulas are stored as images or as MathML.
After completing this guide, MathType Integration Services will render formulas using the output format that best fits your deployment.
Before you begin
Requirements
Make sure you have:
- A working MathType Integration Services deployment.
- Access to the
configuration.inifile. - Permission to restart the application if required.
Applies to
Self-hosted MathType Integration Services
Steps
Configure the rendering format
MathType Integration Services support multiple rendering formats. The recommended format is SVG, which provides:
- Resolution-independent rendering.
- Better accessibility.
- High-quality rendering on high-DPI displays.
- Smaller file sizes in most scenarios.
Use PNG only when SVG cannot be used because of application compatibility requirements.
For a complete list of supported formats, see Supported rendering formats.
Open configuration.ini and locate the rendering configuration:
wirisimageformat = svgSet the desired format. For example:
wirisimageformat = svgor
wirisimageformat = pngSave the configuration.
Configure the save mode
MathType can store formulas either as rendered images or as MathML. Choose the save mode that best fits your application requirements.
| Save mode | Description |
|---|---|
| Image | Stores formulas as rendered images. |
| MathML | Stores formulas as MathML while rendering them when displayed. |
Configure the appropriate save mode in configuration.ini.
See MathType Integration Services parameters for the available configuration options.
Apply the configuration
Depending on your deployment, configuration changes may require restarting the service.
| Deployment | Action |
|---|---|
| PHP | Changes are typically applied immediately. |
| Java | Restart the application server. |
| Docker | Restart the container if the configuration file is mounted during startup. |
| .NET | Restart the web application if required by your hosting environment. |
Verify the configuration
Verify that the configuration endpoint returns the expected configuration.
See API services for the endpoint URLs available on your platform.
Verify it worked
Insert a formula using your frontend integration. After saving the content:
- Verify that the formula is rendered correctly.
- Verify that the generated output matches the configured format.
- Verify that existing formulas can be reopened for editing.
You can also verify rendering using the Render Engine demo included in the Docker deployment examples.
Options and variations
Choose the rendering format
MathType can generate formulas in different output formats depending on your deployment requirements.
- SVG (recommended): scalable vector graphics suitable for modern browsers.
- PNG: raster images compatible with legacy environments.
- PDF: portable document format.
- EPS: encapsulated PostScript.
- SWF: Adobe Flash output retained for legacy compatibility only.
Choose the rendering mode
MathType supports two rendering approaches.
- Full MathML mode (recommended): formulas are stored as MathML and rendered by
WIRISplugins.js. - Image mode: formulas are stored as images for legacy compatibility.
See Full MathML mode.
Common issues
Formulas are not rendered correctly
Verify that:
-
wirisimageformatcontains a supported value. - MathType Integration Services have been restarted after changing the configuration.
- The frontend can reach the MathType Integration Services.
Formulas are stored in an unexpected format
Verify that:
- The configured save mode matches your deployment requirements.
- The deployment is using the updated configuration.
- Cached configuration has been refreshed after restarting the application.