Skip to content

[ChatMessage] 组件无法正确渲染三角函数等文本! #4133

@synctimes163

Description

@synctimes163

tdesign-miniprogram 版本

1.12.0

重现链接

No response

重现步骤

腾讯元宝、问:数学三角函数,通过回答,可以正常渲染三角函数,抓取文本,放到组件中,无法渲染

Image Image

"content": [
{
"type": "text",
"msg": "好的,我们先把数学三角函数的核心内容给你梳理一下,方便快速掌握重点。 \n\n---\n\n## 一、基本概念\n三角函数是研究角度与边长关系的函数,主要用于直角三角形和单位圆中。 \n常见的六个三角函数:\n\n1. 正弦:$\sin\theta = \frac{\text{对边}}{\text{斜边}}$ \n2. 余弦:$\cos\theta = \frac{\text{邻边}}{\text{斜边}}$ \n3. 正切:$\tan\theta = \frac{\text{对边}}{\text{邻边}} = \frac{\sin\theta}{\cos\theta}$ \n4. 余切:$\cot\theta = \frac{1}{\tan\theta} = \frac{\text{邻边}}{\text{对边}}$ \n5. 正割:$\sec\theta = \frac{1}{\cos\theta}$ \n6. 余割:$\csc\theta = \frac{1}{\sin\theta}$\n\n---\n\n## 二、单位圆定义\n在单位圆(半径为 1)中,设角 $\theta$ 的终边与单位圆交于点 $(x, y)$:\n- $\sin\theta = y$\n- $\cos\theta = x$\n- $\tan\theta = \frac{y}{x} \ (x \neq 0)$\n\n---\n\n## 三、常用公式\n### 1. 基本恒等式\n$$\n\sin^2\theta + \cos^2\theta = 1\n$$\n$$\n1 + \tan^2\theta = \sec^2\theta\n$$\n$$\n1 + \cot^2\theta = \csc^2\theta\n$$\n\n### 2. 诱导公式(部分)\n$$\n\sin(\pi - \theta) = \sin\theta,\quad \cos(\pi - \theta) = -\cos\theta\n$$\n$$\n\sin(-\theta) = -\sin\theta,\quad \cos(-\theta) = \cos\theta\n$$\n$$\n\sin(\theta + 2\pi) = \sin\theta,\quad \cos(\theta + 2\pi) = \cos\theta\n$$\n\n### 3. 和差公式\n$$\n\sin(A \pm B) = \sin A\cos B \pm \cos A\sin B\n$$\n$$\n\cos(A \pm B) = \cos A\cos B \mp \sin A\sin B\n$$\n$$\n\tan(A \pm B) = \frac{\tan A \pm \tan B}{1 \mp \tan A\tan B}\n$$\n\n### 4. 倍角与半角公式\n- 倍角:\n$$\n\sin 2\theta = 2\sin\theta\cos\theta\n$$\n$$\n\cos 2\theta = \cos^2\theta - \sin^2\theta = 2\cos^2\theta - 1 = 1 - 2\sin^2\theta\n$$\n- 半角:\n$$\n\sin\frac{\theta}{2} = \pm\sqrt{\frac{1 - \cos\theta}{2}}\n$$\n$$\n\cos\frac{\theta}{2} = \pm\sqrt{\frac{1 + \cos\theta}{2}}\n$$\n\n---\n\n## 四、图像与性质\n| 函数 | 定义域 | 值域 | 周期 | 奇偶性 |\n|------|--------|------|------|--------|\n| $\sin x$ | $\mathbb{R}$ | $[-1,1]$ | $2\pi$ | 奇 |\n| $\cos x$ | $\mathbb{R}$ | $[-1,1]$ | $2\pi$ | 偶 |\n| $\tan x$ | $x \neq \frac{\pi}{2}+k\pi$ | $\mathbb{R}$ | $\pi$ | 奇 |\n\n---\n\n## 五、应用\n- 解三角形(正弦定理、余弦定理)\n- 波动与振动分析\n- 信号处理(傅里叶变换)\n- 工程和物理中的周期性现象\n\n---\n\n如果你需要,我可以帮你整理一份三角函数速查表,包含常用角度值、图像特点以及解题技巧,方便考试复习。 \n你要我帮你做这个速查表吗?",
"redirect": {}
}
],

期望结果

能正常渲染三角函数

实际结果

No response

基础库版本

No response

补充说明

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions