##### Page tree
Go to start of banner

# Formeln

ONYX offers authors the possibility to integrate formulas in MathML or LaTeX notation. ONYX uses the established MathJax framework for optimal representation of your formulas in all browser views.

For the easy compilation and automatic conversion of your formulas into the LaTeX markup language, several LaTeX formula editors can be downloaded from the internet. The Daum Equation Editor, for example, stands out due to its simplicity and extensive functionality.

## Formula creation with LaTeX

The ONYX Editor provides LaTeX support for all author inputs. Via the HTML Editor, which is a part of the ONYX Editor, you can integrate formulas into all task areas, i.e. task texts, alternative answers, or feedback, using the LaTeX markup language. The formulas are represented with the established MathJax Framework. Your formula is automatically converted to a professionally formatted formula.

 Fig.: LaTeX input in the ONYX Editor Fig.: Formula representation during the test implementation

In order to represent mathematical formulas in LaTeX, you need to integrate the formula into your text. A formula can be integrated into a text as follows:

• $$Formula$$
• $Formula$
• $$Formula$$

The LaTeX syntax $formula$ is not supported in ONYX.

On the internet, you will find extensive material for generating formulas with LaTeX. More detailed examples can, for example, be found in the Wikibook: LaTeX-Kompendium für Mathematiker (German).

## Formula creation with the formula dialogue

In addition to the markup language LaTeX, mathematical formulas and complex expressions can also be integrated by means of the Mathematical Markup Language (MathML). For simple input, a special formula plugin is available for the HTML Editor.

1. Click on the option formula  in the text editor.
2. In the dialogue, enter your formula into the text field in MathML or LaTeX notation.
3. For LaTeX input, you can select whether the formula should be inserted into the text editor in LaTeX notation or as a placeholder .
4. Add the formula to the test content by clicking on "Finish".

Below the input field, you will be given a preview of the formula.

 Fig.: Formula dialogue of the ONYX HTML Editor

To edit already existing formula content with the formula plugin, proceed as follows:

1. Click on the formula placeholder  or mark the entire formula in LaTeX notation.

2. Click on the option formula  in the text editor.

3. The formula opens in the formula dialogue. You can edit the formula in the text field.
4. Confirm your changes with a click on "Finished".

On the internet, you will find extensive material for generating formulas with MathML. A detailed description is offered by the Official specification of MathML 3.0.

## Formula creation with a formula editor

On the Internet, you can find numerous LaTeX formula editors which provide support for the creation of LaTeX formulas. The Daum Equation Editor, for example, stands out due to its simplicity and extensive functionality. It comes as a web application, which is also available as a browser plugin for Google Chrome.

The operation of the Daum Equation Editor is similar to the formula editors of text programmes. Mathematical formulas can be compiled and adapted thanks to ready-to-use, graphical formula symbols. The formula editor translates the displayed formula into LaTeX notation. You can then select the LaTeX notation, copy it, and paste it to the ONYX HTML input fields.

 Fig.: ONYX Editor formula dialogue Fig.: ONYX Editor HTML EditorFig.: ONYX test implementation formula display

## Formula examples

ONYX uses the MathJax framework to display formulas. On the demo pages of MathJax, you will find several examples on how to insert formulas.

Fig.: Example of an inlined formula

Fig.: Example of a formula centred on a separate line

• No labels