Create an external file from within a LaTeX document
