juzeon / SydneyQt

A cross-platform desktop client for the jailbroken New Bing AI Copilot (Sydney ver.) built with Go and Wails (previously based on Python and Qt).
The Unlicense
809 stars 77 forks source link

[BUG] LaTeX显示出现奇怪表现 #246

Closed riverai closed 3 months ago

riverai commented 3 months ago

问和答:

user 你尝试输出一些常见的高等数学级别的公式,我看看我的阅读器是否能正常显示

assistant 当然可以。下面是一些高等数学中常见的公式,使用 LaTeX 格式编写:

  1. 极限的定义: $$\lim_{x \to a} f(x) = L$$

  2. 导数的定义: $$\frac{df}{dx} = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}$$

  3. 积分的基本定理: $$\int_{a}^{b} f'(x) \, dx = f(b) - f(a)$$

  4. 泰勒级数展开: $$f(x) = f(a) + f'(a)(x-a) + \frac{f''(a)}{2!}(x-a)^2 + \cdots + \frac{f^{(n)}(a)}{n!}(x-a)^n + \cdots$$

  5. 二次方程的解: $$x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$$

  6. 矩阵的行列式: $$\text{det}(A) = \begin{vmatrix} a & b \ c & d \ \end{vmatrix} = ad - bc$$

  7. 欧拉公式: $$e^{i\pi} + 1 = 0$$

在一边输出一边显示的时候,可以显示公式。但是等多输出一些之后,输出的公式就成了__special_katext_id_2__这样的结构。

image

image