Debian Codegraph @

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

raw
1
2 codedescribe / codelisting
3 ==========
4
5 These are expl3 based packages for LaTeX/expl3 code documetation.
6 ### codedescribe
7 provides a series of macros/environments (similar to doc/docx/doc3) for package/classes documentantion
8 ### codelisting
9 provides a few macros for LaTeX code listing/demo.
10
11 They are designed to be 'as class independent as possible',
12 no assumption about underlying macros is made.
13 Furthermore, it's assumed that *\maketitle* and the *abstract* environment
14 were modified by the underlying class, so alternatives (based on the article class) are provided.
15
16 For more details, see the documentation,
17 [codedescribe.pdf](http://mirrors.ctan.org/macros/latex/contrib/codedescribe/doc/codedescribe.pdf)
18
19 --------------
20
21 ## Requirements
22 * none besides a fairly recent LaTeX distribution as recent as [2025/06/01](https://ctan.org/pkg/l3kernel)
23 (with the new in kernel *\ProcessKeyOptions* and *\NewDocumentCommand*)
24
25 ## Installation
26 The stable version is available at [CTAN](https://ctan.org/pkg/codedescribe).
27
28 ## Usage
29 ### Stable version
30 Just place
31 ```latex
32 \usepackage{codedescribe}
33 ```
34
35 in the preamble and compile away.
36
37
38 Be aware that options might change between versions, so you have to check them manually.
39
40 ## More Information and documentation
41 More Information can be found in the documentation; you can find a "bleeding edge" version
42 at [the github page](http://github.com/alceu-frigeri/codedescribe)
43
44 ## Contacting Author
45
46 For bug reports and enhacement suggestions, the preferred way is to use
47 [the project's issue page](https://github.com/alceu-frigeri/codedescribe/issues).
48
49 For help on how to use the package, suggestions, use
50 [the project's discussion page](https://github.com/alceu-frigeri/codedescribe/discussions).
51
52 * git: https://github.com/alceu-frigeri/codedescribe
53
54 -------------
55 Copyright 2023-present by Alceu Frigeri
56
57 This work may be distributed and/or modified under the
58 conditions of
59
60 * The [LaTeX Project Public License](http://www.latex-project.org/lppl.txt), version 1.3c (or later), and/or
61 * The [GNU Affero General Public License](https://www.gnu.org/licenses/agpl-3.0.html), version 3 (or later)
62
63 This work has the LPPL maintenance status *maintained*.
64
65 The Current Maintainer of this work is Alceu Frigeri
66
67 -------------
68
69 ### This work consists of the files
70
71 * codelisting.sty
72 - set of macros to typeset and demonstrate LaTeX code
73
74 * codedescribe.sty
75 - set of macros to document LaTeX packages
76
77 * codedescsets.sty
78 - sets of locale definitions
79
80 * codelstlang.sty
81 - sets of listings dialect/language definitions
82
83 * codecmm.sty
84 - a few auxiliary commands (mostly skip/dim related)
85
86 * README.md (this file)
87 - quick introduction
88
89 * codedescribe.tex
90 * codedescribe.bib
91 - package documentation
92
93 * codedescribe.pdf
94 - documentation in PDF format
95
96 -------------
97
98 ### Change log
99
100 * Version 1.24b/1.24c (this)
101 - minor code optimization
102 - fixing [\#38](https://github.com/alceu-frigeri/codedescribe/issues/38)
103
104 * Version 1.24a
105 - fixing [\#36](https://github.com/alceu-frigeri/codedescribe/issues/36)
106 - some code optimization: reducing the impact of variants key
107 - added `\tsfmt` (formatting alternative)
108 - documentation typos
109
110 * Version 1.24
111 - added a shortcut for `\tsmacro` as well
112 - ditched the global bool (force margin) from codedescribe environment.
113 - added 'faint' color (for code variants)
114 - added 'variants' key (helper for typesetting expl commands)
115 - fixing [\#36](https://github.com/alceu-frigeri/codedescribe/issues/36)
116
117 * Version 1.23
118 - codelist partial refaktor: code is more regular, systematic now, regarding listings.
119 some keys got deprecated.
120 - shortcuts: making `!` active, supporting `\tsobj`, `\tsargs`, `\tsverb`, `\tsmeta` and `\tsmarginnote`
121
122 * Version 1.22
123 - documentation typos.
124 - \setnewcodekey deprecated in favour of \newcodekey.
125 - \selectlabelset deprecated in favour of \setcodelabels
126 - fixing readme markdown compatibility issues between github and ctan...
127 - new auxiliary command \indexgenkey and related keys `index gen group` and `index gen prefix`
128
129
130 * Version 1.21
131 - fixing [\#26](https://github.com/alceu-frigeri/codedescribe/issues/26), long standing hidden bug.
132 - add `codesyntax*` environment (verbatim alternative, [\#27](https://github.com/alceu-frigeri/codedescribe/issues/27))
133 - adjusted (optimized) the (re)definition of `verbatimsc` environment [\#28](https://github.com/alceu-frigeri/codedescribe/issues/28)
134 - extended index generating support, keys and `\indexcodesetup` (related to [\#25](https://github.com/alceu-frigeri/codedescribe/issues/25))
135 - added a series of index generating auxiliary commands
136 - whole index coding depends on global package option index (reducing the overhead when it isn't needed)
137
138 * Version 1.20
139 - new format keys to adjust spacing in \tsobj and margin block placement in `codedescribe` environment
140 (addressing [\#23](https://github.com/alceu-frigeri/codedescribe/issues/23) and
141 [\#24](https://github.com/alceu-frigeri/codedescribe/issues/24))
142 - new command to copy/duplicate a group format.
143 - new setup to help making an index [\#25](https://github.com/alceu-frigeri/codedescribe/issues/25)
144 - new commands for color customization (both codedescribe and codelisting as well)
145 - added a listings' key, firstnumber (codelisting, \tscode and related)
146 - codedescribe package options regarding changes above.
147 - documentation review.
148
149 * Version 1.19
150 - codesyntax new optional parameter, addressing [\#21](https://github.com/alceu-frigeri/codedescribe/issues/21)
151 - new format keys (font and fsize), addressing [\#22](https://github.com/alceu-frigeri/codedescribe/issues/22)
152 - code demo logic reworked, addressing [\#20](https://github.com/alceu-frigeri/codedescribe/issues/20)
153 - new auxiliary package codecmm, to hold those few commands shared between codedescribe and codelisting making them independent from each other.
154
155 * Version 1.18
156 - new commands and package option for label sets ('locale')
157 - addressing [\#17](https://github.com/alceu-frigeri/codedescribe/issues/17)
158 - partially addressing [\#18](https://github.com/alceu-frigeri/codedescribe/issues/18) in the documentation
159 - new package option to suppress some annoying bad boxes warnings.
160
161 * Version 1.17
162 - using ```\pkginfograbProvidesExplPackage```
163 - New auxiliary package codelstlang.sty (defines a series of listings TeX dialects).
164 - New package options to set which TeX dialect(s) to be used.
165 - New code key: `lststyle` to use a listings' user defined style, instead of the provided one.
166
167 * Version 1.16b
168 - fixing [\#15](https://github.com/alceu-frigeri/codedescribe/issues/15) (codesyntax snafu, introduced by last update)
169
170 * Version 1.16a
171 - code cleanup (better following expl3 convention) and a bit of optimization.
172
173
174 * Version 1.16
175 - removing references to expl scratch variables, like `\l_tmpa_tl` and `\l_tmpa_int`.
176 - using `pkginfograb`
177
178
179 * Version 1.15
180 - pre-compiling regex
181 - removing llongblock bool ...
182 - [\#14](https://github.com/alceu-frigeri/codedescribe/issues/14) (typo... in code)
183
184 * Version 1.14
185 - footnote work around for hyperref (addressing issue [\#13](https://github.com/alceu-frigeri/codedescribe/issues/13))
186 - documentation.
187
188
189 * Version 1.13
190 - codedescribe/codesyntax/text interaction fine tuning (in longblock case)
191 - removing "spurious code" (ancient leftover code).
192
193
194 * Version 1.12
195 - Documentation typos and some clarification regarding packages errors/warnings.
196 - \describe macro defined only inside a describelist environment.
197 - Package option added: strict (warnings will be redirected as package errors)
198
199
200 * Version 1.11
201 - replacing \vspace with \skip_vertical:n
202 - peeking ahead \ts* commands (for further spacing fine tune).
203 - using xpeekahead for the peek ahead part.
204 - added a package option: color scheme (see documentation).
205 - documentation (specially due to kernel changes regarding key handlers).
206
207 * Version 1.10
208 - fixing [\#10](https://github.com/alceu-frigeri/codedescribe/issues/10) (hopefully for good) by implementing
209 [env-peekahead](https://tex.stackexchange.com/questions/745593/peek-ahead-in-expl3) and
210 [skip-spacing](https://tex.stackexchange.com/questions/745692/inter-coffins-spacing)
211 - environments code cleanup.
212 - spacing fine tuning
213 - deprecating tsremark* (should't exist!)
214 - implementing [\#11](https://github.com/alceu-frigeri/codedescribe/issues/11)
215
216 * Version 1.9
217 - added two keys (letter and other) to Code Keys (see manual)
218 - setting, by default, _:@ as letters (for expl3) [\#9](https://github.com/alceu-frigeri/codedescribe/issues/9)
219 - added a few option keys to further customize \tsobj (bnf style lists, see manual)
220 - documentation review (typos, clarity).
221 - code cleanup.
222
223 * Version 1.8
224 - fixes
225 [\#6](https://github.com/alceu-frigeri/codedescribe/issues/6), [\#7](https://github.com/alceu-frigeri/codedescribe/issues/7) and
226 [\#8](https://github.com/alceu-frigeri/codedescribe/issues/7).
227 - Added an (optional) index parameter to the code display/demo commands.
228 - New command: \tsmergedcode, \tsexec and \setnewcodekey (see documentation).
229
230
231 * Version 1.7
232 - fixing [\#4](https://github.com/alceu-frigeri/codedescribe/issues/4) (hopefully) for good and
233 - working on [\#5](https://github.com/alceu-frigeri/codedescribe/issues/5).
234 - Added an environment <tsremark*> (see documentation).
235
236 * Version 1.6
237 - fixing issue [\#3](https://github.com/alceu-frigeri/codedescribe/issues/3) (long standing (hidden) bug.
238 \tsresult now fully respects optional keys.
239
240 * Version 1.5b
241 - fixing issue [\#2](https://github.com/alceu-frigeri/codedescribe/issues/2) (reverting `codesyntax` bug introduced by v1.5).
242
243 * Version 1.5
244 - fixing issue [\#1](https://github.com/alceu-frigeri/codedescribe/issues/1) (misalignment when missing a `codesyntax` inner environment).
245
246 * Version 1.4
247 - The 'new', 'update' and 'info' keys can, now, be used multiple times when declaring a codedescribe environment. (see documentation).
248
249 * Version 1.3
250 - Added \tsresult, a command to just show the result of a stored code (codelisting specific).
251
252
253 * Version 1.2
254 - Added format key: basicstyle
255
256 * Version 1.1
257 - Added two commands to allow <obj-types> customization
258 - requiring (now) pifont for EXP/rEXP <format-keys>
259 - Added a date command (auxiliary command)
260
261 * Version 1.0
262 - Initial release by CTAN