Creating formulas with LaTeX
The ONYX Editor provides LaTeX support for all author inputs. Via the HTML editor, which is part of the ONYX Editor, you can integrate formulas into all question areas: question text, alternative answers, or feedback, using the LaTeX markup language. The formulas will be displayed with the established MathJax Framework. Your formula will also be automatically converted to a professionally formatted formula.
Fig.: LaTeX input in the ONYX Editor
Fig.: Formula presentation in a test situation
In order to present mathematical formulas in LaTeX, you need to integrate the formula into your text. This can be done as follows:
- \( Formula \)
- \[ Formula \]
- $$ Formula $$
The LaTeX syntax $formula$ is not supported in ONYX.
You can find extensive material on generating formulas with LaTeX on the internet. For example, detailed examples can be found in the Wikibook: LaTeX compendium for mathematicians (in German).
Creating formulas with the formula dialogue
Apart from the markup language LaTeX, mathematical formulas and complex expressions can also be integrated using the Mathematical Markup Language (MathML). For easy input, a special formula plugin is available for the HTML editor integrated into the ONYX Editor.
Create a formula in the text editor
Select the formula optionin the text editor.
In the dialogue, enter your formula into the text field in MathML or LaTeX notation.
Below the input field, you will be given a preview of the formula.
For LaTeX input, you can choose (by radio button) whether the formula should be inserted into the text editor in LaTeX notation or as a placeholder.
|3||Click on Finish to insert the formula into the test content.|
Edit an existing formula
To edit existing formula content with the formula plugin, proceed as follows:
Click on the formula placeholderor mark the entire formula in LaTeX notation.
Select the formula option in the text editor.
|3||The formula opens in the formula dialogue, allowing you to edit the formula in the text field.|
|4||Confirm your changes by clicking on Finished at the end of the dialogue.|
Cou can find extensive material on generating formulas with MathML on the internet. A detailed description is provided by the Official MathML 3.0 specification.
Creating formulas with a formula editor
You can find numerous LaTeX formula editors on the internet, which provide support for creating LaTeX formulas.
For example, the MyScript website offers simple operation. Write the desired formula in the free area using your mouse or stylus. The formula editor translates the displayed formula into LaTeX notation and, if appropriate to the formula, also shows a graph of the created function.
Fig.: Formula input with MyScript
The LaTeX notation for the entered formula is displayed in the top right page area. You can mark it, copy it and then paste it into the ONYX HTML input fields.
With the editors of the Matheretter LaTeX assistant or the Zahlenkern LaTeX formula editor, you can create formulas using ready-made, graphic formula symbols and adapt them. The formula editors also translate the displayed formula into LaTeX notation, which can then be inserted into the ONYX HTML input fields.
Fig.: Formula input in the Matheretter LaTeX assistant
Fig.: Formula input in the Zahlenkern LaTeX formula editor
Fig.: Example of an inline formula
Fig.: Example of a formula centred on a separate line