1 2 3 4 5 6
#compdef tex latex slitex local expl _description files expl 'TeX or LaTeX file' _files "$expl[@]" -g '*.(tex|TEX|texinfo|texi)'