Difference between revisions of "Adding mathematical formulas in quizzes"

From CjWiki
Jump to navigation Jump to search
(Created page with "Starting v5.0.3, you can add mathematical formulas inside the quiz description, question description, and answers. Community Quiz uses KaTex library to display mathematical fo...")
 
 
Line 9: Line 9:
 
* If you enabled "Button - Maths" plugin, a button is displayed in your Joomla editor to easily add formulas.
 
* If you enabled "Button - Maths" plugin, a button is displayed in your Joomla editor to easily add formulas.
 
* You can also add formulas manually anywhere in the description or the answers using the HTML code shown below
 
* You can also add formulas manually anywhere in the description or the answers using the HTML code shown below
<syntaxhighlight lang="html5"><span class="math">YOUR LaTex FORMULA HERE</span></syntaxhighlight>
+
  <pre><span class="math">YOUR LaTex FORMULA HERE</span></pre>

Latest revision as of 14:39, 24 March 2019

Starting v5.0.3, you can add mathematical formulas inside the quiz description, question description, and answers. Community Quiz uses KaTex library to display mathematical formulas and it ships with a copy of it.

How to enable formulas?

  1. Make sure you have v5.0.3 or later version installed
  2. Enabled "Load Maths/Tex Library" option either in the component options or in the quiz options
  3. If you would like to insert the formulae using your Joomla editor, enable "Button - Maths" (type editors-xtd) plugin is enabled.

How to add formulas

  • If you enabled "Button - Maths" plugin, a button is displayed in your Joomla editor to easily add formulas.
  • You can also add formulas manually anywhere in the description or the answers using the HTML code shown below
<span class="math">YOUR LaTex FORMULA HERE</span>