Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/filecontents

            |                FILECONTENTS                |
            |                                            |
            | Improved version of LaTeX2e's filecontents |
            |       and filecontents* environments       |
            |                                            |
            |      By Scott Pakin, scott+fc@pakin.org    |


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.


There's nothing special about building filecontents:

    latex filecontents.ins     <== Generate filecontents.sty
    latex filecontents.dtx     <== Produce the documentation (filecontents.dvi)

If you're new to this, see
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=instpackages for more
information on installing packages.

Copyright and license

Copyright (C) 2011 Scott Pakin, scott+fc@pakin.org

This package may be distributed and/or modified under the conditions
of the LaTeX Project Public License, either version 1.3c of this
license or (at your option) any later version.  The latest version of
this license is in:


and version 1.3c or later is part of all distributions of LaTeX
version 2008/05/04 or later.

Down­load the con­tents of this pack­age in one zip archive (236.8k).

file­con­tents – Ex­tended file­con­tents and file­con­tents* en­vi­ron­ments

's file­con­tents and file­con­tents* en­vi­ron­ments en­able a source file to gen­er­ate ex­ter­nal files as it runs through . How­ever, there are two lim­i­ta­tions of these en­vi­ron­ments: they refuse to over­write ex­ist­ing files, and they can only be used in the pream­ble of a doc­u­ment. The file­con­tents pack­age re­moves these lim­i­ta­tions, let­ting you over­write ex­ist­ing files and let­ting you use file­con­tents/file­con­tents* any­where.

Li­cense The Project Public Li­cense
Main­tainerScott Pakin
TDS archivefilecontents.tds.zip
Con­tained inTeX Live as file­con­tents
MiKTeX as file­con­tents
Topics -re­lated-file man­age­ment
Guest Book Sitemap Contact Contact Author