# How to enter units in latex?

In a CL note, how do I enter units in latex? I am using a note and would like to write something that, in regular Latex, would look like:

g=9.8\text{m/s}^2

In latex, this is usually entered “g=0.8\text{m/s}^2”

However, the \text directive is not understood by Desmos. I understand this is probably because Desmos does not load the package amsmath. What is the alternative to entering units in latex?

Yeah frustratingly Desmos implements a subset of Mathquill, so options are limited. Fortunately there is a solution for what you want:

g=9.8 \mathrm{m/s^2}


Thanks for the response. Unfortunately, it is not working for me. This is what I am getting in the preview:

As soon as I type the slash, the Desmos formula editor inserts a fraction, which is not what I want.

It works. Here you go:

Yes, and incidentally the \mathrm thing specifically refers to the Roman font-face.