Debian Codegraph @

texmf-dist/doc/latex/filecontentsdef/README.md

raw symbols SCIP
1 <!-- -->
2
3 Source: filecontentsdef.dtx (v1.5 2019/09/29)
4 Author: Jean-Francois Burnol
5 Info: filecontents + macro + verbatim
6 License: LPPL 1.3c
7 Copyright (C) 2016-2019 Jean-Francois Burnol.
8 <jfbu at free dot fr>
9
10 ABSTRACT
11 ========
12
13 This lightweight LaTeX2e package provides an environment `filecontentsdef`
14 which is like the `filecontents` environment of Scott Pakin's
15 [filecontents] [1] package but in addition to the file creation stores the
16 (verbatim) contents into a macro given as an additional argument (either as a
17 control sequence or as a name).
18
19 Displaying verbatim these contents is possible via `\filecontentsprint`,
20 and executing them (if they represent LaTeX code) via `\filecontentsexec`.
21
22 A variant environment `filecontentsdefmacro` stores the contents into a
23 macro, but skips the save-to-a-file part.
24
25 [1]: http://www.ctan.org/pkg/filecontents "filecontents package"
26
27 CHANGE LOG
28 ==========
29
30 v1.5 \[2019/09/29\]
31 -------------------
32
33 - `\filecontentsexec` does not forcefully reset `\newlinechar`
34 to its LaTeX default after execution.
35
36 - `\FCD@` as prefix for internal non public macros.
37
38 - drop usage of the legacy LaTeX mechanism which issued a warning
39 in case of a form feed or horizontal tabulation character in the
40 parsed contents.
41
42 - make handling of the tabulation and form feed characters
43 customizable.
44
45 - treat especially the case when the `\end{filecontents...}`
46 is not on a line of its own.
47
48 - add `filecontentsdefstarred` (et al.) as alias for
49 `filecontentsdef*` (et al.) for easying up encapsulation in
50 wrapping environments.
51
52 - breaking change: `filecontentsdef` and `filecontentsdefmacro`
53 define a macro obeying the local scope. Use `filecontentsgdef`,
54 resp. `filecontentsgdefmacro` for definitions with global scope.
55
56 - make the name of the environment used by `\filecontentsprint`
57 customizable (it defaults to `verbatim`) and allow to pass options
58 to it; has been tested with `fancyvrb` and `minted`.
59
60 - add `\filecontentsprintviascan` which allows to use verbatim-like
61 environment such as `listings` which are incompatible with
62 `\filecontentsprint`.
63
64 v1.4 \[2019/04/20\]
65 -------------------
66
67 - backport 2018/04/01 LaTeX release change to filecontents environment
68 (`^^L` and `^^I` definitions).
69
70 - add `filecontentsdefmacro` environment.
71
72 - extend `filecontentsdef` and `filecontentsdefmacro` environments as
73 well as `\filecontentsprint` and `\filecontentsexec` macros to accept
74 indifferently either a control sequence or a name as argument.
75
76 - refactor documentation, explain how to define wrapper environments.
77
78 v1.2 \[2016/09/19\]
79 -------------------
80
81 Initial version.
82
83 LICENSE
84 =======
85
86 This Work may be distributed and/or modified under the
87 conditions of the LaTeX Project Public License 1.3c.
88 This version of this license is in
89
90 > <http://www.latex-project.org/lppl/lppl-1-3c.txt>
91
92 and the latest version of this license is in
93
94 > <http://www.latex-project.org/lppl.txt>
95
96 and version 1.3 or later is part of all distributions of
97 LaTeX version 2005/12/01 or later.
98
99 The Author of this Work is:
100
101 - Jean-Francois Burnol `<jfbu at free dot fr>`
102
103 This Work consists of the main source file filecontentsdef.dtx and
104 its derived files filecontentsdef.sty, filecontentsdef.pdf,
105 filecontentsdef.dvi, README.md, INSTALL.md, README, INSTALL.