New on CTAN: filecontentsdef
This lightweight LaTeX2e package provides two environments called `filecontentsdef` and `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 (`filecontentshere`). 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] .) : http://www.ctan.org/pkg/filecontents "filecontents package" : http://www.ctan.org/pkg/attachfile "attachfile package"
This package is located at http://mirror.ctan.org/macros/latex/contrib/filecontentsdef More information is at http://www.ctan.org/pkg/filecontentsdef
Thanks for the upload. For the CTAN Team Manfred Lotz We are supported by the TeX user groups. Please join a users group; see http://www.tug.org/usergroups.html .
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).
|Copyright||2016–2019 Jean-François Burnol|