Chat GPT and LaTeX - compatible?

Hey, is there a way that Chat GPT converts LaTeX code and not just simply write the script language down? Some math texts are nearly unreadable because of all the LaTeX signs.

3 Likes

Welcome Cat1.

It’s a good point - does anyone know why stuff isn’t rendered? It seems to do a pretty good job of encoding.

Maybe there are subtle bugs they haven’t been able to squeeze out just yet, or maybe they’re trying to cut down on token utilization. latex probably uses a lot of tokens.

1 Like

At least for rendering, they’re using KaTeX which isn’t fully compatible with LaTeX at the level that MathJax does.

1 Like

You mean Chat GPT uses KaTeX? But shouldn’t be at least simple terms translated then?

1 Like

I haven’t seen any katex, but perhaps this is a plugin thing, which I don’t have access to.

1 Like

I am seeing katex rendered formulas when I have the wolfram plugin enabled, it will render formulas even before wolfram is called. The same question with my own plugin will not enable katex. Don’t know if this is a setting that can be controlled with ai-plugin.json, that would be interesting to know.

2 Likes

Never mind. Just tried the same prompt on default gpt-3.5 and it also had katex rendered math :slight_smile:

2 Likes

Ah, cool. If you specify to use katex it will do so. It’s a bit broken though, some stuff renders, some stuff doesn’t.

If you don’t specify katex, sometimes it just uses special characters. Depends on the roll of the die, I guess.

Have you seen this topic?

New feature: Properly shown mathematical equations

3 Likes

Hey cool, thanks for the answers! I checked the referred link. To say ChatGPT it should use LaTeX didn’t work well but maybe this prompt will work.
Anyway first I will try the plug-ins. Wolfram Alpha plugin actually sounds nice. Otherwise, the link said something about a plugin TeX all things. Could be useful for other sides as well since sometimes stuff is not rendered correctly.
Thanks again, you helped a lot!

1 Like

This one here?
I need to get on that waiting list and hope for the best since plugins are enabled only for pro members for now if I understand them correctly.

2 Likes

Don’t forget to click the heart to show others that this is a useful reply.

3 Likes

Oh yeah sure, sorry, hearts will be given! < :slight_smile:

2 Likes

Did you get to a solution that works for you?

If so, post what you learned as others here would also be interested, I know I am curious, especially if you are doing something different than noted and/or found a solution different than noted. If you post that as your solution also remember to click the solution box at the bottom of the reply. :slightly_smiling_face:

I tend to give hearts to questions with accepted solutions and to those that gave the solution. It is like giving away free money (hearts are the currency of Discourse forums). :slightly_smiling_face:

2 Likes

As a temporary solution I use this prompt here that was giving in the external link:

Could you please use the specific LaTeX math mode delimiters for your response?

LaTex math mode specific delimiters as following

inline math mode : \( and \)
display math mode: insert linebreak after opening $$, \[ and before closing $$, \]

Just c&p it when I ask ChatGPT something that needs mathematical expressions. It works fine.
I looked for TexAllThings but unfortunately it’s only for Chrome, I use Safari. I am thinking about installing Chrome to try it out but for the moment I am fine with the prompt.

About the Wolfram Alpha Plugin; I found what I linked above. Unfortunally you have to set yourself to a waiting list for being able to use plugins via ChatGPT since it is not fully online yet. Let’s hope for the best - I am really looking forward to access since Plugins are even more powerful! Would be very useful for my physics studies…

Hope the solution will help others here with the same problem. Thank you all for the fantastic support (also with this forum), it’s not usual that people in a forum are actually nice. You are a great community!

3 Likes

I have access to the Wolfram Plugin. Shot me a few prompts here and I will post the replies so you can get some feedback. :slightly_smiling_face:

Thank you for your kind offer! I will comer back to you if I need some feedback but for the moment it is okay since LaTeX works now and for equations I use Wolfram directly.
Just two questions: With this Wolfram Plugin ChatGPT can actually solve equations? And how long did you wait for getting access? It’s just so amazing! :star_struck:

Have you seen:

I just received access for ChatGPT plugins about 3 days ago. While I did not get it from being on the waitlist I did get it in an approved manner. Lets just say it pays to be helpful to others and I was not expecting it as such.

Could you perhaps DM me with details about this?

Haven’t found much luck though the waiting list :laughing:

If I did then others would expect the same. :slightly_frowning_face:

1 Like