Source: filecontentsdef.dtx (v1.2 2016/09/19) Author: Jean-Francois Burnol Info: filecontents + macro + verbatim License: LPPL 1.3c Copyright (C) 2016 Jean-Francois Burnol. <jfbu at free dot fr>
This lightweight LaTeX2ε package provides two environments called
filecontentshere. They are derived from the LaTeX
filecontents environment as extended by Scott Pakin's filecontents package. In addition to the file creation they either store the (verbatim) contents in a macro (
filecontentsdef) or typeset them (verbatim) on the spot (
I developed this to display TeX code verbatim in documentation and simultaneously produce during the LaTeX run the corresponding files in order to embed them in the PDF as file attachment annotations (via the services of Scott Pakin's further package attachfile.)
To extract the package (.sty) run etex on the dtx file. To produce the PDF documentation, either:
- latex (twice) filecontentsdef.dtx, then dvips, then ps2pdf
- or pdflatex (twice),
- or latex (twice) then dvipdfmx
This will also extract automatically the style file.
filecontentsdef.sty -> TDS:tex/latex/filecontentsdef/filecontentsdef.sty filecontentsdef.dtx -> TDS:source/latex/filecontentsdef/filecontentsdef.dtx filecontentsdef.pdf -> TDS:doc/latex/filecontentsdef/filecontentsdef.pdf
README.md -> TDS:doc/latex/filecontentsdef/README.md
The other files may be discarded.
This Work may be distributed and/or modified under the conditions of the LaTeX Project Public License 1.3c. This version of this license is in
and the latest version of this license is in
and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.
The Author of this Work is:
- Jean-Francois Burnol
<jfbu at free dot fr>
This Work consists of the main source file filecontentsdef.dtx and the derived files filecontentsdef.sty, filecontentsdef.ins, filecontentsdef.pdf, filecontentsdef.dvi, README.md.
Download the contents of this package in one zip archive (81.2k).
filecontentsdef – filecontents + macro + verbatim
The package provides two environments called filecontentsdef and filecontentshere. They are derived from the LaTeX filecontents environment as provided by Scott Pakin's filecontents package. In addition to the file creation they either store the (verbatim) contents in a macro (filecontentsdef) or typeset them (verbatim) on the spot (filecontentshere).
The author developed the package to display TeX code verbatim in documentation and the same time produce the corresponding files during the LaTeX run in order to embed them in the PDF as file attachment annotations (by using Scott Pakin's package attachfile).
|Licenses||The LaTeX Project Public License 1.3|
|Copyright||2016 Jean-François Burnol|
|Contained in||TeX Live as filecontentsdef|
MiKTeX as filecontentsdef