getting latex to work