Debian Codegraph @

texmf-dist/doc/latex/fvextra/CHANGELOG.md

raw symbols SCIP
1 # Changelog
2
3
4 ## v1.14.0 (2026/02/25)
5
6 * Switched to `\str_mdfive_hash:e` for MD5 hashing. This replaces
7 `\pdf@mdfivesum` from the `pdftexcmds` package. Under LuaTeX,
8 `\pdf@mdfivesum` ignores most multi-byte code points (code points >= 256
9 for UTF-8), which can cause hash collisions (#35, gpoore/minted#467).
10
11 `\pdf@mdfivesumnative` provides the desired functionality, but switching to
12 `\str_mdfive_hash:e` is simpler and allows dropping the `pdftexcmds`
13 package as a dependency.
14
15 * Fixed bug that could cause incorrect font in `BVerbatim` environment (#36).
16
17
18
19 ## v1.13.2 (2025/05/29)
20
21 * Fixed a bug that prevented detecting characters with a `\mathcode` of
22 `"8000` under XeTeX and LuaTeX (gpoore/minted#451).
23
24
25
26 ## v1.13.1 (2025/05/25)
27
28 * Replaced `\mathcode` with `\Umathcodenum` under XeTeX (#31).
29
30
31
32 ## v1.13.0 (2025/05/14)
33
34 * Enhanced `\VerbatimPygments` support for Pygments options `escapeinside`
35 and `texcomments`. Pygments escape tokens are now always retokenized using
36 the catcodes in place before the verbatim context. Pygments comment tokens
37 are also retokenized if the new option `texcomments=true`. This makes
38 these tokens behave more like regular LaTeX; previously, `\active`
39 characters could produce unexpected or undesired results
40 (gpoore/minted#303, gpoore/minted#312, gpoore/minted#422).
41
42 * Fixed a bug that caused some Pygments output to vanish when using
43 `\VerbatimPygments` with `breaklines=false` but `breakanywhere=true`
44 (gpoore/minted#442).
45
46 * `\VerbatimPygments` now patches Pygments macros to work correctly when the
47 plus sign `+` is `\active` or otherwise has a modified catcode.
48
49 * Added `\FVExtraSaveCodes` and `\FVExtraUseCodes`. These save the catcodes
50 of all characters in `\FVExtraDoSpecials`, and then restore them. All
51 commands and environments now automatically save the catcodes in place when
52 they begin. These can be restored via `\FancyVerbRestoreCodes`.
53
54 * Replaced `\FV@SetupMathLigs` with `\FV@SetupMathActive`. This makes all
55 characters in `\FVExtraDoSpecials` behave more normally within math,
56 instead of only patching `` ` ``, `<`, `>`, `,`, `'`, and `-`.
57
58 `\active` versions of characters are now defined in a way that avoids
59 infinite loops for characters with a `\mathcode` of `"8000`. This fixes
60 compatibility with packages like `semantic` (gpoore/minted#422).
61
62 `\FV@SetupMathActive` makes `\FV@SetupMathSpace` and `\FancyVerbMathSpace`
63 redundant, so these were removed.
64
65 * Added `\FV@UseKeyValues@Hook`. This is at the very end of
66 `\FV@UseKeyValues`. It is useful for modifications like
67 `\FV@SetupMathActive` that need to occur very early within a command or
68 environment.
69
70 * Improved compatibility with the LaTeX Tagged PDF project by modifying
71 patch for `\FV@List` (#29).
72
73 * All hooks now have a default value of empty, instead of some being `\let`
74 to `\relax`. This fixes compatibility with `\FV@AddToHook`.
75
76
77
78 ## v1.12.0 (2025/03/04)
79
80 * Added command `\IterateBuffer` for iterating over buffers and applying a
81 macro to each line.
82
83 * Added command `\BufferMdfivesum` that calculates the MD5 sum of the current
84 buffer.
85
86 * Added command `\WriteBuffer` that writes a buffer to file. This is the
87 buffer equivalent of `VerbatimWrite`.
88
89 * Added new options for `\InsertBuffer`: `wrapperenvname`, `wrapperenvopt`,
90 `wrapperenvarg`. Improved implementation of `\InsertBuffer` to eliminate
91 temp macros.
92
93 * Optimized line breaking for very long lines (#28).
94
95
96
97 ## v1.11.0 (2025/02/09)
98
99 * Added command `\InsertBuffer`. This inserts an existing buffer created
100 with `VerbatimBuffer` so that it is interpreted as LaTeX.
101
102 * Added `\ClearBuffer` as an alias for `\VerbatimClearBuffer`.
103
104 * When `afterbuffer` is used with `VerbatimBuffer` or derived environments to
105 typeset the buffer, the typeset buffer may now contain `VerbatimBuffer` or
106 environments based on it. Previously, nested buffering overwrote temp
107 macros and produced incorrect results. Typically, nested buffering should
108 be avoided for a given buffer; a different buffer should be used at each
109 level of nesting. The current buffer depth is now available in
110 `\FancyVerbBufferDepth`.
111
112 * Added option `backgroundcolorboxoverlap` and alias `bgcolorboxoverlap`.
113 When there is a background color for a block of text, this oversizes the
114 `\colorbox` behind each line by `backgroundcolorboxoverlap`, and then
115 slightly overlaps these boxes by the same amount. Some PDF viewers and
116 browsers produce rendering artifacts with a background color. These appear
117 in between lines of text as extremely thin horizontal rules that are the
118 color of the page behind the background. `backgroundcolorboxoverlap`
119 eliminates rendering artifacts in most software that produces them, and
120 otherwise significantly reduces artifacts (gpoore/minted#429).
121
122 * Line breaking now works with very long lines (#28). Previously, very long
123 lines could result in a "Dimension too large" error if they were longer
124 than `\maxdimen`, or no error and also no line breaking if they were so
125 long that the length overflowed and became negative.
126
127 * Renamed `\FV@bufferlengthname` to `\FancyVerbBufferLengthName`. Added
128 documentation for `\FancyVerbBufferLengthName` and
129 `\FancyVerbBufferLineName`.
130
131
132
133 ## v1.10.0 (2024/11/17)
134
135 * Replaced `FancyVerbBufferIndex` counter with `\FancyVerbBufferIndex` macro
136 to prevent issues with commands and environments such as `\text` from
137 `amsmath` that modify counter behavior.
138
139
140
141 ## v1.9.0 (2024/10/16)
142
143 * Replaced buffer length counters with macros to prevent issues with
144 `\includeonly` resetting counters.
145
146
147
148 ## v1.8.0 (2024/09/14)
149
150 * Added new option `backgroundcolor` (alias `bgcolor`). This provides a
151 basic, `\colorbox`-based implementation of background colors for commands
152 and environments. Added new option `backgroundcolorvphantom` (alias
153 `bgcolorvphantom`) for customizing background height. Added new option
154 `backgroundcolorpadding` (alias `bgcolorpadding`) for customizing padding
155 between text and the edge of the region with background color.
156
157 * Added option `insertenvname`. This customizes the verbatim environment
158 used by `\VerbatimInsertBuffer`.
159
160 * When `numberblanklines=false`, `highlightlines` no longer highlights blank
161 lines at the end of a highlighted range (#25, gpoore/minted#226).
162
163 * An unnecessary line break is no longer inserted before the last "word" of a
164 line when it is preceded by a long "word" that is broken internally as a
165 result of `breakbefore`, `breakafter`, or `breakanywhere` (#26).
166
167 * Added option `breakpreferspaces` (default `true`). This determines whether
168 line breaks are preferentially inserted at normal spaces rather than at
169 other locations allowed by `breakbefore`, `breakafter`, or `breakanywhere`
170 (#26).
171
172 * Added option `breakanywhereinlinestretch` (gpoore/minted#387).
173
174 * `\FVExtraReadVArg` now takes a multi-line (but not multi-paragraph)
175 verbatim argument. The new `\FVExtraReadVArgSingleLine` provides the old
176 functionality of taking an argument restricted to a single line
177 (gpoore/minted#376).
178
179 * By default, `\Verb` and `\SaveVerb` now take multi-line (but not
180 multi-paragraph) verbatim arguments. The old behavior of requiring
181 verbatim arguments to be on a single line can be restored by setting the
182 new option `vargsingleline` to `true`.
183
184 * Added documentation for undocumented `fancyvrb` option `listparameters`
185 (gpoore/minted#256).
186
187 * Expanded `breaklines` documentation with discussion of limitations and
188 alternatives (gpoore/minted#400).
189
190
191
192 ## v1.7.0 (2024/05/16)
193
194 * Added new command `\VerbatimClearBuffer`.
195
196 * `VerbatimBuffer` environments with the same buffer name now append to the
197 same buffer, regardless of the value of `globalbuffer`. Previously,
198 `globalbuffer=false` caused any pre-existing buffer to be cleared. Now,
199 `globalbuffer=false` causes anything that is appended to the buffer to be
200 removed at the end of the environment, but the entire buffer is not
201 cleared.
202
203 * `\FVExtraUnexpandedReadStarOArgMArgBVArg` now checks that the final
204 argument it reads is braced (#22).
205
206 * Text that immediately follows `\VerbatimInsertBuffer` is no longer indented
207 to start a new paragraph.
208
209 * Updated `tcblisting` usage in docs for compatibility with the latest
210 `tcolorbox`.
211
212
213 ## v1.6.1 (2023/11/28)
214
215 * Fixed bug from v1.6 that caused a space following a comma to be lost (#21).
216
217
218 ## v1.6 (2023/11/19)
219
220 * Added new environment `VerbatimWrite`. This is similar to `fancyvrb`'s
221 `VerbatimOut`, except that it allows for writing to a file multiple times
222 and guarantees truly verbatim output via `\detokenize`.
223
224 * Added new environment `VerbatimBuffer`. This stores the contents of an
225 environment verbatim in a "buffer," a sequence of numbered macros each of
226 which contains one line of the environment. The "buffered" lines can then
227 be looped over for further processing or later use.
228
229 * Added new command `\VerbatimInsertBuffer`. This inserts an existing buffer
230 created by `VerbatimBuffer` as a `Verbatim` environment.
231
232 * Redefined visible space `\FancyVerbSpace` so that it now has the correct
233 width. It had previously been redefined as `\textvisiblespace`, but that
234 was slightly too narrrow.
235
236 * Added option `spacebreak`. This determines the line break that is inserted
237 around spaces when `showspaces=true` or `breakcollapsespaces=false`, by
238 defining the new macro `\FancyVerbSpaceBreak`.
239
240 * `breakbefore`, `breakafter`, and `breakanywhere` now produce plain breaks
241 around spaces when `showspaces=true`, instead of breaks with a break symbol
242 at the end of wrapped lines. `\FancyVerbBreakAnywhereBreak`,
243 `\FancyVerbBreakBeforeBreak`, and `\FancyVerbBreakAfterBreak` are no longer
244 inserted next to spaces. Instead, `\FancyVerbSpaceBreak` is inserted or
245 (depending on options) `\FV@Space` is defined to include
246 `\FancyVerbSpaceBreak`.
247
248 * Added option `breakcollapsespaces`. When `true` (default), a line break
249 within a run of regular spaces (`showspaces=false`) replaces all spaces
250 with a single break, and the wrapped line after the break starts with a
251 non-space character. When `false`, a line break within a run of regular
252 spaces preserves all spaces, and the wrapped line after the break may start
253 with one or more spaces. This causes regular spaces to behave exactly like
254 the visible spaces produced with `showspaces`; both give identical line
255 breaks, with the only difference being the appearance of spaces.
256
257 * `breaklines` now automatically enables breaks after space characters when
258 `showspaces=true`.
259
260 * Reimplemented definition of `\FV@Space` to work with new space options.
261
262 * Added documentation about how reimplemented commands handle the `codes`
263 option differently compared to `fancyvrb` (#17).
264
265 * Starred commands such as `\Verb*` now use both visible spaces and visible
266 tabs instead of just visible spaces. This is more similar to the current
267 behavior of `\verb*`, except that `\verb*` converts tabs into visible
268 spaces (#19).
269
270 * The `mathescape` option now resets the ampersand `&` catcode (#18).
271
272
273 ## v1.5 (2022/11/30)
274
275 * Added `\FancyVerbFormatInline` for customizing the formatting of inline
276 verbatim, such as `\Verb`. This parallels `\FancyVerbFormatLine` and
277 `\FancyVerbFormatText`.
278
279 * Added line breaking option `breaknonspaceingroup`. When `commandchars` is
280 used to allow macros within verbatim, this inserts breaks within groups
281 `{...}`.
282
283 * Added `\FVExtraUnexpandedReadStarOArgMArgBVArg` to support reimplementation
284 of `\mintinline` for `minted`.
285
286 * Added `VerbEnv` environment, which is an environment variant of `\Verb`.
287 This supports reimplementation of `\mintinline` for `minted`.
288
289 * `breakbefore` and `breakafter` now support the escaped comma `\,` (#15).
290
291 * Fixed unintended line breaks after hyphens under LuaTeX (#14).
292
293 * Added documentation on Pandoc compatibility (#11).
294
295 * Replaced `breakbeforegroup` with `breakbeforeinrun`, and replaced
296 `breakaftergroup` with `breakafterinrun`. With the introduction of
297 `breaknonspaceingroup`, "`group`" is now reserved for referring to TeX
298 groups `{...}`.
299
300 * Removed dependency on `ifthen` package.
301
302 * `breakautoindent` now works correctly with Pygments output that treats
303 leading whitespace as a separate token or as part of a token.
304
305
306 ## v1.4 (2019/02/04)
307
308 * Reimplemented `\Verb`. It now works as expected inside other commands
309 (with a few limitations), including in movable arguments, and is compatible
310 with `hyperref` for things like PDF bookmarks. It now supports
311 `breaklines` and relevant line-breaking options.
312
313 * Reimplemented `\SaveVerb` and `\UseVerb` to be equivalent to the new
314 `\Verb`. The new option `retokenize` allows saved verbatim material to be
315 retokenized under new `commandchars` and `codes` when it is inserted with
316 `\UseVerb`.
317
318 * New command `\EscVerb` works like the reimplemented `\Verb`, except that
319 special characters can be escaped with a backslash. It works inside other
320 commands without any limitations, including in movable arguments, and is
321 compatible with `hyperref` for things like PDF bookmarks.
322
323 * Added `extra` option for switching between the reimplemented `\Verb`,
324 `\SaveVerb`, `\UseVerb` and the original `fancyvrb` definitions.
325 Reimplemented versions are used by default. This option will apply to any
326 future reimplemented commands and environments.
327
328 * New command `\fvinlineset` only applies options to commands related to
329 typesetting verbatim inline, like `\Verb`, `\SaveVerb`, `\UseVerb`. It
330 only works with commands that are defined or reimplemented by `fvextra`.
331 It overrides options from `\fvset`.
332
333 * Patched `fancyvrb` so that `\Verb` (either reimplemented version or
334 original) can use characters like `%` for delimiters when used outside any
335 commands.
336
337 * `obeytabs` now works with the `calc` package's redefined `\setcounter`.
338 Since `minted` loads `calc`, this also fixes `minted` compatibility
339 (`minted` #221).
340
341 * Added new option `fontencoding` (`minted` #208).
342
343 * `highlightlines` now works correctly with `frame` (#7).
344
345
346 ## v1.3.1 (2017/07/08)
347
348 * `beameroverlays` now works with `VerbatimOut`.
349
350
351 ## v1.3 (2017/07/08)
352
353 * Added `beameroverlays` option, which enables `beamer` overlays using the
354 `<` and `>` characters.
355
356 * Added options `breakindentnchars`, `breaksymbolsepleftnchars` (alias
357 `breaksymbolsepnchars`), `breaksymbolseprightnchars`,
358 `breaksymbolindentleftnchars` (alias `breaksymbolindentnchars`), and
359 `breaksymbolindentrightnchars`. These are identical to the pre-existing
360 options without the `nchars` suffix, except that they allow indentation to
361 be specified as an integer number of characters rather than as a dimension.
362 As a result of these new options, `\settowidth` is no longer used in the
363 preamble, resolving some font incompatibilities (#4).
364
365 * Clarified in the docs that `breaksymbolsepright` is a *minimum*, rather
366 than exact, distance.
367
368
369 ## v1.2.1 (2016/09/02)
370
371 * The package is now compatible with classes and packages that redefine
372 `\raggedright`.
373
374 * Fixed a bug that introduced extra space in inline contexts such as
375 `\mintinline` when `breaklines=true` (#3).
376
377
378
379 ## v1.2 (2016/07/20)
380
381 * Added support for line breaking when working with Pygments for syntax
382 highlighting.
383
384 * The default `highlightcolor` is now defined with `rgb` for compatibility
385 with the `color` package. Fixed a bug in the conditional color definition
386 when `color` and `xcolor` are not loaded before `fvextra`.
387
388
389
390 ## v1.1 (2016/07/14)
391
392 * The options `rulecolor` and `fillcolor` now accept color names directly;
393 using `\color{<color_name>}` is no longer necessary, though it still works.
394
395 * Added `tabcolor` and `spacecolor` options for use with `showtabs` and
396 `showspaces`.
397
398 * Added `highlightlines` option that takes a line number or range of line
399 numbers and highlights the corresponding lines. Added `highlightcolor`
400 option that controls highlighting color.
401
402 * `obeytabs` no longer causes lines to vanish when tabs are inside macro
403 arguments. Tabs and spaces inside a macro argument but otherwise at the
404 beginning of a line are expanded correctly. Tabs inside a macro argument
405 that are preceded by non-whitespace characters (not spaces or tabs) are
406 expanded based on the starting position of the run of whitespace in which
407 they occur.
408
409 * The line breaking options `breakanywhere`, `breakbefore`, and `breakafter`
410 now work with multi-byte UTF-8 code points under pdfTeX with `inputenc`.
411 They were already fully functional under XeTeX and LuaTeX.
412
413 * Added `curlyquotes` option, which essentially disables the `uquote` package.
414
415
416
417 ## v1.0 (2016/06/28)
418
419 * Initial release.