DTU Learn Support

Teachers

Using LaTeX in the HTML-editor

This tutorial shows how to add LaTeX equations to the HTML-editor, giving you increased flexibility in what you are able to add to your content.

This can be done either by using the built-in Equation function or by opening the LaTeX equation by using specific commands.

Using the built-in Equation function:
  1. Go to the relevant text editor. In this case we will show how to add a LaTeX equation to the description of a module. Click "Course Content" and select "Content".
  2. Go to the relevant module and click "Add a description".
  3. Once the text editor has opened, press the Upper-case Sigma 'Σ' dropdown and then choose LaTeX Equation symbolized by '/Σ'.
  4. A LaTeX Equation editor will now open. The LaTeX editor allows you to preview how the equation looks. You can also access a 'supported command list' by clicking 'Which LaTeX commands are supported?'.
  5. After you have written your equation, press insert.
  6. Write whatever else you want to add to your text and click 'Update'/'Save and Close'.
  7. This is how the equation will look.
Using LaTeX syntax in the text editor:


  1. Go to the relevant text editor. In this case we will show how to add a LaTeX equation to the description of a module. Click "Course Content" and select "Content".
  2. Go to the relevant module and click "Add a description".
  3. You can write LaTeX syntax straight into the text editor, however the equations must be opened and closed with either '\( EQUATION \)' if you want the equation within the sentence or '$$ EQUATION $$' if you want the equation centered.
  4. Write whatever else you want to add to your text and click 'Update'/'Save and Close'.
  5. This is how the two types of equations will look.