Check if Latex output is required