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

Adding a feature to activate/deactivate use of LaTeX #1433

Closed
Mid99 opened this issue Jan 6, 2025 · 1 comment
Closed

Adding a feature to activate/deactivate use of LaTeX #1433

Mid99 opened this issue Jan 6, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@Mid99
Copy link

Mid99 commented Jan 6, 2025

Is your feature request related to a problem? Please describe.
For some documents, the use of LaTeX is not optimal. e.g. simple percentage quotes, quarters, (Q1, Q2, ...), nominal currency related figures as $100bn would be better having in plain text as in the original PDF rather than automaically converted in LaTeX
您的特性请求是否与某个问题相关?请描述。
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
More difficult in python removing the LaTeX quotation, espcially for some odd results with quarters or even simple percentage figures
对存在的问题进行清晰且简洁的描述。例如:我一直很困扰的是 [...]

Describe the solution you'd like
Include an option to activate/deactivate LaTeX
描述您期望的解决方案
A clear and concise description of what you want to happen.
By disabeling the automatic LaTeX conversion, just the plain numbers/signs will be extracted from the underlying PDF
清晰且简洁地描述您希望实现的内容。

Describe alternatives you've considered
Tried to remove the LaTeX signs, but esoecially on economic figure with fx and date related figures it didn't show the optimla results
描述您已考虑的替代方案
A clear and concise description of any alternative solutions or features you've considered.
None
清晰且简洁地描述您已经考虑过的任何替代解决方案。

Additional context
提供更多细节
Add any other context or screenshots about the feature request here.
请附上任何相关截图、链接或文件,以帮助我们更好地理解您的请求。

@Mid99 Mid99 added the enhancement New feature or request label Jan 6, 2025
@myhloli
Copy link
Collaborator

myhloli commented Jan 6, 2025

The way to disable formula recognition is quite simple. You just need to open the magic-pdf.json file located in your user directory and set the value of enable under formula-config to false.

@myhloli myhloli closed this as completed Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants