The pix2tex works great in latex ocr, the problem is the hotkey applied only valid when the gui is focused. This tool mainly modify the gui.py to result better experience.
- package keyboard:
pip install keyboard
- latexocr
https://github.com/lukas-blecher/LaTeX-OCR
- Identify the location of pix2tex
- Replace gui.py with given file
- Run the result with cmd:
python -m pix2tex.__main__ --gui
or modifying the .bat file to match your environemnt