Releases: gpoore/fvextra
v1.13.2
v1.13.1
v1.13.0
-
Enhanced
\VerbatimPygmentssupport for Pygments optionsescapeinside
andtexcomments. Pygments escape tokens are now always retokenized using
the catcodes in place before the verbatim context. Pygments comment tokens
are also retokenized if the new optiontexcomments=true. This makes
these tokens behave more like regular LaTeX; previously,\active
characters could produce unexpected or undesired results
(gpoore/minted#303, gpoore/minted#312, gpoore/minted#422). -
Fixed a bug that caused some Pygments output to vanish when using
\VerbatimPygmentswithbreaklines=falsebutbreakanywhere=true
(gpoore/minted#442). -
\VerbatimPygmentsnow patches Pygments macros to work correctly when the
plus sign+is\activeor otherwise has a modified catcode. -
Added
\FVExtraSaveCodesand\FVExtraUseCodes. These save the catcodes
of all characters in\FVExtraDoSpecials, and then restore them. All
commands and environments now automatically save the catcodes in place when
they begin. These can be restored via\FancyVerbRestoreCodes. -
Replaced
\FV@SetupMathLigswith\FV@SetupMathActive. This makes all
characters in\FVExtraDoSpecialsbehave more normally within math,
instead of only patching`,<,>,,,', and-.\activeversions of characters are now defined in a way that avoids
infinite loops for characters with a\mathcodeof"8000. This fixes
compatibility with packages likesemantic(gpoore/minted#422).\FV@SetupMathActivemakes\FV@SetupMathSpaceand\FancyVerbMathSpace
redundant, so these were removed. -
Added
\FV@UseKeyValues@Hook. This is at the very end of
\FV@UseKeyValues. It is useful for modifications like
\FV@SetupMathActivethat need to occur very early within a command or
environment. -
Improved compatibility with the LaTeX Tagged PDF project by modifying
patch for\FV@List(#29). -
All hooks now have a default value of empty, instead of some being
\let
to\relax. This fixes compatibility with\FV@AddToHook.
v1.12.0
-
Added command
\IterateBufferfor iterating over buffers and applying a
macro to each line. -
Added command
\BufferMdfivesumthat calculates the MD5 sum of the current
buffer. -
Added command
\WriteBufferthat writes a buffer to file. This is the
buffer equivalent ofVerbatimWrite. -
Added new options for
\InsertBuffer:wrapperenvname,wrapperenvopt,
wrapperenvarg. Improved implementation of\InsertBufferto eliminate
temp macros. -
Optimized line breaking for very long lines (#28).
v1.11.0
-
Added command
\InsertBuffer. This inserts an existing buffer created
withVerbatimBufferso that it is interpreted as LaTeX. -
Added
\ClearBufferas an alias for\VerbatimClearBuffer. -
When
afterbufferis used withVerbatimBufferor derived environments to
typeset the buffer, the typeset buffer may now containVerbatimBufferor
environments based on it. Previously, nested buffering overwrote temp
macros and produced incorrect results. Typically, nested buffering should
be avoided for a given buffer; a different buffer should be used at each
level of nesting. The current buffer depth is now available in
\FancyVerbBufferDepth. -
Added option
backgroundcolorboxoverlapand aliasbgcolorboxoverlap.
When there is a background color for a block of text, this oversizes the
\colorboxbehind each line bybackgroundcolorboxoverlap, and then
slightly overlaps these boxes by the same amount. Some PDF viewers and
browsers produce rendering artifacts with a background color. These appear
in between lines of text as extremely thin horizontal rules that are the
color of the page behind the background.backgroundcolorboxoverlap
eliminates rendering artifacts in most software that produces them, and
otherwise significantly reduces artifacts (gpoore/minted#429). -
Line breaking now works with very long lines (#28). Previously, very long
lines could result in a "Dimension too large" error if they were longer
than\maxdimen, or no error and also no line breaking if they were so
long that the length overflowed and became negative. -
Renamed
\FV@bufferlengthnameto\FancyVerbBufferLengthName. Added
documentation for\FancyVerbBufferLengthNameand
\FancyVerbBufferLineName.
v1.10.0
v1.9.0
v1.8.0
-
Added new option
backgroundcolor(aliasbgcolor). This provides a
basic,\colorbox-based implementation of background colors for commands
and environments. Added new optionbackgroundcolorvphantom(alias
bgcolorvphantom) for customizing background height. Added new option
backgroundcolorpadding(aliasbgcolorpadding) for customizing padding
between text and the edge of the region with background color. -
Added option
insertenvname. This customizes the verbatim environment
used by\VerbatimInsertBuffer. -
When
numberblanklines=false,highlightlinesno longer highlights blank
lines at the end of a highlighted range (#25, gpoore/minted#226). -
An unnecessary line break is no longer inserted before the last "word" of a
line when it is preceded by a long "word" that is broken internally as a
result ofbreakbefore,breakafter, orbreakanywhere(#26). -
Added option
breakpreferspaces(defaulttrue). This determines whether
line breaks are preferentially inserted at normal spaces rather than at
other locations allowed bybreakbefore,breakafter, orbreakanywhere
(#26). -
Added option
breakanywhereinlinestretch(gpoore/minted#387). -
\FVExtraReadVArgnow takes a multi-line (but not multi-paragraph)
verbatim argument. The new\FVExtraReadVArgSingleLineprovides the old
functionality of taking an argument restricted to a single line
(gpoore/minted#376). -
By default,
\Verband\SaveVerbnow take multi-line (but not
multi-paragraph) verbatim arguments. The old behavior of requiring
verbatim arguments to be on a single line can be restored by setting the
new optionvargsinglelinetotrue. -
Added documentation for undocumented
fancyvrboptionlistparameters
(gpoore/minted#256). -
Expanded
breaklinesdocumentation with discussion of limitations and
alternatives (gpoore/minted#400).
v1.7.0
-
Added new command
\VerbatimClearBuffer. -
VerbatimBufferenvironments with the same buffer name now append to the
same buffer, regardless of the value ofglobalbuffer. Previously,
globalbuffer=falsecaused any pre-existing buffer to be cleared. Now,
globalbuffer=falsecauses anything that is appended to the buffer to be
removed at the end of the environment, but the entire buffer is not
cleared. -
\FVExtraUnexpandedReadStarOArgMArgBVArgnow checks that the final
argument it reads is braced (#22). -
Text that immediately follows
\VerbatimInsertBufferis no longer indented
to start a new paragraph. -
Updated
tcblistingusage in docs for compatibility with the latest
tcolorbox.