Adding Mathematical Notation (LaTeX) to Canvas

The most basic way to add LaTeX to Canvas content is using the LaTeX Equation Editor which is accessible via the Insert Math Equation button Image of the insert math equation button on the rich text editor toolbaron the editor’s toolbar. However, for more extensive or complex documents, you can also add LaTeX directly to Canvas pages as well as upload a folder and link to it. These methods are described below.

You can type or paste LaTeX directly into a Canvas Page (or other content area). To do this, use the delimiters \( and \) for inline and $$ and $$ for display math.

To display LaTeX, Canvas currently uses version 2.7.7 of MathJax with the TeX-MML-AM_SVG configuration. You can read some key information about what MathJax supports in these pages:

In some cases, it may be cumbersome or repetitive to add and maintain LaTeX directly on Canvas Pages. This may be because there are many linked pages that are updated using a TeX editor, because a specific MathJax configuration is used or because macros are defined in one file and referenced throughout.

In this case, you can upload a zipped folder of files to the Canvas files area and embed one or more of these files into Canvas pages.

To do this:

1. Upload the zipped folder to the Canvas files area (How?)

2. Get the file url that you want to display in a Canvas Page:

  • In the files area, right click on the file name and select Copy Link Address
  • Paste the link to a text editor (e.g. notepad, textedit) and use the two numbers contained in it (course id and file id respectively to reformat the url as follows (e.g.):

    https://canvas.manchester.ac.uk/courses/36630/files/folder/Experiments/e_over_m/e_over_m?preview=1184738
    becomes
    https://canvas.manchester.ac.uk/courses/36630/files/1184738/download

3. Construct the embed code
Paste your url into the src attribute of this snippet:

e.g.

4. Add the embed code to a Canvas Page

  • Add a Canvas Page
  • Title the page and select insert>embed on the Rich Text Editor menu, or click the embed icon on the toolbarimage of the embed button on the canvas rich text editor.
  • Paste the embed code and click submit
  • Save the page
  • Your page should now display