Changed digit handling for latexLm