Is there a LaTeX table reader in Julia? I know there are several writers, but I haven’t been able to find something that takes the LaTeX source as input.
The reason I’m interested is that MathPix is really good at OCRing tables, but it outputs to LaTeX. (Example use case: I want to do some analysis with some data I find printed in a PDF.)
I know this would be really easy to throw together a basic version of, but I didn’t want to reinvent the wheel if it’s already out there.
The part I’d be interested in is just the part between the \begin{array} and \end{array}.
@tbeason I’m starting to think you’re right about the difficulties here. At the most basic level, you’re just splitting into rows and then into entries. For the simplest examples, this would be trivial. But I’m thinking it’s likely to happen fairly often that MathPix outputs something that the naive algorithm isn’t prepared for. Handling that complexity in a graceful way is almost certainly more work than it’s worth.
My understanding is that there are LaTeX table readers in Python. That’s probably the right solution.
Considering the different codes/environments one can use to generate a latex table, this is probably really difficult. I guess it would be marginally easy to develop something for mathpix only, as you have some gaurantee what the output code will include.