summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/minted
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/minted')
-rw-r--r--macros/latex/contrib/minted/CHANGELOG_MINTED_LATEX_PACKAGE.md9
-rw-r--r--macros/latex/contrib/minted/minted.dtx6
-rw-r--r--macros/latex/contrib/minted/minted.pdfbin505845 -> 505746 bytes
3 files changed, 12 insertions, 3 deletions
diff --git a/macros/latex/contrib/minted/CHANGELOG_MINTED_LATEX_PACKAGE.md b/macros/latex/contrib/minted/CHANGELOG_MINTED_LATEX_PACKAGE.md
index ce573e9c1e..88e443ea35 100644
--- a/macros/latex/contrib/minted/CHANGELOG_MINTED_LATEX_PACKAGE.md
+++ b/macros/latex/contrib/minted/CHANGELOG_MINTED_LATEX_PACKAGE.md
@@ -1,6 +1,15 @@
# Changelog — minted LaTeX package
+## v3.1.2 (2024/10/07)
+
+* There is now only a single `\read` allocation for reading temporary files
+ when `highlightmode` is set to `fast` or `fastfirst`. Previously, there
+ was one allocation per temp file, which could cause allocation errors when
+ several temp files were highlighted during the same compile (#413).
+
+
+
## v3.1.1 (2024/10/03)
* Fixed bugs in processing temporary files regardless of `highlightmode` from
diff --git a/macros/latex/contrib/minted/minted.dtx b/macros/latex/contrib/minted/minted.dtx
index 0fe35161ce..a8f9b33952 100644
--- a/macros/latex/contrib/minted/minted.dtx
+++ b/macros/latex/contrib/minted/minted.dtx
@@ -27,7 +27,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{minted}
%<*package>
- [2024/10/03 v3.1.1 Yet another Pygments shim for LaTeX]
+ [2024/10/07 v3.1.2 Yet another Pygments shim for LaTeX]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -2611,7 +2611,8 @@
\minted@error{minted Python executable returned incomplete configuration data;
this may indicate a bug in minted or file corruption}}%
{\global\let\minted@cachepath\minted@config@cachepath
- \minted@highlightmode@init}}%
+ \minted@highlightmode@init
+ \ifbool{minted@fasthighlightmode}{\newread\minted@intempfile}{}}}%
{\global\boolfalse{minted@canexec}%
\minted@error{minted Python executable is version \minted@executable@version,
but version \minted@executable@minversion+ is required}}}
@@ -3825,7 +3826,6 @@
\def\minted@iffasthighlightmode@buffertempfile@iv{%
\begingroup
\setcounter{minted@tmpcodebufferlength}{0}%
- \newread\minted@intempfile
\openin\minted@intempfile=\minted@inputfilepath
\endlinechar=-1%
\let\do\@makeother\FVExtraDoSpecials
diff --git a/macros/latex/contrib/minted/minted.pdf b/macros/latex/contrib/minted/minted.pdf
index 9e94c21fc0..e620517ae0 100644
--- a/macros/latex/contrib/minted/minted.pdf
+++ b/macros/latex/contrib/minted/minted.pdf
Binary files differ