evo-latex-syntax-validation
Validates and fixes LaTeX formula syntax issues.
Key Functions
validate_latex_formula(formula)- Check for syntax issuescheck_balanced_braces(formula)- Check {} balancecheck_balanced_brackets(formula)- Check [] balancefix_left_right_delimiters(formula)- Balance \left/\rightfix_broken_commands(formula)- Fix OCR typos in commandsdetect_and_fix_all(formula)- Full validation and fix pipeline
Usage
pythonimport sys sys.path.insert(0, '/app/environment/skills/evo-latex-syntax-validation/scripts') from utils import detect_and_fix_all, validate_latex_formula fixed, was_changed, issues = detect_and_fix_all(formula) if was_changed: print(f"Fixed: {issues}")


