# LaTeX rendering in chat

**URL:** <https://forum.cursor.com/t/latex-rendering-in-chat/3387>\
**Category:** Feature Requests\
**Created:** [March 13, 2024, 10:02am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387 "2024-03-13T10:02:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![geduardo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/geduardo/32/9471_2.png) [@geduardo](https://forum.cursor.com/u/geduardo)\
**Post date:** [March 13, 2024, 10:02am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/1 "2024-03-13T10:02:45Z")

</div>

It’d be nice to add LaTeX rendering to the chat interface. It’s already using Markdown, so probably it’s easy to implement a Mathjax plugin.

For example, I use Cursor to discuss papers (previously transformed to .mdd using Nougat), and it would be nice to have the GPT-4 replies with LaTeX rendering in the chat.

---

<div class="post-metadata">

**Author:** ![myriam](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@myriam](https://forum.cursor.com/u/myriam)\
**Post date:** [March 19, 2024, 10:47am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/2 "2024-03-19T10:47:10Z")

</div>

+1 👍

---

<div class="post-metadata">

**Author:** ![arvid220u](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/arvid220u/32/82089_2.png) [@arvid220u](https://forum.cursor.com/u/arvid220u)\
**Post date:** [March 23, 2024, 3:28am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/3 "2024-03-23T03:28:15Z")

</div>

This is implemented in version 0.30!

---

<div class="post-metadata">

**Author:** ![geduardo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/geduardo/32/9471_2.png) [@geduardo](https://forum.cursor.com/u/geduardo)\
**Post date:** [April 10, 2024, 9:28am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/4 "2024-04-10T09:28:04Z")

</div>

Yes, thanks!

Nonetheless, I’ve noticed that only accepts “\(” and “\[” for inline math, but $ and $$ are not accepted. So half of the time the rendering fails. I’ve tried to give pre-set instructions to the LLM in the settings and it helps but it’s not perfect.

---

<div class="post-metadata">

**Author:** ![geduardo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/geduardo/32/9471_2.png) [@geduardo](https://forum.cursor.com/u/geduardo)\
**Post date:** [April 15, 2024, 8:55am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/5 "2024-04-15T08:55:10Z")

</div>

@arvid220u

---

<div class="post-metadata">

**Author:** ![LionSR](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/lionsr/32/27174_2.png) [@LionSR](https://forum.cursor.com/u/LionSR)\
**Post date:** [April 15, 2024, 9:18am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/6 "2024-04-15T09:18:34Z")

</div>

This would be bad for some use cases of mine where I want to directly copy the latex code. So a switch would be appreciated.

---

<div class="post-metadata">

**Author:** ![bcof](https://avatars.discourse-cdn.com/v4/letter/b/96bed5/32.png) [@bcof](https://forum.cursor.com/u/bcof)\
**Post date:** [May 9, 2024, 1:23pm UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/7 "2024-05-09T13:23:11Z")

</div>

Sorry but why can’t my cursor AI can’t print latex correctly？ It print something like [\int\_V (\nabla \cdot \mathbf{F}) , dV = \oint\_S \mathbf{F} \cdot d\mathbf{S}] QAQ.

---

<div class="post-metadata">

**Author:** ![WineChord](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/winechord/32/16363_2.png) [@WineChord](https://forum.cursor.com/u/WineChord)\
**Post date:** [December 18, 2024, 3:06am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/8 "2024-12-18T03:06:35Z")

</div>

+1 how to support `$$` style latex.

---

<div class="post-metadata">

**Author:** ![Zimran](https://avatars.discourse-cdn.com/v4/letter/z/85e7bf/32.png) [@Zimran](https://forum.cursor.com/u/Zimran)\
**Post date:** [July 5, 2025, 9:30pm UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/9 "2025-07-05T21:30:46Z")

</div>

It’d be nice to render LaTeX formulas in the chat window. As someone who uses cursor for a lot of Math that chat having the ability to display math formulas appropriately would be very useful.

---

<div class="post-metadata">

**Author:** ![blackhc](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/blackhc/32/81344_2.png) [@blackhc](https://forum.cursor.com/u/blackhc)\
**Post date:** [September 29, 2025, 10:55am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/10 "2025-09-29T10:55:20Z")

</div>

This would be really really helpful for similar reasons (working in ML research here)

---

<div class="post-metadata">

**Author:** ![user1685](https://avatars.discourse-cdn.com/v4/letter/u/71e660/32.png) [@user1685](https://forum.cursor.com/u/user1685)\
**Post date:** [January 7, 2026, 2:20am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/11 "2026-01-07T02:20:26Z")

</div>

hard to believe this feature is not addressed till now…

Very disappointing

---

<div class="post-metadata">

**Author:** ![Andres\_Pastor\_Sanche](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Andres\_Pastor\_Sanche](https://forum.cursor.com/u/Andres_Pastor_Sanche)\
**Post date:** [January 29, 2026, 4:57pm UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/12 "2026-01-29T16:57:20Z")

</div>

Wow, why this feature is not already implemeted in 2026? It is crazy

---

<div class="post-metadata">

**Author:** ![Douglas\_Jia](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@Douglas\_Jia](https://forum.cursor.com/u/Douglas_Jia)\
**Post date:** [February 23, 2026, 8:20am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/13 "2026-02-23T08:20:45Z")

</div>

Please implement this feature! It’s critical for research and development! Thank you!

---

<div class="post-metadata">

**Author:** ![Barthelemy\_Charlier](https://avatars.discourse-cdn.com/v4/letter/b/b9e5f3/32.png) [@Barthelemy\_Charlier](https://forum.cursor.com/u/Barthelemy_Charlier)\
**Post date:** [March 12, 2026, 11:56am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/14 "2026-03-12T11:56:50Z")

</div>

would love for this to be implemented aswel

---

<div class="post-metadata">

**Author:** ![A3\_P7](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/a3_p7/32/102955_2.png) [@A3\_P7](https://forum.cursor.com/u/A3_P7)\
**Post date:** [March 26, 2026, 6:26am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/15 "2026-03-26T06:26:15Z")

</div>

how come that select-response and latex rendering feature are still not implemented.

---

<div class="post-metadata">

**Author:** ![AbhinavMir](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/abhinavmir/32/13817_2.png) [@AbhinavMir](https://forum.cursor.com/u/AbhinavMir)\
**Post date:** [April 2, 2026, 7:24am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/17 "2026-04-02T07:24:02Z")

</div>

Can we please revert this and add in a toggle support? It’s very annoying working in Finance-adjacent fields, and having $ to render the rest of the sentence as latex.

---

<div class="post-metadata">

**Author:** ![jonassteinberg1](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jonassteinberg1/32/112210_2.png) [@jonassteinberg1](https://forum.cursor.com/u/jonassteinberg1)\
**Post date:** [May 21, 2026, 2:37pm UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/18 "2026-05-21T14:37:29Z")

</div>

@AbhinavMir I submitted a bug report on this as it drives me crazy:

> [@Text with numbers leads to unreadable text formatting](https://forum.cursor.com/t/text-with-numbers-leads-to-unreadable-text-formatting/161239):
>
> Where does the bug appear (feature/product)? Cursor IDE Describe the Bug Cursor 2.6.22 is rendering unreadable text when responding with numbers. Image attached. Per Cursor’s response: “The dollar signs were triggering LaTeX math rendering — I’ll escape them or just write “USD 340” style going forward. My bad.” Steps to Reproduce Open Cursor IDE Ask a mathematical reasoning question which will require a response with numbers from Cursor. Look for unreadable text Expected Behavior Text is p…

---

<div class="post-metadata">

**Author:** ![shi\_RB](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shi\_RB](https://forum.cursor.com/u/shi_RB)\
**Post date:** [June 3, 2026, 3:48am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/19 "2026-06-03T03:48:07Z")

</div>

@deanrie 这对开发者很难吗，我是用codex换到cursor的，我对于cursor对话框的latex渲染非常不满意，首先是矩阵括号有时候显示有时候不显示，显示的时候也是缩小版；另外，文中latex公式用$$括起的也无法渲染。这对于强理论相关的开发者很不友好，我有时候需要让cursor帮忙分析代码理论公式。

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [June 3, 2026, 6:28am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/20 "2026-06-03T06:28:32Z")

</div>

Hey, thanks for the report. I want to split this into two points, since these are different issues.

Matrix brackets pmatrix and bmatrix and square roots \sqrt sometimes disappear or look out of proportion. This is a known rendering visual bug. KaTeX renders the content, but the stretchy brackets and the radical can fail to draw. We already reported this internally. I can’t share an exact fix timeline yet. Once I have an update, I’ll reply in this thread.

Formulas inside $$…$$ do not render. I need a bit more info to reproduce it:

- Your Cursor version. Go to Settings \> About or use Cursor \> About Cursor
- A specific example formula you wrapped in $$ that did not render
- The Request ID for that reply. Use the chat menu in the top right \> Copy Request ID, if Privacy Mode is off

Also, keep in mind that a single $ can sometimes conflict with currency or normal text parsing, so inline math is more reliable as (…), and block math as […]. But $$ should work too, so please send an example and we’ll dig in.

---

<div class="post-metadata">

**Author:** ![shi\_RB](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@shi\_RB](https://forum.cursor.com/u/shi_RB)\
**Post date:** [June 3, 2026, 9:27am UTC](https://forum.cursor.com/t/latex-rendering-in-chat/3387/21 "2026-06-03T09:27:38Z")

</div>

![image](https://us1.discourse-cdn.com/cursor1/original/3X/1/c/1ccad16c6e36a1d7f334ce890001b54620d53c64.png)

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/0/9/09651e3b039e5893b5919ef7fa006c6cb7c5821e.png)  
以上是我实际使用的示例，你会发现，段内公式用$…$括起的并未渲染，而且段间公式后面会跟一小段对前面渲染公式的错误描述形式（这个是有时候会出现有时候不出现的）。  
$$…$$内的公式无法渲染并未遇到（只有上面这种已渲染公式后跟一段未渲染错误公式的情况），我是指$…$。  
另外，我建议你们的agent能否智能地来输出一定可以渲染的结果，这对于提高使用效率和感受来说非常重要。在许多工程领域，工程代码的理论公式描述对于开发者来说是一个高效理解和优化代码的方式，因此，优雅美观的latex公式显示是一个重要需求，希望你们能够重视。  
最后，谢谢回复。

[Next page](https://forum.cursor.com/t/latex-rendering-in-chat/3387.md?page=2)
