add TeX priview and standalone debug editor