Skip to content

fix: latex支持"\["公式支持 - #606bug #661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

qp666
Copy link

@qp666 qp666 commented Jul 7, 2025

fix:修复latex公式不支持展示"[".
deepseek-AI回答都是"["格式显示公式,公司对接的是deepseek-AI,发现公式显示错误,已修复,顺带修复公式中%分号显示错误

数据参考:
"根据中国个人所得税法,您作为老师在外讲课所得属于劳务报酬,需按以下步骤计算税前金额:\n\n---\n\n### 1. 应纳税所得额计算\n劳务报酬每次收入超过4000元时,先扣除20%的费用,剩余部分为应纳税所得额:\n\[\n\text{应纳税所得额} = \text{税前金额} \times (1 - 20\%) = 0.8X\n\]\n\n---\n\n### 2. 预扣税率\n根据应纳税所得额,适用三级超额累进税率:\n- ≤20,000元:20%(速算扣除数0)\n- 20,000~50,000元:30%(速算扣除数2000)\n- >50,000元:40%(速算扣除数7000)\n\n---\n\n### 3. 方程推导\n已知税后收入为44,560元,设税前金额为\( X \),则:\n\[\nX - \text{预扣税款} = 44,560\n\]\n其中,预扣税款公式为:\n\[\n\text{预扣税款} = 0.8X \times \text{税率} - \text{速算扣除数}\n\]\n\n通过试算确定适用税率档次:\n- 若\( 0.8X > 20,000 \)且\( 0.8X \leq 50,000 \),适用30%税率:\n\[\n\text{预扣税款} = 0.8X \times 30\% - 2000\n\]\n代入方程:\n\[\nX - (0.24X - 2000) = 44,560 \quad \Rightarrow \quad 0.76X = 42,560 \quad \Rightarrow \quad X = \frac{42,560}{0.76} = 56,000\n\]\n\n---\n\n### 4. 验证\n- 应纳税所得额:\( 56,000 \times 0.8 = 44,800 \)元(适用30%税率)\n- 预扣税款:\( 44,800 \times 30\% - 2000 = 11,440 \)元\n- 税后收入:\( 56,000 - 11,440 = 44,560 \)元(与已知一致)\n\n---\n\n### 结论\n对方税前应支付的金额为:\n\[\n\boxed{56,\!000\ \text{元}}\n\] 这些数学公式用$$来声明\n\n"

@qp666
Copy link
Author

qp666 commented Jul 7, 2025

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant