LaTeX公式
一、功能介绍
本功能支持在脚本中插入LaTeX公式,实现可视化渲染展示与真人语音播报,适合教学、科普、理科讲解、学术内容等场景使用。
二、使用前提
- 需选择支持公式播报的音色
- 官方音色:部分音色支持播报
- 克隆音色:全部支持公式播报
- 不支持公式的音色,「公式」按钮会置灰不可点
三、快速上手:公式操作
1. 插入公式
- 将光标放到需要插入公式的位置
- 点击工具栏 公式 按钮
- 在弹窗内直接输入 LaTeX 命令
- 系统自动做语法检查,输入正确后点 确定
- 脚本区会显示渲染好的可视化公式
2. 输入规则
- 最大长度:100 个字符
- 输入为空/语法错误:确定按钮置灰并提示
3. 编辑公式
点击已插入的公式 → 在弹窗修改 → 确定
4. 删除公式
- 方法1:光标放在公式后,按 Backspace
- 方法2:点击公式 → 弹窗点 移除
四、自动识别公式(复制/导入)
从脚本库、PPT、文生文结果复制文本时:
- 文本被
$…$正确包裹 - 公式语法合法
- 当前音色支持公式
→ 自动转为可播报、可渲染公式
五、音色切换注意事项
- 从支持公式 → 切换到不支持公式:
- 脚本含公式 → 弹窗二次确认
- 确认后公式会被清除
- 系统自动切换音色(语种/性别不匹配):
- 若新音色不支持公式 → 公式自动清除并提示
六、LaTeX公式全表
📌 使用Tips
- 公式格式说明
- 手动插入公式:公式首尾无需使用$…$包裹
- 脚本库等外部文本:如果使用正确latex格式编写,且首尾有$…$包裹,复制或应用时可以支持自动转为公式
- 字母发音说明:如果想实现字母读音,建议使用下述方式
- 方式一:字母之间使用空格隔开,例如
y = a x + b y - 方式二:书写为大写字母形式,例如
Y=AX+BY
- 方式一:字母之间使用空格隔开,例如
- 文字嵌入说明:公式中不支持嵌入汉字
- 渲染效果说明:如果公式渲染出现红字,请检查命令是否正确或被支持
基础数学
Latex命令 | 说明 | 中文播报 | 英文播报 | 公式示例 | 公式示例-中文播报 | 公式示例-英文播报 |
|---|---|---|---|---|---|---|
+ | 加 | 加 | plus | 2 + 3 = 5 | 二加三等于五 | two plus three equals five |
- | 减 | 减 | minus | 3 - 2 = 1 | 三减二等于一 | three minus two equals one |
\pm | 加减 | 加减 | plus or minus | \pm 1 \pm 2 | 正负一加减二 | plus or minus one plus or minus two |
正负 | 正负 | plus or minus | ||||
\mp | 减加 | 减加 | minus or plus | sin(A \mp B) | sin(A 减加 B) | the sine of (A minus or plus B) |
\times | 乘 | 乘 | times | 2 \times 3 = 6 | 二乘三等于六 | two times three equals six |
× | 2 × 3 = 6 | |||||
\cdot | 2⋅3=6 | |||||
* | 2 * 3 = 6 | |||||
\div | 除 | 除以 | divided by | 6 \div 2=3 | 六除以二等于三 | six divided by two equals three |
÷ | 6÷2=3 | |||||
/ | 6/2=3 | |||||
= | 等于 | 等于 | equals | 3+5=8 | 三加五等于八 | three plus five equals eight |
≠ | 不等于 | 不等于 | is not equal to | 3+2≠8 | 三加二不等于八 | Three plus two is not equal to eight |
≈ | 约等于 | 约等于 | is approximately equal to | x≈±5 | x约等于正负五 | x is approximately equal to plus or minus five |
< | 小于 | 小于 | is less than | 1<2 | 一小于二 | one is less than two |
≤ | 小于等于 | 小于等于 | is less than or equal to | 3≤5 | 三小于等于五 | three is less than or equal to five |
<= | 3<=5 | |||||
\leq | 3 \leq 5 | |||||
\le | 3 \le 5 | |||||
\leqq | 3 \leqq 5 | |||||
\leqslant | 3 \leqslant 5 | |||||
> | 大于 | 大于 | is greater than | 2>1 | 二大于一 | two is greater than one |
≥ | 大于等于 | 大于等于 | is greater than or equal to | 5≥3 | 五大于等于三 | five is greater than or equal to three |
>= | 5>=3 | |||||
\geq | 5 \geq 3 | |||||
\ge | 5 \ge 3 | |||||
\geqq | 5 \geqq 3 | |||||
\geqslant | 5 \geqslant 3 | |||||
\positive | 正数 | 正 | positive | \positive 5 | 正五 | positive five |
\negative | 负数 | 负 | negative | \negative 5 | 负五 | negative five |
| | 绝对值 | 的绝对值 | the absolute value of | |3|=3 | 三的绝对值等于三 | the absolute value of three equals three |
\vert | \vert 3 \vert=3 | 三的绝对值等于三 | the absolute value of three equals three | |||
: | 比值 | 比 | to | 3:2 | 三比二 | three to two |
. | 小数点 | 点 | point | 3.14 | 三点一四 | three point one four |
\% | 百分比 | 百分之 | percent | 5 \% | 百分之五 | five percent |
\frac | 真分数&假分数 | 分之 |
| 2 \frac 3 | 三分之二 | two-thirds |
分式 | 分之 |
| x=\frac{-b \pm \sqrt{b^2 - 4a c}}{2a} | x 等于 2a 分之 负b 加减 根号下 b的平方 减 4ac | x equals negative b plus or minus the square root of b squared minus 4ac, all over 2a | |
\tfrac | 带分数 | X又X分之X | 整数+and+分数读法 | 1 \tfrac{2}{3} | 一又三分之二 | one and two-thirds |
^ | 次方 | 的N次方 | to the power of | 2^1 | 二的一次方 | two to the power of one |
^2 | 平方 | 的平方 | squared | a^2 | a的平方 | A squared |
^3 | 立方 | 的立方 | cubed | a^3 | a的立方 | A cubed |
\sqrt | 开根 | 根号下 | the square root of | \sqrt{9} = 3 | 根号下九等于三 | the square root of nine equals three |
N次根号下(N≥3) |
| \sqrt[3]{8} = 2 | 三次根号下八等于二 | the cube root of eight equals two | ||
\lg | 底数为10的对数 | log | log | \lg{10} | log十 | log ten |
\log | 底数为10的对数 | log | log | \log{5} | log五 | log five |
底数为a的对数 (a是≥2的整数) | 以a为底、x的对数 | log base a of x | \log_{a}{x} | 以a为底、x的对数 | log base a of x | |
\ln | 自然对数 | ln | natural log of | \ln X | ln十 | natural log of ten |
'() | 一阶导数 | …关于(…)的一阶导数 | the first derivative of … with respect to … | f'(x) | f 关于 x 的一阶导数 | the first derivative of f with respect to x |
''() | 二阶导数 | …关于(…)的二阶导数 | the second derivative of … with respect to … | f''(x) | f 关于 x 的二阶导数 | the second derivative of f with respect to x |
'''() | 三阶导数 | …关于(…)的三阶导数 | the third derivative of … with respect to … | f'''(x) | f 关于 x 的三阶导数 | the third derivative of f with respect to x |
^{(n)}() | n阶导数 | …关于(…)的n阶导数 | the nth derivative of … with respect to … | f^{(n)}(x) | f 关于 x 的n阶导数 | the nth derivative of f with respect to x |
! | 阶乘 | 的阶乘 | the factorial of | 5! | 五的阶乘 | the factorial of five |
() | 括号 | 的值 | the quantity (…) |
|
|
|
[] | 中括号 | 的值 | the quantity (…) |
|
|
|
\{ \} | 大括号 | 的值 | the quantity (…) | {[(a+b)×c]-d} | a+b的值乘c的值减d的值 | the quantity a plus b times the quantity c minus the quantity d |
特殊数学符号
Latex命令 | 说明 | 中文播报 | 英文播报 |
|---|---|---|---|
\infty | ∞ | 无穷 | infinite |
∞ | |||
\alpha | α | alpha | alpha |
\Alpha | Α | ||
\beta | β | beta | beta |
\Beta | Β | ||
\gamma | γ | gamma | gamma |
\Gamma | Γ | ||
\delta | δ | delta | delta |
\Delta | Δ | ||
\epsilon | ε | epsilon | epsilon |
\Epsilon | Ε | ||
\zeta | ζ | zeta | zeta |
\Zeta | Ζ | ||
\eta | η | eta | eta |
\Eta | Η | ||
\theta | θ | theta | theta |
\Theta | Θ | ||
\iota | ι | iota | iota |
\Iota | I | ||
\kappa | κ | kappa | kappa |
\Kappa | K | ||
\lambda | λ | lambda | lambda |
\Lambda | Λ | ||
\mu | μ | mu | mu |
\Mu | M | ||
\nu | ν | nu | nu |
\Nu | N | ||
\xi | ξ | xi | xi |
\Xi | Ξ | ||
\omicron | ο | omicron | omicron |
\Omicron | O | ||
\rho | ρ | rho | rho |
\Rho | P | ||
\sigma | σ,ς | sigma | sigma |
\Sigma | Σ | ||
\tau | τ | tau | tau |
\Tau | T | ||
\upsilon | υ | upsilon | upsilon |
\Upsilon | Υ | ||
\phi | ϕ | phi | phi |
\Phi | Φ | ||
\varphi | φ | ||
\chi | χ | chi | chi |
\Chi | Χ | ||
\psi | ψ | psi | psi |
\Psi | Ψ | ||
\omega | ω | omega | omega |
\Omega | Ω |
条件
Latex命令 | 说明 | 中文播报 | 英文播报 | 公式示例 | 公式示例-中文播报 | 公式示例-英文播报 |
|---|---|---|---|---|---|---|
\implies | ⇒ | 推出 |
| \implies 1+1=2 | 推出一加一等于二 | it implies one plus one equals two |
\Rightarrow |
| x > 5 \implies x^2 > 25 | x大于5推出x的平方大于25 | if x is greater than 5, then x squared is greater than 25 | ||
\Longrightarrow | ||||||
\iff | ⇔ | 等价于 |
| p \iff q | p等价于q | p is equivalent to q |
\Leftrightarrow |
| a>b \iff b<a | a大于b等价于b小于a | a is greater than b if and only if b is less than a | ||
\longleftrightarrow | ||||||
\because | ∵ | 因为 | because | \because a=b \therefore b=a | 因为a等于b所以b等于a | because a equals b therefore b equals a |
\therefore | ∴ | 所以 | therefore |
几何
Latex命令 | 说明 | 中文播报 | 英文播报 | 公式示例 | 公式示例-中文播报 | 公式示例-英文播报 |
|---|---|---|---|---|---|---|
\pi | Π | 派 | pi | \pi = 3.14159 | 派等于三点一四一五九 | pi equals three point one four one five nine |
\sin | 三角函数 | sine | the sine of | \sin 30^\circ = 1 \frac2 | sine三十度等于二分之一 | the sine of thirty degrees equals one over two |
sin | sin 30^ \circ = 1 \frac2 | |||||
sine | sine 30^ \circ = 1 \frac2 | |||||
\cos | cosine | the cosine of | \cos 45^\circ = \frac{\sqrt {2}}{2} | cosine四十五度等于二分之根号下二 | the cosine of forty-five degrees equals root of two over two | |
cos | cos 45^\circ = \frac{\sqrt {2}}{2} | |||||
cosine | cosine 45^\circ = \frac{\sqrt {2}}{2} | |||||
\tan | tangent | the tangent of | \tan 30^\circ = \frac{\sin 30^\circ}{\cos 30^\circ} | tangent三十度等于cosine三十度分之sine三十度 | the tangent of thirty degrees equals the sine of thirty degrees over the cosine of thirty degrees | |
tan | tan 30^\circ = \frac{\sin 30^\circ}{\cos 30^\circ} | |||||
tangent | tangent 30^\circ = \frac{\sin 30^\circ}{\cos 30^\circ} | |||||
\csc | cosecant | the cosecant of | \csc A | cosecant A | the cosecant of A | |
csc | csc A | |||||
cosecant | cosecant A | |||||
\sec | secant | the secant of | \sec A | secant A | the secant of A | |
sec | sec A | |||||
secant | secant A | |||||
\cot | cotangent | the cotangent of | \cot A | cotangent A | the cotangent of A | |
cot | cot A | |||||
cotangent | cotangent A | |||||
\angle | 角 | 角 | the angle | \angle AB | 角AB | the angle AB |
∠ | ∠AB | |||||
^\circ | 度 | 度 | degree(s) | ∠AB = 30^\circ | 角AB 等于三十度 | the angle AB equals thirty degrees |
\odot | 圆 | 圆 | the circle | \odot A | 圆A | the circle A |
\overset\frown | 弧 | 弧 | the arc | \overset\frown{BC} | 弧BC | the arc BC |
\rm{Rt} | 直角 | 直角 | the right angle | \because \rm{Rt}AB | 因为直角AB | Because the right angle AB |
\mathrm{Rt} | \because \mathrm{Rt}AB | 因为直角AB | Because the right angle AB | |||
\triangle | 三角形 | 三角形 | the triangle | \triangle ABC | 三角形ABC | the triangle ABC |
△ | △ABC | |||||
\rm{Rt} \triangle | 直角三角形 | 直角三角形 | the right triangle | \rm{Rt} \triangle ABC | 直角三角形ABC | the right triangle ABC |
\rm{Rt} △ | \rm{Rt} △ ABC | |||||
\mathrm{Rt} \triangle | \mathrm{Rt} \triangle ABC | |||||
\mathrm{Rt} △ | \mathrm{Rt} △ ABC | |||||
\perp | 垂直 | 垂直于 | is perpendicular to | AB \perp BC | AB 垂直于 BC | AB is perpendicular to BC |
\bot | AB \bot BC | |||||
⊥ | AB ⊥ BC | |||||
\parallel | 平行 | 平行于 | is parallel to | A \parallel B | A平行于B | A is parallel to B |
\cong | 全等 | 全等于 | is congruent to | △ABC \cong △DEF | 三角形ABC全等于三角形DEF | the triangle ABC is congruent to the triangle DEF |
单位
单位需要使用特定格式包裹,例如5 \mathit{cm},支持格式如下
\mathit{}、\mathrm{}、\rm{}
Latex命令 | 中文播报 | 英文播报 | 公式示例 | 公式示例-中文播报 | 公式示例-英文播报 |
|---|---|---|---|---|---|
mm | 毫米 | millimeter | 5 \mathit{mm} | 五毫米 | five millimeters |
cm | 厘米 | centimeter | 5 \mathit{cm} | 五厘米 | five centimeters |
dm | 分米 | decimeter | 5 \mathit{dm} | 五分米 | five decimeters |
m | 米 | meter | 5 \mathit{m} | 五米 | five meters |
km | 千米 | kilometer | 5 \mathit{km} | 五千米 | five kilometers |
mg | 毫克 | milligram | 5 \mathit{mg} | 五毫克 | five milligrams |
g | 克 | gram | 5 \mathit{g} | 五克 | five grams |
kg | 千克 | kilogram | 5 \mathit{kg} | 五千克 | five kilograms |
t | 吨 | tonne | 5 \mathit{t} | 五吨 | five tonnes |
mm^2 | 平方毫米 | square millimeter | 5 \mathit{mm^2} | 五平方毫米 | five square millimeters |
cm^2 | 平方厘米 | square centimeter | 5 \mathit{cm^2} | 五平方厘米 | five square centimeters |
dm^2 | 平方分米 | square decimeter | 5 \mathit{dm^2} | 五平方分米 | five square decimeters |
m^2 | 平方米 | square meter | 5 \mathit{m^2} | 五平方米 | five square meters |
km^2 | 平方千米 | square kilometer | 5 \mathit{m^2} | 五平方千米 | five square kilometers |
hm^2 | 公顷 | hectare | 5 \mathit{hm^2} | 五公顷 | five hectares |
mm^3 | 立方毫米 | cubic millimeter | 5 \mathit{mm^3} | 五立方毫米 | five cubic millimeters |
cm^3 | 立方厘米 | cubic centimeter | 5 \mathit{cm^3} | 五立方厘米 | five cubic centimeters |
dm^3 | 立方分米 | cubic decimeter | 5 \mathit{dm^3} | 五立方分米 | five cubic decimeters |
m^3 | 立方米 | cubic meter | 5 \mathit{m^3} | 五立方米 | five cubic meters |
km^3 | 立方千米 | cubic kilometer | 5 \mathit{km^3} | 五立方千米 | five cubic kilometers |
ml | 毫升 | milliliter | 5 \mathit{ml} | 五毫升 | five milliliters |
l | 升 | liter | 5 \mathit{l} | 五升 | five liters |
L | 5 \mathit{L} | ||||
s | 秒 | second | 5 \mathit{s} | 五秒 | five seconds |
min | 分钟 | minute | 5 \mathit{min} | 五分钟 | five minutes |
h | 小时 | hour | 5 \mathit{h} | 五小时 | five hours |
m/s | 米每秒 | meter per second | 5 \mathit{m/s} | 五米每秒 | five meters per second |
km/h | 千米每小时 | kilometre per hour | 5 \mathit{km/h} | 五千米每小时 | five kilometres per hour |
g/l | 克每升 | gram per litre | 5 \mathit{g/l} | 五克每升 | five grams per litre |
集合
Latex命令 | 说明 | 中文播报 | 英文播报 | 公式示例 | 公式示例-中文播报 | 公式示例-英文播报 |
|---|---|---|---|---|---|---|
\subseteq | ⊆ | 包含于 | is a subset of | A \subseteq B | A 包含于B | A is a subset of B |
\emptyset | ∅ | 空集 | the emptyset | A \cap B=\emptyset | A 与B 的交集等于空集 | the intersection of A and B equals the emptyset |
\varnothing | A \cap B=\varnothing | |||||
\in | ∈ | 属于 | is in | x \in A | x 属于 A | x is in A |
\notin | ∉ | 不属于 | is not in | x \notin A | x 不属于A | x is not in A |
\cup | ∪ | …与…的并集 | the union of … and … | A \cup B | A与B 的并集 | the union of A and B |
\cap | ∩ | …与…的交集 | the intersection of … and … | A \cap B | A与B 的交集 | the intersection of A and B |