Superscript in a label

730 views
Skip to first unread message

Donia Bzz

unread,
Jul 9, 2019, 6:14:14 PM7/9/19
to desmos-api-discuss
Hi,
I would like to show a label on a point with some text in superscript to express square units. I've tried with Latex 'u^2' then with the Javascript method .sup() but neither worked.
Is this possible?
Thank you,

D.
Screen Shot 2019-07-04 at 14.52.23.png

Chris Lusto

unread,
Jul 9, 2019, 6:17:28 PM7/9/19
to desmos-api-discuss
Hi Donia,

In order to use LaTeX in point labels, you have to wrap the entire label in back-ticks. Here is an example. Note that, currently, you either have to wrap the entire label in back-ticks, or none of the label in back-ticks. In other words, you can't mix plain text and math type inside the same label...yet.

Chris
Reply all
Reply to author
Forward
0 new messages