setup latex and predictive mode