Monday, January 24, 2022

How to add Math equations while authoring H5P Content types

Mathematical expressions can be added to all text fields in the H5P authoring tool. There are three different ways you can use to let H5P know this is LaTeX:

  • \( some LaTeX \) for inline LaTeX, commonly used as part of sentences within a text
  • \[ some LaTeX \] or optionally $$ some LaTeX $$ for block LaTeX, commonly used as a standalone formula that will be centered - from h5p.org
  • For Example, to display the equation 
    S = 1/2 Sign alpha

  • you have to type as \( S = \frac{1}{2}  \sin(\alpha) \)
  • In the above S = \frac{1}{2}  \sin(\alpha)  is the LateX. 
  • So the syntax is \ ( Some LaTex\) 

See these useful links:
  1. Wiki Book on LaTeX code for math equations. 
  2. A web based Mathematical Entry System
  3. See working text in H5P Course Presentation




No comments:

Post a Comment