Add viewtex function, for processing the sole .tex file in pwd.