name filecontents category Package shortdesc Extended filecontents and filecontents* environments longdesc LaTeX2e's filecontents and filecontents* environments enable a longdesc LaTeX source file to generate external files as it's run through longdesc latex. However, there are two limitations of these environments: longdesc They refuse to overwrite existing files, and they can be used only longdesc before the \documentclass declaration. The filecontents package longdesc removes these limitations, letting you overwrite existing files longdesc and letting you use filecontents/filecontents* anywhere. longdesc [description copied from TeX Catalogue]