NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Feature] 希望可以支持公式显示

Open paststrange opened this issue 3 years ago • 5 comments

chat版已经支持latex公式了,希望能支持latex公式。

paststrange avatar Jul 29 '23 16:07 paststrange

Bot detected the issue body's language is not English, translate it automatically.


Title: [Feature] Hope to support formula display

The chat version already supports latex formulas, and I hope to support latex formulas.

Issues-translate-bot avatar Jul 29 '23 16:07 Issues-translate-bot

?

image

Yidadaa avatar Jul 30 '23 15:07 Yidadaa

Bot detected the issue body's language is not English, translate it automatically.


?

image

Issues-translate-bot avatar Jul 30 '23 15:07 Issues-translate-bot

其实$...$、$$...$$还不能代表latex公示,(...) 和 [...] 分别在latex中代表inline和display math。如上图所示,

(x) 和(y) 是两个待比较的图像。
(mu_x)和(mu_y)分别表示(x)和(y) 的亮度平均值。

这里其实gpt返回了 \(x\) 和 \(y\),转义的 \ 又被隐藏了,所以没有被正确地显示。由于经常和公示打交道,希望这部分可以特殊处理一下,比如将 \(...\)替换为$...$, 将\[...\]替换为$$...$$.

remann2 avatar Aug 19 '23 18:08 remann2

Bot detected the issue body's language is not English, translate it automatically.


In fact, $...$, $$...$$ cannot represent latex publicity, (...) and [...] represent inline and display math in latex respectively. As shown in FIG,

(x) and (y) are the two images to be compared.
(mu_x) and (mu_y) denote the average brightness values ​​of (x) and (y), respectively.

Here, gpt actually returns \(x\) and \(y\), and the escaped \ is hidden again, so it is not displayed correctly. Since I often deal with public announcements, I hope this part can be treated specially, such as replacing \(...\) with $...$, replacing \[...\] with $$... $$.

Issues-translate-bot avatar Aug 19 '23 18:08 Issues-translate-bot