impoved latex config