How to create a paragraph?

To create a linebreak:

  • In theory pages, press enter in the editor.
  • In exercises, press shift+enter.

In the resulting HTML (press the source code button to see the HTML), you will see that the editor inserts paragraph (p) tags.

How to create a line break?

To create a linebreak:

  • In theory pages, press shift+enter in the editor.
  • In exercises, press enter.

Inside latex equations, you can also use line breaks to format the source, but not paragraphs. It's best to always use line breaks when working inside a latex equation.

In the resulting HTML (press the source code button to see the HTML), you will see that the editor inserts linebreak (br) tags.

Too much white space after a MathJax display environment
 
If you create an exercise, and include a display MathJax environment, you may have noticed that you get too much white space. For example:

Note that if we multiple 
\[ \frac{x}{2}=2 \]
by two, we get
\[ x=4 \]

This will look like this for the student (note the extra break after the equation):

You can solve this by pressing shift+enter (instead of enter) after a display equation. In the editor this will look like there is more space, but the student will not get the extra line break.

Did this answer your question?