Question How do I add mathematical formulas on a page?
Answer

Use velocity or groovy.

Velocity

  • ${ 1 + (2 * 3) }
Failed to execute the [velocity] macro. Cause: [Encountered " " at xwiki:FAQ.Math[line 2, column 8] Was expecting one of: <IDENTIFIER> ... <OLD_IDENTIFIER> ... ]. Click on this message for details.

Groovy

  • <% println 1 + (2 * 3) %>

Note that using Groovy requires the 'programming' access right.

Another option is to use MathML, if you have a compatible browser.

Tags:
   

Get Connected