Replies: 1 comment
-
This definitely needs to be added. I had to make a whole space with an attached PDF of the official LaTeX guidelines, just so I could get answers that aren't impossible to read. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Perplexity seems to struggle with correctly wrapping LaTeX. It is supposed to use
\( ... \)
for inline-, and\[ ... \]
for block-LaTeX, however for Spaces with some math-related PDFs indexed, it always seems to use$ ... $
(I guess because Perplexity's indexer uses this while indexing the PDFs), which is not rendered as LaTeX (and also generally advised against). This is happening even with extreme enforcing in the Space's system prompt, and that is, I believe, on top of the enforcement in Perplexity's underlying system prompt. It may sometimes use$$ ... $$
, which does get rendered correctly, but still the syntax mentioned above is recommended. The only way to easily mitigate this is by specifying the usage of\( ... \)
and\[ ... \]
in the user prompt, and even that fails sometimes, so you have to tell it to repeat the previous answer and fix the LaTeX wrapping.This could be a nice idea for a simple plugin that checks for wrong LaTeX wrapping (regex) and fixes it (maybe even on demand with a button instead of automatic). (Perplexity uses KaTeX)
Beta Was this translation helpful? Give feedback.
All reactions