LaTeX + ChatGPT "Help me fix this..." buttons into our LaTeX editor

Exciting update: Squashed LaTeX error log bugs and integrated ChatGPT "Help me fix this..." buttons into our LaTeX editor for real-time assistance! 💻🚀🙌

This was partly inspired by Terry Tao's recent remark about ChatGPT: "Just being able to resolve >90% of LaTeX compilation issues automatically would be wonderful..."

When clicked, you get a chat like this:

The "Details" contains the error, what you're doing (latex), and a selection from the file to help chatgpt better assist you.

Here's another example:

As a reminder, TimeTravel is another feature of CoCalc that helps in fixing errors -- if you had everything compiling 5 minutes ago, just zip back in time and see what you did to mess things up.