# CTAN update: filecontentsdef

Date: September 30, 2019 2:46:25 PM CEST
Jean-François Burnol submitted an update to the filecontentsdef package. Version number: 1.5 2019-09-29 License type: lppl1.3 Summary description: filecontents + macro + verbatim Announcement text:
- breaking change: filecontentsdef and filecontentsdefmacro define a macro obeying the local scope. Use filecontentsgdef, resp. filecontentsgdefmacro for definitions with global scope. - make handling of the tabulation and form feed characters customizable. - make the name of the environment used by \filecontentsprint customizable (it defaults to verbatim) and allow to pass options to it; has been tested with fancyvrb and minted. - add \filecontentsprintviascan which allows to use verbatim-like environment such as listings which are incompatible with \filecontentsprint.
Thanks for the upload. For the CTAN Team Erik Braun
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs

## filecontentsdef – filecontents + macro + verbatim

The package provides two environments called filecontentsdef and filecontentshere. They are derived from the 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 code verbatim in documentation and the same time produce the corresponding files during the run in order to embed them in the PDF as file attachment annotations (by using Scott Pakin's package attachfile).

 Package filecontentsdef Version 1.5 2019-09-29 Copyright 2016–2019 Jean-François Burnol Maintainer Jean-François Burnol

more