https://huggingface.co/spaces/Qwen/Qwen2-VL
You can also run a smaller model locally if you have enough VRAM, for example Qwen2.5-VL-7B-Instruct:
https://github.com/QwenLM/Qwen2.5-VL?tab=readme-ov-file#usin...
Also works reasonably well with hand-written equations.
For searching through similar equations, you can probably embed each as a high-dimensional vector and then search for the closed vector. Here is a ranking of text embedding networks:
https://huggingface.co/spaces/mteb/leaderboard
Or if you want something more deterministic, parse the LaTeX equation to create an abstract syntax tree for which there are plenty of similarity measures.
So when you injest all the latex, you get the semantics, latex conventions, an variable naming of each school math for free