CTAN Comprehensive TeX Archive Network

new package on CTAN: filecontents

Date: August 24, 2001 3:06:47 PM CEST
A new LaTeX package has been installed on tug.ctan.org and should make its way through the mirroring process in the next day or two. Jim Hefferon ==================================================================== The following information was provided by our fellow contributor: Name of contribution: filecontents Name: Scott Pakin Location on CTAN: macros/latex/contrib/supported/filecontents Summary description: Less-limited version of LaTeX2e's filecontents and filecontents* environments License type: lppl Announcement text: - ---------------------------------------------------------------------- LaTeX2e's filecontents and filecontents* environments enable a LaTeX source file to generate external files as it's run through latex. However, there are two limitations of these environments: They refuse to overwrite existing files, and they can be used only before the \documentclass declaration. The filecontents package removes these limitations, letting you overwrite existing files and letting you use filecontents/filecontents* anywhere. - ----------------------------------------------------------------------

filecontents – Create an external file from within a document

’s filecontents and filecontents* environments enable a source file to generate external files as it runs through . However, there are two limitations of these environments: they refuse to overwrite existing files, and they can only be used in the preamble of a document. The filecontents package removes these limitations, letting you overwrite existing files and letting you use filecontents/filecontents* anywhere.

As of September 2019 the author tells us: “This package is no longer necessary due to its functionality having moved into recent kernels. It’s probably better not to move the package to obsolete because users may need it to rebuild old documents. Version 1.5 provides full functionality when run with an older kernel but issues a warning message and disables itself when run with a newer kernel.”

Supply the overwrite option to ’s built-in filecontents environment to mimic this package’s behavior:

\begin{filecontents}[overwrite]{my-file}...\end{filecontents}

Packagefilecontents
Version1.5a 2023-04-02
Copyright2011–2023 Scott Pakin
MaintainerScott Pakin

Announcements

more

Guest Book Sitemap Contact Contact Author