mode-compile support for TeX