Canvas Equation Editor Tips: Chemistry Using LaTeX

In the Canvas Equation Editor, available in the Rich Content Editor you can optionally use LaTeX code to enter chemical formulas and chemical equations. This document provides tips for entering chemical formula, chemical equations, and scientific notation using LaTeX. 

You can learn more about using the the Equation Editor as an instructor or as a student

Notes:

  • In addition to the Equation Editor, you can manually enter equations in any Canvas area that includes a text field, such as the title of an assignment or in a calendar event.
  • Other resource documents provide tips for entering advanced math.

Writing Chemical Formulas

  • For entering a formula, use _ (underscore) for subscripts and ^ (carat) for superscripts. If there is more than one character in the subscript or superscript, wrap the characters with braces { }.
  • If you’d like your chemical formulas without the italics, use \text{ } to enclose the elements.

Formula

LaTeX Code

afoote_1-1652911264773.png

 

C_6H_6

afoote_2-1652911264935.png

 

\text{C}_6\text{H}_6

afoote_3-1652911264771.png

 

SO_4^{2-}

afoote_4-1652911264771.png

 

\text{SO}_4^{2-}

afoote_5-1652911264772.png

 

Al_3(SO_4)_2

afoote_6-1652911264939.png

 

\text{Al}_3(\text{SO}_4)_2


Writing Scientific Notation

  • There are two ways to write the times symbol: \times and \cdot. These are available on the Equation Editor toolbar, but you can also use LaTeX to enter them.
  • You can use ^ for exponents. If the exponent contains more than one character, place the exponent text in braces { }.
  • To remove italicization, use \text{ } wrapped around units.
  • To place space between numbers and units, use \space.

Scientific Notation

LaTeX Code

afoote_7-1652911294688.png

 

5.10\times10^{-3}\space\text{mol}

afoote_8-1652911294705.png

 

6.02\cdot10^{23}\space\text{atoms}

 

Writing Chemical Equations

To write chemical equations, you’ll need to use a variety of reaction arrows. Arrows are available on the Equation Editor toolbar, but you can also enter them via LaTeX. Here is a short list of arrows and their LaTeX codes:

Arrow

LaTeX Code

afoote_9-1652911304169.png

 

\longrightarrow

afoote_10-1652911304173.png

 

\longleftarrow

afoote_11-1652911304172.png

 

\xrightarrow{text}

afoote_12-1652911304181.png

 

\xleftarrow{text}

afoote_13-1652911304175.png

 

\leftrightharpoons

afoote_14-1652911304176.png

 

\rightleftharpoons

afoote_15-1652911304171.png

 

\rightleftarrows

afoote_16-1652911304183.png

 

\leftrightarrows


Using LaTeX, you can enter a variety of equations. You may wish to use \space to provide space between quantities and chemical formulas. If you want to remove the italicized elements, it is usually easier to write the formula first, and then go through and insert \text{ } around all the elements in the formula.

Scientific Notation

LaTeX Code

afoote_17-1652911317866.png

 

CH_4+2O_2\longrightarrow CO_2+2H_2O

afoote_18-1652911317873.png

 

\text{CH}_4+2\text{O}_2\longrightarrow \text{CO}_2+2\text{H}_2\text{O}

afoote_19-1652911317876.png

 

2 H_2O_2\space(aq)\xrightarrow{Pt}

2 H_2O\space(l)+O_2\space(g)

afoote_20-1652911317879.png

 

2\space\text{H}_2\text{O}_2\space(aq)

\xrightarrow{\text{Pt}}

2\space\text{H}_2\text{O}\space(l)+

\text{O}_2\space(g)




Last update: 2024-04-22

You can access this resource from the following Canvas Guides:

Labels (1)