{"id":3410,"date":"2025-07-31T12:01:08","date_gmt":"2025-07-31T11:01:08","guid":{"rendered":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/?p=3410"},"modified":"2026-03-09T09:17:52","modified_gmt":"2026-03-09T09:17:52","slug":"adding-mathematical-notation-latex-to-canvas","status":"publish","type":"post","link":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/adding-mathematical-notation-latex-to-canvas\/","title":{"rendered":"Adding Mathematical Notation (LaTeX) to Canvas"},"content":{"rendered":"\n<p>The most basic way to add LaTeX to Canvas content is using the <a href=\"https:\/\/community.canvaslms.com\/t5\/Canvas-Basics-Guide\/How-do-I-use-the-math-Equation-Editor-in-the-Rich-Content-Editor\/ta-p\/618231\">LaTeX Equation Editor<\/a> which is accessible via the <strong>Insert Math Equation<\/strong> button <img loading=\"lazy\" decoding=\"async\" width=\"40\" height=\"28\" class=\"wp-image-3427\" style=\"width: 40px;\" src=\"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-content\/uploads\/sites\/8\/2025\/07\/equation.gif\" alt=\"Image of the insert math equation button on the rich text editor toolbar\">on the editor\u2019s 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.<\/p>\n\n\n\n<div class=\"wp-block-group page-navigation has-base-color has-text-color has-background has-link-color wp-elements-3beab05687f0a3f87edf7dd2e509a355 has-global-padding is-layout-constrained wp-container-core-group-is-layout-74eabeda wp-block-group-is-layout-constrained\" style=\"border-style:none;border-width:0px;border-radius:8px;background-color:#6184d8;padding-top:var(--wp--preset--spacing--x-small);padding-right:var(--wp--preset--spacing--small);padding-bottom:var(--wp--preset--spacing--x-small);padding-left:var(--wp--preset--spacing--small)\">\n<p class=\"post-nav-title\"><strong>Contents<\/strong><\/p>\n\n\n\n<ol style=\"margin-top:5px;margin-bottom:5px;padding-right:var(--wp--preset--spacing--x-small);padding-left:var(--wp--preset--spacing--x-small)\" class=\"wp-block-list\">\n<li><a href=\"#adding-latex-rich-text-editor\">Adding LaTeX Directly to the Canvas Rich Text Editor<\/a><\/li>\n\n\n\n<li style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0\"><strong><a href=\"#adding-folders-containing-latex\" data-type=\"internal\" data-id=\"#adding-folders-containing-latex\">Adding Folders Containing LaTeX Files to Canvas <\/a><\/strong><\/li>\n<\/ol>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-da79a4a7 wp-block-group-is-layout-flex\" style=\"border-bottom-color:var(--wp--preset--color--base-2);border-bottom-width:2px;padding-top:10px;padding-bottom:10px\">\n<h2 class=\"wp-block-heading has-base-2-color has-text-color has-link-color wp-elements-5bec0cd0a571b010a366504d78bd2a0b\" id=\"adding-latex-rich-text-editor\" style=\"padding-top:0px;padding-right:0;padding-bottom:0px;padding-left:0\">Adding LaTeX Directly to the Canvas Rich Text Editor<\/h2>\n<\/div>\n\n\n\n<p>You can type or paste LaTeX directly into a Canvas Page (or other content area). To do this, <strong>use the delimiters \\( and \\) for inline and $$ and $$ for display math<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-group has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-89843b1b wp-block-group-is-layout-constrained\" style=\"border-radius:8px;background-color:#96299e;padding-top:8px;padding-right:8px;padding-bottom:8px;padding-left:var(--wp--preset--spacing--x-small)\">\n<div class=\"wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile is-layout-flex wp-container-core-columns-is-layout-133cf375 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"padding-right:0;padding-left:0;flex-basis:8%\">\n<figure class=\"wp-block-image aligncenter size-large is-resized\" style=\"margin-right:0;margin-left:var(--wp--preset--spacing--x-small)\"><img decoding=\"async\" src=\"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-content\/uploads\/sites\/8\/2024\/12\/info.svg\" alt=\"\" class=\"wp-image-1042\" style=\"object-fit:cover;width:30px;height:30px\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:92%\">\n<p class=\"has-base-5-color has-base-background-color has-text-color has-background has-link-color has-x-small-font-size wp-elements-c9f3aefee465f0c4c75259d48e6130f7\" style=\"border-top-right-radius:8px;border-bottom-right-radius:8px;padding-top:8px;padding-right:20px;padding-bottom:8px;padding-left:20px\">There are a few fields that do not accept LaTeX directly, including the answer field in the <strong>matching<\/strong> question type.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p>To display LaTeX, Canvas currently <strong>uses version 2.7.7 of MathJax with the&nbsp;TeX-MML-AM_SVG configuration<\/strong>. You can read some key information about what MathJax supports in these pages:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.mathjax.org\/en\/latest\/input\/tex\/differences.html\">Differences from Actual TeX<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/docs.mathjax.org\/en\/latest\/input\/tex\/macros.html\">Defining TeX macros<\/a><\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-89843b1b wp-block-group-is-layout-constrained\" style=\"border-radius:8px;background-color:#96299e;padding-top:8px;padding-right:8px;padding-bottom:8px;padding-left:var(--wp--preset--spacing--x-small)\">\n<div class=\"wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile is-layout-flex wp-container-core-columns-is-layout-133cf375 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"padding-right:0;padding-left:0;flex-basis:8%\">\n<figure class=\"wp-block-image aligncenter size-large is-resized\" style=\"margin-right:0;margin-left:var(--wp--preset--spacing--x-small)\"><img decoding=\"async\" src=\"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-content\/uploads\/sites\/8\/2024\/12\/info.svg\" alt=\"\" class=\"wp-image-1042\" style=\"object-fit:cover;width:30px;height:30px\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:92%\">\n<p class=\"has-base-5-color has-base-background-color has-text-color has-background has-link-color has-x-small-font-size wp-elements-02d9fe19e0c55ed13767f230b8d44fb4\" style=\"border-top-right-radius:8px;border-bottom-right-radius:8px;padding-top:8px;padding-right:20px;padding-bottom:8px;padding-left:20px\">The pages above relate to version 3.2 of MathJax. The <a href=\"https:\/\/docs.mathjax.org\/en\/v2.7-latest\/\">MathJax 2.7.7 documentation<\/a> doesn\u2019t appear to be as clear on these areas.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-89843b1b wp-block-group-is-layout-constrained\" style=\"border-radius:8px;background-color:#96299e;padding-top:8px;padding-right:8px;padding-bottom:8px;padding-left:var(--wp--preset--spacing--x-small)\">\n<div class=\"wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile is-layout-flex wp-container-core-columns-is-layout-133cf375 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"padding-right:0;padding-left:0;flex-basis:8%\">\n<figure class=\"wp-block-image aligncenter size-large is-resized\" style=\"margin-right:0;margin-left:var(--wp--preset--spacing--x-small)\"><img decoding=\"async\" src=\"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-content\/uploads\/sites\/8\/2024\/12\/info.svg\" alt=\"\" class=\"wp-image-1042\" style=\"object-fit:cover;width:30px;height:30px\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:92%\">\n<p class=\"has-base-5-color has-base-background-color has-text-color has-background has-link-color has-x-small-font-size wp-elements-9679fad37f04c4a0079c0cdd4f6adcc2\" style=\"border-top-right-radius:8px;border-bottom-right-radius:8px;padding-top:8px;padding-right:20px;padding-bottom:8px;padding-left:20px\">The configuration of MathJax included in Canvas (TeX-MML-AM_SVG) also uses the <strong>backtick<\/strong> character ` as a delimiter &#8211; this is useful to be aware of if you use backticks for any specific purpose in your LaTeX files as it may cause unexpected display issues.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-89843b1b wp-block-group-is-layout-constrained\" style=\"border-radius:8px;background-color:#faba25;padding-top:8px;padding-right:8px;padding-bottom:8px;padding-left:var(--wp--preset--spacing--x-small)\">\n<div class=\"wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile is-layout-flex wp-container-core-columns-is-layout-133cf375 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"padding-right:0;padding-left:0;flex-basis:8%\">\n<figure class=\"wp-block-image aligncenter size-large is-resized\" style=\"margin-right:0;margin-left:var(--wp--preset--spacing--x-small)\"><img decoding=\"async\" src=\"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-content\/uploads\/sites\/8\/2024\/12\/light-bulb.svg\" alt=\"\" class=\"wp-image-1110\" style=\"object-fit:cover;width:35px;height:35px\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:92%\">\n<p class=\"has-base-5-color has-base-background-color has-text-color has-background has-link-color has-x-small-font-size wp-elements-d7f5edd54c21167fc057c8f03f9da4fd\" style=\"border-top-right-radius:8px;border-bottom-right-radius:8px;padding-top:8px;padding-right:20px;padding-bottom:8px;padding-left:20px\">If you wish to use a custom MathJax configuration, this cannot be done using the Editor. However, you can use the method described below.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-nowrap is-layout-flex wp-container-core-group-is-layout-da79a4a7 wp-block-group-is-layout-flex\" style=\"border-bottom-color:var(--wp--preset--color--base-2);border-bottom-width:2px;padding-top:10px;padding-bottom:10px\">\n<h2 class=\"wp-block-heading has-base-2-color has-text-color has-link-color wp-elements-d623083b38b6566e87ad020c8d449bee\" id=\"adding-folders-containing-latex\" style=\"padding-top:0px;padding-right:0;padding-bottom:0px;padding-left:0\"><strong>Adding Folders Containing LaTeX Files to Canvas <\/strong><\/h2>\n<\/div>\n\n\n\n<p>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.<\/p>\n\n\n\n<p>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.<\/p>\n\n\n\n<p><strong>To do this:<\/strong><\/p>\n\n\n\n<p><strong>1. Upload and expand the zipped folder to the Canvas files area (<a href=\"https:\/\/community.canvaslms.com\/t5\/Canvas-Basics-Guide\/How-do-I-upload-ZIP-files-in-Files\/ta-p\/617192\">How?<\/a>)<\/strong><\/p>\n\n\n\n<p><strong>2. Get the file url that you want to display in a Canvas Page:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>In the files area, right click on the file name and select <strong>Copy Link Address<\/strong><\/li>\n\n\n\n<li>Paste the link to a text editor (e.g. notepad, textedit) and use the two numbers&nbsp;contained in it (course id and file id respectively) to reformat the url as follows (e.g.):<br><br>https:\/\/canvas.manchester.ac.uk\/courses\/<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">36630<\/mark><\/strong>\/files\/folder\/Experiments\/e_over_m\/e_over_m?preview=<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">1184738<\/mark><\/strong><br><strong>becomes <\/strong><br>https:\/\/canvas.manchester.ac.uk\/courses\/<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">36630<\/mark><\/strong>\/files\/<strong><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">1184738<\/mark><\/strong>\/download<\/li>\n<\/ul>\n\n\n\n<p><strong>3. Construct the embed code<\/strong><br>Paste your url into the src attribute of this snippet:<\/p>\n\n\n\n<pre class=\"wp-block-code has-base-5-color has-text-color has-link-color wp-elements-e93249569517a766c427ae99ac88f5da\" style=\"border-width:1px\"><code>&lt;p&gt;&lt;iframe src=\"<mark style=\"background-color:rgba(0, 0, 0, 0);color:#ff0000\" class=\"has-inline-color\">&lt;add your url here&gt;<\/mark>\" width=\"100%\" height=\"1000\"&gt;&lt;\/iframe&gt;&lt;\/p&gt;<\/code><\/pre>\n\n\n\n<p>e.g.<\/p>\n\n\n\n<pre class=\"wp-block-code has-base-5-color has-text-color has-link-color wp-elements-9847a5dfde25ccc7eb5840aa5993c7c9\" style=\"border-width:1px\"><code>&lt;p&gt;&lt;iframe src=\" https:\/\/canvas.manchester.ac.uk\/courses\/36630\/files\/1184738\/download\" width=\"100%\" height=\"1000\" &gt;&lt;\/iframe&gt;&lt;\/p&gt;<\/code><\/pre>\n\n\n\n<p><strong>4. Add the embed code to a Canvas Page<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Add a Canvas Page<\/li>\n\n\n\n<li>Title the page and select <strong>insert<\/strong>&gt;<strong>embed<\/strong> on the Rich Text Editor menu, or click the embed icon on the toolbar<img loading=\"lazy\" decoding=\"async\" width=\"40\" height=\"32\" class=\"wp-image-3426\" style=\"width: 40px;\" src=\"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-content\/uploads\/sites\/8\/2025\/07\/embed.gif\" alt=\"image of the embed button on the canvas rich text editor\">.<\/li>\n\n\n\n<li>Paste the embed code and click <strong>submit<\/strong><\/li>\n\n\n\n<li>Save the page<\/li>\n\n\n\n<li>Your page should now display<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-group has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-89843b1b wp-block-group-is-layout-constrained\" style=\"border-radius:8px;background-color:#faba25;padding-top:8px;padding-right:8px;padding-bottom:8px;padding-left:var(--wp--preset--spacing--x-small)\">\n<div class=\"wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile is-layout-flex wp-container-core-columns-is-layout-133cf375 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"padding-right:0;padding-left:0;flex-basis:8%\">\n<figure class=\"wp-block-image aligncenter size-large is-resized\" style=\"margin-right:0;margin-left:var(--wp--preset--spacing--x-small)\"><img decoding=\"async\" src=\"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-content\/uploads\/sites\/8\/2024\/12\/light-bulb.svg\" alt=\"\" class=\"wp-image-1110\" style=\"object-fit:cover;width:35px;height:35px\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:92%\">\n<p class=\"has-base-5-color has-base-background-color has-text-color has-background has-link-color has-x-small-font-size wp-elements-69095e337ebdd689782898c82438a645\" style=\"border-top-right-radius:8px;border-bottom-right-radius:8px;padding-top:8px;padding-right:20px;padding-bottom:8px;padding-left:20px\">When you overwrite an uploaded folder with a new version, using the same folder name, the link embedded in the Canvas page will automatically update.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-group has-background has-global-padding is-layout-constrained wp-container-core-group-is-layout-89843b1b wp-block-group-is-layout-constrained\" style=\"border-radius:8px;background-color:#96299e;padding-top:8px;padding-right:8px;padding-bottom:8px;padding-left:var(--wp--preset--spacing--x-small)\">\n<div class=\"wp-block-columns are-vertically-aligned-center is-not-stacked-on-mobile is-layout-flex wp-container-core-columns-is-layout-133cf375 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"padding-right:0;padding-left:0;flex-basis:8%\">\n<figure class=\"wp-block-image aligncenter size-large is-resized\" style=\"margin-right:0;margin-left:var(--wp--preset--spacing--x-small)\"><img decoding=\"async\" src=\"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-content\/uploads\/sites\/8\/2024\/12\/info.svg\" alt=\"\" class=\"wp-image-1042\" style=\"object-fit:cover;width:30px;height:30px\"\/><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-column is-vertically-aligned-center is-layout-flow wp-block-column-is-layout-flow\" style=\"flex-basis:92%\">\n<p class=\"has-base-5-color has-base-background-color has-text-color has-background has-link-color has-x-small-font-size wp-elements-1771e4b9fdfce85b7fd8d763703fbbd8\" style=\"border-top-right-radius:8px;border-bottom-right-radius:8px;padding-top:8px;padding-right:20px;padding-bottom:8px;padding-left:20px\">For Advanced Users: To add a custom version of the MathJax library in your uploaded files, see the MathJax documentation here:<strong> <a href=\"https:\/\/www.mathjax.org\/#gettingstarted\">Simple integration<\/a><\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 on the editor\u2019s 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. [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3410","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/posts\/3410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/comments?post=3410"}],"version-history":[{"count":30,"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/posts\/3410\/revisions"}],"predecessor-version":[{"id":6188,"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/posts\/3410\/revisions\/6188"}],"wp:attachment":[{"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/media?parent=3410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/categories?post=3410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elearning.fse.manchester.ac.uk\/getting-started-with-canvas\/wp-json\/wp\/v2\/tags?post=3410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}