Added a fail safe to LaTeX support