Skip to content

Releases: gpoore/minted

v2.9

18 Dec 14:41
Compare
Choose a tag to compare
  • This is expected to be the last release of minted v2.x. If so, it will
    then become the new package minted2 for backward compatibility.

  • Added new option ignorelexererrors. When lexer errors are shown in
    highlighted output (default), they are typically displayed as red boxes
    that surround the relevant text. When lexer errors are ignored, the
    literal text that caused lexer errors is shown but there is no indication
    that it caused errors (#374).

  • There is now a warning if fvextra version is less than 1.5.

v2.8

12 Sep 18:32
Compare
Choose a tag to compare
  • Under non-Windows operating systems, detect executables with command -v
    rather than which to provide better cross-platform support (#345).

  • Added new package option inputlanglinenos. This extends the existing
    langlinenos to cover \inputminted as well (#361).

  • Improved and updated Pygments documentation (#339).

  • Improved \mintinline documentation to address packages that redefine
    \section (#368).

  • Added support for fvextra options breakafterinrun and
    breakbeforeinrun (#358). In fvextra version 1.5, breakaftergroup
    and breakbeforegroup were renamed to breakafterinrun and
    breakbeforeinrun to avoid naming ambiguity with new options. The old
    options breakaftergroup and breakbeforegroup are no longer supported.

  • Added DEPENDS.txt (#331).

  • Removed unnecessary dependency on calc package (#313).

  • Added documentation in FAQ about copy and paste limitations (#302).

  • Added note on text lexer to documentation (#274).

v2.7

12 Dec 14:46
Compare
Choose a tag to compare
  • Reimplemented \mintinline to use fvextra's argument reading and
    processing macros, and to use fvextra's \Verb internally.
    \mintinline now works with all line breaking options supported by
    fvextra's \Verb, including breakanywhere (#329, #340). It now
    gives better results when used inside other commands, since it uses
    fvextra's retokenization macros. It is now compatible with hyperref
    for PDF strings such as bookmarks.

  • Reimplemented \newmintinline based on new \mintinline.

  • Reimplemented \mint to use fvextra's argument reading and processing
    macros. It now gives better results when used inside other commands,
    since it uses fvextra's retokenization macros. Fixed a bug that caused
    a continued paragraph after \mint to be indented (#218).

  • Reimplemented \newmint based on new \mint. Commands created with
    \newmint can now use curly braces as delimiters, just like \mint
    (#254).

  • Settings passed to pygmentize as command-line options are now quoted.
    This prevents escapeinside characters from being interpreted as special
    shell characters (#179, #262).

  • Fixed bug with autogobble that produced incorrect dedent when using
    lastline with the lines beyond lastline having less indentation than
    the selected range (#326).

  • Fixed unintended line breaks after hyphens under LuaTeX (#263).

  • Added warning to documentation of \inputminted regarding filenames
    and shell command execution (#338).

v2.6

24 Dec 19:10
Compare
Choose a tag to compare
  • autogobble automatically uses python or python3 executables,
    depending on availability, instead of requiring python. A custom
    executable can be specified by redefining \MintedPython (#277, #287).

  • Fixed autogobble compatibility with fancyvrb 4.0+ (#315, #316).

  • Pygments style names may now contain arbitrary non-whitespace characters.
    Previously, style names containing digits and some punctuation characters
    were incompatible (#210, #294, #299, #317). Pygments macros are now only
    defined just before use locally within minted commands and environments,
    rather than globally. Pygments macros now always use a \PYG prefix
    regardless of style, rather than a prefix of the form \PYG<style> (for
    example, what was previously \PYGdefault is now simply \PYG).

  • Removed Python-based MD5 hashing for XeTeX, which was necessary before
    XeTeX added \mdfivesum in 2017.

  • The default for stripnl is now false, so that original code is
    preserved exactly by default (#198).

  • Added support for fontencoding option from fvextra (#208).

  • Added note to FAQ about getting texi2pdf to work with minted given
    texi2pdf's assumptions about temp files (#186).

  • Reimplemented bgcolor option to be compatible with color package.

v2.5

19 Jul 18:59
Compare
Choose a tag to compare
  • The default placement for the listing float is now tbp instead of h,
    to parallel figure and table and also avoid warnings caused by h
    (#165). The documentation now contains information about changing default
    placement. The float package is no longer loaded when the newfloat
    package option is used.

  • Added support for *nchars options from fvextra v1.3 that allow setting
    breaklines-related indentation in terms of a number of characters, rather
    than as a fixed dimension.

  • Fixed incompatibility with babel magyar (#158).

  • Added support for beamer overlays with beameroverlays option (#155).

  • Comments in the Pygments LaTeX style files no longer appear as literal
    text when minted is used in .dtx files (#161).

  • autogobble now works with package option kpsewhich (#151). Under
    Windows, the kpsewhich option no longer requires PowerShell.

  • Fixed a bug that prevented finalizecache from working with outputdir
    (#149).

  • Fixed a bug with firstline and lastline that prevented them from
    working with the minted environment (#145).

  • Added note on breqn conflicts to FAQ (#163).

v2.4.1

31 Oct 23:11
Compare
Choose a tag to compare
  • Single quotation marks in \jobname are now replaced with underscores in
    \minted@jobname to prevent quoting errors (#137).
  • The autogobble option now takes firstline and lastline into account
    (#130).
  • Fixed numberblanklines, which had been lost in the transition to v2.0+
    (#135).

v2.4

20 Jul 23:04
Compare
Choose a tag to compare
  • Line breaking and all associated options are now completely delegated to
    fvextra.
  • Fixed a bug from v2.2 that could cause the first command or environment to
    vanish when caching=false (related to work on \MintedPygmentize).

v2.3

14 Jul 14:42
Compare
Choose a tag to compare
  • The fvextra package is now required. fvextra extends and patches
    fancyvrb, and includes improved versions of fancyvrb extensions that
    were formerly in minted.
  • As part of fvextra, the upquote package is always loaded. fvextra
    brings the new option curlyquotes, which allows curly single quotation
    marks instead of the literal backtick and typewriter single quotation mark
    produced by upquote. This allows the default upquote behavior to be
    disabled when desired.
  • Thanks to fvextra, the options breakbefore, breakafter, and
    breakanywhere are now compatible with non-ASCII characters under
    pdfTeX (#123).
  • Thanks to fvextra, obeytabs no longer causes lines in multi-line
    comments or strings to vanish (#88), and is now compatible with
    breaklines (#99). obeytabs will now always give correct results with
    tabs used for indentation. However, tab stops are not guaranteed to be
    correct for tabs in the midst of text.
  • fvextra brings the new options space, spacecolor, tab, and
    tabcolor that allow these characters and their colors to be redefined
    (#98). The tab may now be redefined to a flexible-width character such
    as \rightarrowfill. The visible tab will now always be black by default,
    instead of changing colors depending on whether it is part of indentation
    for a multiline string or comment.
  • fvextra brings the new options highlightcolor and highlightlines,
    which allow single lines or ranges of lines to be highlighted based on line
    number (#124).
  • fvextra brings the new options numberfirstline, stepnumberfromfirst,
    and stepnumberoffsetvalues that provide better control over line
    numbering when stepnumber is not 1.
  • Fixed a bug from v2.2.2 that prevented upquote from working.

v2.2.2

22 Jun 00:48
Compare
Choose a tag to compare
  • Fixed a bug introduced in v2.2 that prevented setting the Pygments style in
    the preamble. Style definitions are now more compatible with using
    \MintedPygmentize to call a custom pygmentize.

v2.2.1

15 Jun 18:31
Compare
Choose a tag to compare
  • The shellesc package is loaded before ifplatform and other packages
    that might invoke \write18 (#112).
  • When caching is enabled, XeTeX uses the new \mdfivesum macro from TeX
    Live 2016 to hash cache content, rather than using \ShellEscape with
    Python to perform hashing.