Releases: gpoore/fvextra
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
,highlightlines
no 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). -
\FVExtraReadVArg
now takes a multi-line (but not multi-paragraph)
verbatim argument. The new\FVExtraReadVArgSingleLine
provides the old
functionality of taking an argument restricted to a single line
(gpoore/minted#376). -
By default,
\Verb
and\SaveVerb
now 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 optionvargsingleline
totrue
. -
Added documentation for undocumented
fancyvrb
optionlistparameters
(gpoore/minted#256). -
Expanded
breaklines
documentation with discussion of limitations and
alternatives (gpoore/minted#400).
v1.7.0
-
Added new command
\VerbatimClearBuffer
. -
VerbatimBuffer
environments with the same buffer name now append to the
same buffer, regardless of the value ofglobalbuffer
. Previously,
globalbuffer=false
caused any pre-existing buffer to be cleared. Now,
globalbuffer=false
causes anything that is appended to the buffer to be
removed at the end of the environment, but the entire buffer is not
cleared. -
\FVExtraUnexpandedReadStarOArgMArgBVArg
now checks that the final
argument it reads is braced (#22). -
Text that immediately follows
\VerbatimInsertBuffer
is no longer indented
to start a new paragraph. -
Updated
tcblisting
usage in docs for compatibility with the latest
tcolorbox
.
v1.6.1
v1.6
-
Added new environment
VerbatimWrite
. This is similar tofancyvrb
's
VerbatimOut
, except that it allows for writing to a file multiple times
and guarantees truly verbatim output via\detokenize
. -
Added new environment
VerbatimBuffer
. This stores the contents of an
environment verbatim in a "buffer," a sequence of numbered macros each of
which contains one line of the environment. The "buffered" lines can then
be looped over for further processing or later use. -
Added new command
\VerbatimInsertBuffer
. This inserts an existing buffer
created byVerbatimBuffer
as aVerbatim
environment. -
Redefined visible space
\FancyVerbSpace
so that it now has the correct
width. It had previously been redefined as\textvisiblespace
, but that
was slightly too narrrow. -
Added option
spacebreak
. This determines the line break that is inserted
around spaces whenshowspaces=true
orbreakcollapsespaces=false
, by
defining the new macro\FancyVerbSpaceBreak
. -
breakbefore
,breakafter
, andbreakanywhere
now produce plain breaks
around spaces whenshowspaces=true
, instead of breaks with a break symbol
at the end of wrapped lines.\FancyVerbBreakAnywhereBreak
,
\FancyVerbBreakBeforeBreak
, and\FancyVerbBreakAfterBreak
are no longer
inserted next to spaces. Instead,\FancyVerbSpaceBreak
is inserted or
(depending on options)\FV@Space
is defined to include
\FancyVerbSpaceBreak
. -
Added option
breakcollapsespaces
. Whentrue
(default), a line break
within a run of regular spaces (showspaces=false
) replaces all spaces
with a single break, and the wrapped line after the break starts with a
non-space character. Whenfalse
, a line break within a run of regular
spaces preserves all spaces, and the wrapped line after the break may start
with one or more spaces. This causes regular spaces to behave exactly like
the visible spaces produced withshowspaces
; both give identical line
breaks, with the only difference being the appearance of spaces. -
breaklines
now automatically enables breaks after space characters when
showspaces=true
. -
Reimplemented definition of
\FV@Space
to work with new space options. -
Added documentation about how reimplemented commands handle the
codes
option differently compared tofancyvrb
(#17). -
Starred commands such as
\Verb*
now use both visible spaces and visible
tabs instead of just visible spaces. This is more similar to the current
behavior of\verb*
, except that\verb*
converts tabs into visible
spaces (#19). -
The
mathescape
option now resets the ampersand&
catcode (#18).
v1.5
-
Added
\FancyVerbFormatInline
for customizing the formatting of inline
verbatim, such as\Verb
. This parallels\FancyVerbFormatLine
and
\FancyVerbFormatText
. -
Added line breaking option
breaknonspaceingroup
. Whencommandchars
is
used to allow macros within verbatim, this inserts breaks within groups
{...}
. -
Added
\FVExtraUnexpandedReadStarOArgMArgBVArg
to support reimplementation
of\mintinline
forminted
. -
Added
VerbEnv
environment, which is an environment variant of\Verb
.
This supports reimplementation of\mintinline
forminted
. -
breakbefore
andbreakafter
now support the escaped comma\,
(#15). -
Fixed unintended line breaks after hyphens under LuaTeX (#14).
-
Added documentation on Pandoc compatibility (#11).
-
Replaced
breakbeforegroup
withbreakbeforeinrun
, and replaced
breakaftergroup
withbreakafterinrun
. With the introduction of
breaknonspaceingroup
, "group
" is now reserved for referring to TeX
groups{...}
. -
Removed dependency on
ifthen
package. -
breakautoindent
now works correctly with Pygments output that treats
leading whitespace as a separate token or as part of a token.
v1.4
-
Reimplemented
\Verb
. It now works as expected inside other commands
(with a few limitations), including in movable arguments, and is compatible
withhyperref
for things like PDF bookmarks. It now supports
breaklines
and relevant line-breaking options. -
Reimplemented
\SaveVerb
and\UseVerb
to be equivalent to the new
\Verb
. The new optionretokenize
allows saved verbatim material to be
retokenized under newcommandchars
andcodes
when it is inserted with
\UseVerb
. -
New command
\EscVerb
works like the reimplemented\Verb
, except that
special characters can be escaped with a backslash. It works inside other
commands without any limitations, including in movable arguments, and is
compatible withhyperref
for things like PDF bookmarks. -
Added
extra
option for switching between the reimplemented\Verb
,
\SaveVerb
,\UseVerb
and the originalfancyvrb
definitions.
Reimplemented versions are used by default. This option will apply to any
future reimplemented commands and environments. -
New command
\fvinlineset
only applies options to commands related to
typesetting verbatim inline, like\Verb
,\SaveVerb
,\UseVerb
. It
only works with commands that are defined or reimplemented byfvextra
.
It overrides options from\fvset
. -
Patched
fancyvrb
so that\Verb
(either reimplemented version or
original) can use characters like%
for delimiters when used outside any
commands. -
obeytabs
now works with thecalc
package's redefined\setcounter
.
Sinceminted
loadscalc
, this also fixesminted
compatibility
(minted
#221). -
Added new option
fontencoding
(minted
#208). -
highlightlines
now works correctly withframe
(#7).
v1.3.1
v1.3
-
Added
beameroverlays
option, which enablesbeamer
overlays using the
<
and>
characters. -
Added options
breakindentnchars
,breaksymbolsepleftnchars
(alias
breaksymbolsepnchars
),breaksymbolseprightnchars
,
breaksymbolindentleftnchars
(aliasbreaksymbolindentnchars
), and
breaksymbolindentrightnchars
. These are identical to the pre-existing
options without thenchars
suffix, except that they allow indentation to
be specified as an integer number of characters rather than as a dimension.
As a result of these new options,\settowidth
is no longer used in the
preamble, resolving some font incompatibilities (#4). -
Clarified in the docs that
breaksymbolsepright
is a minimum, rather
than exact, distance.