Skip to content

Markdown中的Latex公式格式问题(多余空格) #85

@VitoLin21

Description

@VitoLin21

System Info / 系統信息

正常部署的自托管服务,4090*1

Who can help? / 谁可以帮助到您?

No response

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

输入样例:
1998年湖南高考理科数学真题及答案.pdf

运行命令:
glmocr parse examples/source/1998年湖南高考理科数学真题及答案.pdf --output ./examples/result/ --config ./glmocr/config.yaml

得到结果后预览:

Image

问题:
相当多的行内latex公式,在$符号前后都会出现不应该出现的不符合语法的空白,例如:
$ -\frac{\sqrt{3}}{2} $
这种情况时,公式无法渲染,正确书写格式应该是:
$-\frac{\sqrt{3}}{2}$
即:$-\frac{\sqrt{3}}{2}$,$应该是紧贴公式的,行间公式($$)的目前问题比较少

Expected behavior / 期待表现

能够正确输出公式的内容,去掉多余空格

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions