docling-project / docling-project/docling

Inline math: support for latex style formatting

Open
#2,352 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
66.4k
Forks
4.8k
Avg merge
3d 4h
Merged PRs (30d)
95

Description

### Question
I want to convert PDFs of scholarly articles to HTML preserving all equations and inline math in LaTeX format. Is there currently a support for this?

I see that `do_formula_enrichment` does it only for equations but all inline math is still returned as plain text. E.g., for this paper https://arxiv.org/pdf/2005.09267v2:

Image

Image

Perhaps, I missed smth in the documentation.

Many thanks in advance!

Contributor guide

Open the contributing guide

Research direction

Start by reading the do_formula_enrichment entry point and reproduce the reported behavior with the linked arXiv PDF. Trace how display equations and inline math are represented during PDF-to-HTML conversion; done means inline math is preserved in LaTeX-style formatting as well as display equations, with the behavior documented or covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, python
Domain
content
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.