lukas-blecher / LaTeX-OCR

pix2tex: Using a ViT to convert images of equations into LaTeX code.
https://lukas-blecher.github.io/LaTeX-OCR/
MIT License
12.7k stars 1.03k forks source link

How to get rid of the $ sign in latexocr GUI output? #374

Open RamPrime opened 7 months ago

RamPrime commented 7 months ago

In the output of latexocr GUI, the latex equation is of the form '$ latex here $ '. In many cases, I only want to copy the latex equation but not the $ signs. i.e., image

What procedure should I take to modify the file?

I am using Python 3.10.8, win 11 x64.

ustcwl commented 7 months ago

After OCR, the latex code is automatically saved in the clipboard without $.