CTAN package upgrade: filecontents
Date: August 18, 2004 4:05:39 PM CEST
A package has been upgraded at tug.ctan.org and should soon be at your
favorite mirror.
Thank you for the upload,
Jim Hefferon
======================================================================
The following information was provided by the package's contributor.
Name of contribution: filecontents
Author's name: Scott Pakin
Location on CTAN: macros/latex/contrib/filecontents
Summary description: Improved version of LaTeX2e's filecontents environment
License type: lppl
Announcement text given by the package's contributor:
- ----------------------------------------------------------------------
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, making
it possible to overwrite existing files and to use
filecontents/filecontents* anywhere.
- ----------------------------------------------------------------------
You can have a look at the package at
http://tug.ctan.org/tex-archive/macros/latex/contrib/filecontents
although you may get a better network connection by visiting a mirror
of CTAN that is near to you; see
http://www.ctan.org/tex-archive/README.mirrors
filecontents – Create an external file from within a LaTeX document
LaTeX2ε’s filecontents and filecontents*
environments enable a LaTeX source file to generate external files
as it runs through LaTeX. 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 LaTeX 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 LaTeX’s built-in
filecontents environment to mimic this package’s behavior:
\begin{filecontents}[overwrite]{my-file}...\end{filecontents}
Package | filecontents |
Version | 1.5a 2023-04-02 |
Copyright | 2011–2023 Scott Pakin
|
Maintainer | Scott Pakin
|
Announcements
more