fixed LaTeX formatting bug for >1 digit numbers