News for hackers. Stuff that matters.
Re:Everything ChatGPT – under the hood of the ChatGPT web app by tylerekahn on Wednesday March 22, 2023 @08:44PM (#35269130)
The web app also has built in support for LaTeX rendering (it uses KaTeX). See this forum post: https://community.openai.com/t/new-feature-properly-shown-ma...

You can get ChatGPT to output conforming LaTeX expressions using the following prompt:

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

LaTex math mode specific delimiters as following

1. inline math mode : `\(` and `\)`

2. display math mode: insert linebreak after opening `$$`, `\[` and before closing `$$`, `\]`

Re:Everything ChatGPT – under the hood of the ChatGPT web app by dhoe on Thursday March 23, 2023 @03:29AM (#35271511)
Super nice, thanks for posting this!
Re:Everything ChatGPT – under the hood of the ChatGPT web app by tercmd on Thursday March 23, 2023 @11:19AM (#35276204)
In some of the ChatGPT client-side JS (visible in the Debugger tab of DevTools), I could see references like `\triangle`. However, asking ChatGPT to print either as it is just prints the text itself.
Re:Everything ChatGPT – under the hood of the ChatGPT web app by tylerekahn on Thursday March 23, 2023 @12:08PM (#35276955)
This prompt works best with GPT 4. GPT 3.5 gives inconsistent results. There might be a way of improving the prompt for 3.5
Re:Everything ChatGPT – under the hood of the ChatGPT web app by tercmd on Friday March 24, 2023 @12:25AM (#35285075)
Turns out, this actually does work.