Skip to content
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

数学公式识别出错 #1887

Open
jonny4589 opened this issue Mar 10, 2025 · 1 comment
Open

数学公式识别出错 #1887

jonny4589 opened this issue Mar 10, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@jonny4589
Copy link

Description of the bug | 错误描述

Image
例如该公式识别出的latex公式如下
$$
\mathsf{b}(\mathrm{t})=\mathsf{E}[\mathrm{V_{i}}|\mathrm{t}]-\frac{\upmu\mathrm{P_{b}}(t)}{\epsilon+\mu P_{b}(t)}(E[V_{i}|t]-\underbar{V}_{i})
$$
但是其中upmu不是一个可用的参数会报错。同样的latex公式中还会出现\upalpha这种不支持的参数

Image

How to reproduce the bug | 如何复现

1.导入含该公式的pdf文件
2.使用python demo中的例子转换成md文件
3.打开转换出来的md文件预览,会直接显示ParseError: KaTeX parse error: Undefined control sequence: \upmu at position 68: …thrm{t}]-\frac{\̲u̲p̲m̲u̲\mathrm{P_{b}}(…。

Operating system | 操作系统

Linux

Python version | Python 版本

3.10

Software version | 软件版本 (magic-pdf --version)

1.0.x

Device mode | 设备模式

cpu

@jonny4589 jonny4589 added the bug Something isn't working label Mar 10, 2025
@jonny4589
Copy link
Author

magic-pdf 版本是1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant