请问HN:你们使用什么提示来让Claude稳定地渲染LaTeX?
我目前同时订阅了Claude和ChatGPT。一般来说,我更喜欢Claude,但由于我的工作中涉及大量数学内容,它在正确渲染LaTeX方面常常存在问题,因此我无法完全依赖它。<p>一个渲染失败的例子可以在这里找到[1]。如果我将所有工作都交给Claude,几乎每天都会遇到这样或更糟的问题。因此,我发现直接向ChatGPT提问数学问题更为简单,因为它似乎在输出LaTeX方面有更强大的系统。<p>不过,我希望能够合并我的订阅,所以我想问问是否有人有有效的系统提示,可以指导Claude生成有效的LaTeX。我自己尝试了一些提示,但很难找到它能够始终遵循的内容。<p>[1] https://imgur.com/yzlluOA
查看原文
I currently have subscriptions to both Claude and ChatGPT. I generally prefer the former but find I can't fully commit to it for my maths-heavy workload as it often struggles to correctly render LaTeX.<p>An example of this failed rendering is here [1]. If I use Claude for all of my work, I come across issues like this or worse at least once a day. Instead, I find it easier just to ask any maths questions to ChatGPT which seems to have a much more robust system for outputting LaTeX.<p>I would love to merge my subscriptions though, so I'm here to ask whether anyone has a system prompt that has been effective in guiding Claude towards producing valid LaTeX. I've tried a few prompts myself but struggled to find anything that it consistently followed.<p>[1] https://imgur.com/yzlluOA