made a script to build the tex-doc