I'm doing a project that converts science formula images into Latex strings.
During the development, I found that with the same formula, we have different ways to conduct its Latex string.
For example:
\left(A\right)\frac{125}{300};\text { (A) } \frac{125}{300} \text {; }(A)\frac{125}{300};
Three Latex strings above describe the same following mathematical formula image:

Are there any ways to convert all different Latex styles into one single format? If possible, I can evaluate LatexOCR with CER/WER metrics, accuracy, ... or compare between different API services more precisely and conveniently.
Updated: In my case, what I currently want is to compare relatively the rendered outputs between different OCR API services automatically. However, it will be impossible if I only lay on its Latex values (because of the difference I have listed above). Of course, when I develop models and evaluate in-house solutions, all details matter.
enumitempackage to generate (A), (B) etc. automatically. // — In the general case there obviously isn't any way (because LaTeX is a programming language which allows very complex structure), if you restrict to a subset of LaTeX then it might be possible (but you have to define exactly what "equivalent" mean), but I don't think any such program exists yet. (although there are some for parsing (a subset of) LaTeX from other programming languages such as Python etc.) – user202729 Nov 17 '21 at 04:27