CTAN update: filecontentsdef
- 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.
This package is located at http://mirror.ctan.org/macros/latex/contrib/filecontentsdef More information is at https://www.ctan.org/pkg/filecontentsdef
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 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).
|2016–2019 Jean-François Burnol
- 2019-09-30 CTAN update: filecontentsdef
- 2019-04-24 CTAN update: filecontentsdef
- 2016-09-22 New on CTAN: filecontentsdef