# Ways to display Latex / Tex / Mathematical Notation in Glide

**URL:** <https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966>\
**Category:** Ask for Help\
**Created:** [April 25, 2023, 4:26pm UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966 "2023-04-25T16:26:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamad\_A](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hamad_a/32/16579_2.png) [@Hamad\_A](https://community.glideapps.com/u/Hamad_A)\
**Post date:** [April 25, 2023, 4:26pm UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/1 "2023-04-25T16:26:37Z")

</div>

Hello friends,

I’m building a student helper app that uses OCR to scan math questions and solves them using GPT.

The OCR automation outputs a Latex styled string to represent the formula

EX:  
`\int\left(x^{5}-6 x+3\right) d x=`

I’m able to pass off the initial question to a third party service that would render the formula as an image i can use.

The problem I run into, however, is when GPT starts using formulas in its own answer. GPT also uses Tex / LaTex (specifically, this service: [https://www.katex.org/](https://www.katex.org/)) formatting, and so its response contains a mix of normal english, and these Tex strings.

EX:

> Sure! Using the power rule of integration, we can integrate each term separately:
> 
> ```auto
> \begin{align*}
> \int\left(x^{5}-6 x+3\right) dx &= \int x^5 dx - \int 6x dx + \int 3 dx \\
> &= \frac{x^6}{6} - 3x + 3C,
> \end{align*}
> 
> ```
> 
> where `$C$` is the constant of integration.

Any ideas on how this problem should be approached? What can I do to properly output this text on glide?

This one is really bothersome fellas, and I’d appreciate any input you can provide on the matter 🙂

---

<div class="post-metadata">

**Author:** ![Hamad\_A](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hamad_a/32/16579_2.png) [@Hamad\_A](https://community.glideapps.com/u/Hamad_A)\
**Post date:** [April 26, 2023, 8:33am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/2 "2023-04-26T08:33:02Z")

</div>

Small bump to this - maybe the legends @Darren_Murphy or @ThinhDinh can advise 🙂

Happy to provide more screenshots / images as needed.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 26, 2023, 8:52am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/3 "2023-04-26T08:52:07Z")

</div>

Could you not instruct Chat-GPT to provide a response in plain English?

---

<div class="post-metadata">

**Author:** ![Hamad\_A](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hamad_a/32/16579_2.png) [@Hamad\_A](https://community.glideapps.com/u/Hamad_A)\
**Post date:** [April 26, 2023, 9:50am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/4 "2023-04-26T09:50:17Z")

</div>

Thanks for the follow-up Darren! I could, but GPT wouldn’t necessarily honor the request all the time.

Furthermore, formulas are super-useful to have in terms of a user experience. The app would lose a lot of its utility if we remove such notation from the solution steps.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 26, 2023, 9:52am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/5 "2023-04-26T09:52:27Z")

</div>

Okay, then I’m not clear on what you are trying to get? 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![Hamad\_A](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hamad_a/32/16579_2.png) [@Hamad\_A](https://community.glideapps.com/u/Hamad_A)\
**Post date:** [April 26, 2023, 9:59am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/6 "2023-04-26T09:59:15Z")

</div>

Basically I’m trying to output GPT answers with Tex formatting within Glide. Here’s an example of Tex output in Glide compared to how it looks from within GPT itself.

**Glide**

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/6/86ad2b1939bec90fb411a08c587b03e37a1cec13.png)

**GPT**

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/6/56a8d3e7f4898f6045dc6d10b6c69a91e99889a5.png)

My question: Is there no way for me to be able to output formulas the same way GPT does in its native chat interface?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 26, 2023, 10:10am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/7 "2023-04-26T10:10:27Z")

</div>

I see. So basically you want the output rendered in the same way as Katex would present it, yes?

It might be possible to load Katex and do it with a JavaScript column, or alternatively you could probably set up your own hosted instance and embed that in a webview.

---

<div class="post-metadata">

**Author:** ![Hamad\_A](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/hamad_a/32/16579_2.png) [@Hamad\_A](https://community.glideapps.com/u/Hamad_A)\
**Post date:** [April 26, 2023, 10:16am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/8 "2023-04-26T10:16:30Z")

</div>

Correct! As far as I’m aware, JS columns would not be able to import js libraries but it seems that I’m mistaken.

Maybe I should give that a shot, and if all else fails - an embedded web view may be a path forward assuming I can steal a kind developer from the team to set up a hosted instance.

Let me give both of these a shot and report back on my findings 🫡

Much appreciated sir 🙌

P.S. I’ve used multiple guides of yours in the past. Specifically, the working day calculator + CSV file output guides were eye-openers; so thanks for all the help you’ve already provided 🙂

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 26, 2023, 10:22am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/9 "2023-04-26T10:22:07Z")

</div>

The below thread may provide some inspiration:

> [@How to import code packages in the JavaScript column](https://community.glideapps.com/t/how-to-import-code-packages-in-the-javascript-column/34466):
>
> The [JavaScript column](https://www.glideapps.com/plugins/hell-yes-code) already includes [lodash](https://lodash.com/), which provides a value named \_ with many useful utility functions. lodash is the most popular JavaScript library in the world, so we included it by default even if you do not use it. @Jeff_Hager recently [requested](https://github.com/glideapps/glide-code-columns/issues/82) mathjs support in the JavaScript column. mathjs is another top JavaScript library, but including it by default means that every app that uses the JavaScript column would load this library as well, even though very few people need it. Tod…

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 27, 2023, 12:04am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/10 "2023-04-27T00:04:29Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/6/86ad2b1939bec90fb411a08c587b03e37a1cec13.png)

Can you tell me how you get Glide to display the formula in Latex form at the top? (just above the “Tutor” part).

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 27, 2023, 2:03am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/11 "2023-04-27T02:03:48Z")

</div>

I think it’s an image…

> [@Hamad\_A](#):
>
> I’m able to pass off the initial question to a third party service that would render the formula as an image i can use.

---

<div class="post-metadata">

**Author:** ![Andrew\_Learned](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andrew_learned/32/67008_2.png) [@Andrew\_Learned](https://community.glideapps.com/u/Andrew_Learned)\
**Post date:** [August 30, 2023, 6:14pm UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/12 "2023-08-30T18:14:33Z")

</div>

Did you ever get this working?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [August 30, 2023, 6:21pm UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/13 "2023-08-30T18:21:47Z")

</div>

Try using `notalk;justgo` at the end of the prompt

---

<div class="post-metadata">

**Author:** ![Saliou-S](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/saliou-s/32/85676_2.png) [@Saliou-S](https://community.glideapps.com/u/Saliou-S)\
**Post date:** [March 17, 2025, 5:00am UTC](https://community.glideapps.com/t/ways-to-display-latex-tex-mathematical-notation-in-glide/60966/14 "2025-03-17T05:00:37Z")

</div>

I share my solution here. If anyone need to implement this I can help !

[Scientific formulas](https://community.glideapps.com/t/scientific-formulas/78366)

> [@Scientific formulas](https://community.glideapps.com/t/scientific-formulas/78366/8):
>
> This Is transformed to this By using javascript column. Here is a snap : If anyone need help to implement this. I can help !
