# Is there a way to format text in subtitle?

**URL:** https://cl.desmos.com/t/is-there-a-way-to-format-text-in-subtitle/7304
**Category:** Questions
**Created:** [September 23, 2024, 1:08am UTC](https://cl.desmos.com/t/is-there-a-way-to-format-text-in-subtitle/7304 "2024-09-23T01:08:37Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Alexander\_3691](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/alexander_3691/32/3959_2.png) [@Alexander\_3691](https://cl.desmos.com/u/Alexander_3691)
#### Post date: [September 23, 2024, 1:08am UTC](https://cl.desmos.com/t/is-there-a-way-to-format-text-in-subtitle/7304/1 "2024-09-23T01:08:37Z")

</div>

Is it possible to format text in the subtitle so that some words (numbers) are bold or italicized or different color?

---

<div class="post-metadata">

### Author: ![Mike\_Gleeson](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mike_gleeson/32/650_2.png) [@Mike\_Gleeson](https://cl.desmos.com/u/Mike_Gleeson)
#### Post date: [September 23, 2024, 3:14pm UTC](https://cl.desmos.com/t/is-there-a-way-to-format-text-in-subtitle/7304/2 "2024-09-23T15:14:03Z")

</div>

you could use math formatting to do that, say:  
`\mathsf\mathbf\textcolor{red}{e=mc^2}`

---

<div class="post-metadata">

### Author: ![Alexander\_3691](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/alexander_3691/32/3959_2.png) [@Alexander\_3691](https://cl.desmos.com/u/Alexander_3691)
#### Post date: [September 24, 2024, 5:37am UTC](https://cl.desmos.com/t/is-there-a-way-to-format-text-in-subtitle/7304/3 "2024-09-24T05:37:55Z")

</div>

Thank you for your advice; how shall I paste it? If I type something like

```auto
subtitle: "\mathsf\mathbf\textcolor{red}{e=mc^2}"

```

I see only \mathsf\mathbf\textcolor{red}{e=mc^2} without color and without math formatting of the formula.

---

<div class="post-metadata">

### Author: ![Mike\_Gleeson](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mike_gleeson/32/650_2.png) [@Mike\_Gleeson](https://cl.desmos.com/u/Mike_Gleeson)
#### Post date: [September 24, 2024, 12:21pm UTC](https://cl.desmos.com/t/is-there-a-way-to-format-text-in-subtitle/7304/4 "2024-09-24T12:21:13Z")

</div>

Ah, you’re passing in a String there. Use backticks: ``

---

<div class="post-metadata">

### Author: ![Alexander\_3691](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/alexander_3691/32/3959_2.png) [@Alexander\_3691](https://cl.desmos.com/u/Alexander_3691)
#### Post date: [September 24, 2024, 11:01pm UTC](https://cl.desmos.com/t/is-there-a-way-to-format-text-in-subtitle/7304/5 "2024-09-24T23:01:39Z")

</div>

> [@Alexander\_3691](#):
>
> `subtitle: "\mathsf\mathbf\textcolor{red}{e=mc^2}"`

Very much obliged!!!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/f/f5bd144684474e9a2f333002cde9840e52c5dbd3.png) [@system](https://cl.desmos.com/u/system)
#### Post date: [September 26, 2024, 11:01pm UTC](https://cl.desmos.com/t/is-there-a-way-to-format-text-in-subtitle/7304/6 "2024-09-26T23:01:58Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
