texlive[73858] branches/branch2024.final/Master/texmf-dist: minted
commits+karl at tug.org
commits+karl at tug.org
Mon Feb 10 21:21:01 CET 2025
Revision: 73858
https://tug.org/svn/texlive?view=revision&revision=73858
Author: karl
Date: 2025-02-10 21:21:01 +0100 (Mon, 10 Feb 2025)
Log Message:
-----------
minted (branch) (10feb25)
Modified Paths:
--------------
branches/branch2024.final/Master/texmf-dist/doc/latex/minted/CHANGELOG_LATEXMINTED_PYTHON_PACKAGE.md
branches/branch2024.final/Master/texmf-dist/doc/latex/minted/CHANGELOG_MINTED_LATEX_PACKAGE.md
branches/branch2024.final/Master/texmf-dist/doc/latex/minted/minted.pdf
branches/branch2024.final/Master/texmf-dist/source/latex/minted/minted.dtx
branches/branch2024.final/Master/texmf-dist/source/latex/minted/minted.ins
branches/branch2024.final/Master/texmf-dist/tex/latex/minted/minted.sty
Added Paths:
-----------
branches/branch2024.final/Master/texmf-dist/scripts/minted/latex2pydata-0.4.1-py3-none-any.whl
branches/branch2024.final/Master/texmf-dist/scripts/minted/latexminted-0.4.0-py3-none-any.whl
branches/branch2024.final/Master/texmf-dist/scripts/minted/latexrestricted-0.6.2-py3-none-any.whl
branches/branch2024.final/Master/texmf-dist/scripts/minted/pygments-2.19.1-py3-none-any.whl
Removed Paths:
-------------
branches/branch2024.final/Master/texmf-dist/scripts/minted/latex2pydata-0.4.0-py3-none-any.whl
branches/branch2024.final/Master/texmf-dist/scripts/minted/latexminted-0.3.1-py3-none-any.whl
branches/branch2024.final/Master/texmf-dist/scripts/minted/latexrestricted-0.6.0-py3-none-any.whl
branches/branch2024.final/Master/texmf-dist/scripts/minted/pygments-2.18.0-py3-none-any.whl
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/minted/CHANGELOG_LATEXMINTED_PYTHON_PACKAGE.md
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/minted/CHANGELOG_LATEXMINTED_PYTHON_PACKAGE.md 2025-02-10 20:20:24 UTC (rev 73857)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/minted/CHANGELOG_LATEXMINTED_PYTHON_PACKAGE.md 2025-02-10 20:21:01 UTC (rev 73858)
@@ -2,6 +2,29 @@
+## v0.4.0 (2025-02-09)
+
+* `rangeregex` is now compatible with Python < 3.11.
+
+* Errors in compiling regular expressions for `rangeregex` are now always
+ caught and translated into LaTeX errors.
+
+* Improved error messages when `rangeregex`, possibly combined with
+ `rangeregexmatchnumber`, fails to find a match.
+
+* A security error related to `.latexminted_config` is no longer always
+ raised when dotfiles are writable by LaTeX (`openout_any=a`). An error is
+ now raised only when `.latexminted_config` actually exists under these
+ circumstances.
+
+
+
+## v0.3.2 (2024-11-24)
+
+* `pyproject.toml`: explicitly set `build-backend` (#424).
+
+
+
## v0.3.1 (2024-11-12)
* Fixed a bug in config detection that caused an error when a data file from
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/minted/CHANGELOG_MINTED_LATEX_PACKAGE.md
===================================================================
--- branches/branch2024.final/Master/texmf-dist/doc/latex/minted/CHANGELOG_MINTED_LATEX_PACKAGE.md 2025-02-10 20:20:24 UTC (rev 73857)
+++ branches/branch2024.final/Master/texmf-dist/doc/latex/minted/CHANGELOG_MINTED_LATEX_PACKAGE.md 2025-02-10 20:21:01 UTC (rev 73858)
@@ -1,6 +1,21 @@
# Changelog — minted LaTeX package
+## v3.5.0 (2025/02/09)
+
+* Tab characters in inputted temp files with recognized file extensions are
+ no longer lost when `highlightmode` is `fastfirst` during the first
+ compile, or when `highlightmode` is `fast` (#431).
+
+* For environments such as `minted`, any error messages generated within
+ Python and passed to LaTeX now refer to the starting line of the
+ environment, instead of the ending line. This improves debugging for long
+ environments.
+
+* Updated minimum required `latexminted` to v0.4.0 (#425).
+
+
+
## v3.4.0 (2024/11/17)
* Replaced temp counter with a macro to prevent issues with commands
Modified: branches/branch2024.final/Master/texmf-dist/doc/latex/minted/minted.pdf
===================================================================
(Binary files differ)
Deleted: branches/branch2024.final/Master/texmf-dist/scripts/minted/latex2pydata-0.4.0-py3-none-any.whl
===================================================================
(Binary files differ)
Added: branches/branch2024.final/Master/texmf-dist/scripts/minted/latex2pydata-0.4.1-py3-none-any.whl
===================================================================
(Binary files differ)
Index: branches/branch2024.final/Master/texmf-dist/scripts/minted/latex2pydata-0.4.1-py3-none-any.whl
===================================================================
--- branches/branch2024.final/Master/texmf-dist/scripts/minted/latex2pydata-0.4.1-py3-none-any.whl 2025-02-10 20:20:24 UTC (rev 73857)
+++ branches/branch2024.final/Master/texmf-dist/scripts/minted/latex2pydata-0.4.1-py3-none-any.whl 2025-02-10 20:21:01 UTC (rev 73858)
Property changes on: branches/branch2024.final/Master/texmf-dist/scripts/minted/latex2pydata-0.4.1-py3-none-any.whl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Deleted: branches/branch2024.final/Master/texmf-dist/scripts/minted/latexminted-0.3.1-py3-none-any.whl
===================================================================
(Binary files differ)
Added: branches/branch2024.final/Master/texmf-dist/scripts/minted/latexminted-0.4.0-py3-none-any.whl
===================================================================
(Binary files differ)
Index: branches/branch2024.final/Master/texmf-dist/scripts/minted/latexminted-0.4.0-py3-none-any.whl
===================================================================
--- branches/branch2024.final/Master/texmf-dist/scripts/minted/latexminted-0.4.0-py3-none-any.whl 2025-02-10 20:20:24 UTC (rev 73857)
+++ branches/branch2024.final/Master/texmf-dist/scripts/minted/latexminted-0.4.0-py3-none-any.whl 2025-02-10 20:21:01 UTC (rev 73858)
Property changes on: branches/branch2024.final/Master/texmf-dist/scripts/minted/latexminted-0.4.0-py3-none-any.whl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Deleted: branches/branch2024.final/Master/texmf-dist/scripts/minted/latexrestricted-0.6.0-py3-none-any.whl
===================================================================
(Binary files differ)
Added: branches/branch2024.final/Master/texmf-dist/scripts/minted/latexrestricted-0.6.2-py3-none-any.whl
===================================================================
(Binary files differ)
Index: branches/branch2024.final/Master/texmf-dist/scripts/minted/latexrestricted-0.6.2-py3-none-any.whl
===================================================================
--- branches/branch2024.final/Master/texmf-dist/scripts/minted/latexrestricted-0.6.2-py3-none-any.whl 2025-02-10 20:20:24 UTC (rev 73857)
+++ branches/branch2024.final/Master/texmf-dist/scripts/minted/latexrestricted-0.6.2-py3-none-any.whl 2025-02-10 20:21:01 UTC (rev 73858)
Property changes on: branches/branch2024.final/Master/texmf-dist/scripts/minted/latexrestricted-0.6.2-py3-none-any.whl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Deleted: branches/branch2024.final/Master/texmf-dist/scripts/minted/pygments-2.18.0-py3-none-any.whl
===================================================================
(Binary files differ)
Added: branches/branch2024.final/Master/texmf-dist/scripts/minted/pygments-2.19.1-py3-none-any.whl
===================================================================
(Binary files differ)
Index: branches/branch2024.final/Master/texmf-dist/scripts/minted/pygments-2.19.1-py3-none-any.whl
===================================================================
--- branches/branch2024.final/Master/texmf-dist/scripts/minted/pygments-2.19.1-py3-none-any.whl 2025-02-10 20:20:24 UTC (rev 73857)
+++ branches/branch2024.final/Master/texmf-dist/scripts/minted/pygments-2.19.1-py3-none-any.whl 2025-02-10 20:21:01 UTC (rev 73858)
Property changes on: branches/branch2024.final/Master/texmf-dist/scripts/minted/pygments-2.19.1-py3-none-any.whl
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: branches/branch2024.final/Master/texmf-dist/source/latex/minted/minted.dtx
===================================================================
--- branches/branch2024.final/Master/texmf-dist/source/latex/minted/minted.dtx 2025-02-10 20:20:24 UTC (rev 73857)
+++ branches/branch2024.final/Master/texmf-dist/source/latex/minted/minted.dtx 2025-02-10 20:21:01 UTC (rev 73858)
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright (C) 2013-2024 by Geoffrey M. Poore <gpoore at gmail.com>
+% Copyright (C) 2013-2025 by Geoffrey M. Poore <gpoore at gmail.com>
% Copyright (C) 2010-2011 by Konrad Rudolph <konrad_rudolph at madrat.net>
% --------------------------------------------------------------------------
% This work may be distributed and/or modified under the
@@ -27,7 +27,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{minted}
%<*package>
- [2024/11/17 v3.4.0 Yet another Pygments shim for LaTeX]
+ [2025/02/09 v3.5.0 Yet another Pygments shim for LaTeX]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -1740,7 +1740,7 @@
%
% \begin{macro}{\minted at executable@minversion}
% \begin{macrocode}
-\edef\minted at executable@minversion{\detokenize{0.2.0}}
+\edef\minted at executable@minversion{\detokenize{0.4.0}}
% \end{macrocode}
% \end{macro}
%
@@ -2372,7 +2372,7 @@
%
%
% \begin{macro}{minted at isinline}
-% Whether in command or environment.
+% Whether in command or environment for typesetting. This is not related to whether a command or environment initiates typesetting (see |minted at iscmd|); for example, |\inputminted| is a command that causes typesetting within an environment.
% \begin{macrocode}
\newbool{minted at isinline}
% \end{macrocode}
@@ -2379,6 +2379,14 @@
% \end{macro}
%
%
+% \begin{macro}{minted at iscmd}
+% Whether a command or environment initiates typesetting.
+% \begin{macrocode}
+\newbool{minted at iscmd}
+% \end{macrocode}
+% \end{macro}
+%
+%
% \begin{macro}{minted at tmpcodebufferlength}
% Length of buffer in which code to be highlighted is stored.
% \begin{macrocode}
@@ -3595,7 +3603,7 @@
\pydatawritekeyedefvalue{timestamp}{\minted at timestamp}%
\pydatawritekeyedefvalue{currentfilepath}{\CurrentFilePath}%
\pydatawritekeyedefvalue{currentfile}{\CurrentFile}%
- \pydatawritekeyedefvalue{inputlineno}{\the\inputlineno}%
+ \pydatawritekeyedefvalue{inputlineno}{\minted at inputlineno}%
\pydatawritekeyedefvalue{cachepath}{\minted at cachepath}%
\pydatawritekeyedefvalue{styledeffilename}{\minted at styledeffilename}%
\pydatawritekeyvalue{style}{#1}%
@@ -3760,6 +3768,10 @@
\ifx\CurrentFile\@empty\else\CurrentFile\space\fi line \the\inputlineno}}%
{}}
\def\minted at highlight{%
+ \ifbool{minted at iscmd}%
+ {\edef\minted at inputlineno{\the\inputlineno}}%
+ {\edef\minted at inputlineno{%
+ \the\numexpr\the\inputlineno-\minted at tmpcodebufferlength-1\relax}}%
\minted at defstyle
\pydatasetbuffername{minted at tmpdatabuffer}%
\pydatabufferkeyvalue{command}{highlight}%
@@ -3854,7 +3866,7 @@
\pydatawritekeyedefvalue{timestamp}{\minted at timestamp}%
\pydatawritekeyedefvalue{currentfilepath}{\CurrentFilePath}%
\pydatawritekeyedefvalue{currentfile}{\CurrentFile}%
- \pydatawritekeyedefvalue{inputlineno}{\the\inputlineno}%
+ \pydatawritekeyedefvalue{inputlineno}{\minted at inputlineno}%
\pydatawritekeyedefvalue{cachepath}{\minted at cachepath}%
\pydatawritekeyedefvalue{highlightfilename}{\minted at highlightfilename}%
\pydatawritedictclose
@@ -3965,6 +3977,7 @@
\openin\minted at intempfile=\minted at inputfilepath
\endlinechar=-1%
\let\do\@makeother\FVExtraDoSpecials
+ \catcode`\^^I=12%
\loop\unless\ifeof\minted at intempfile
\read\minted at intempfile to\minted at intempfileline
\xdef\minted at tmpcodebufferlength{\the\numexpr\minted at tmpcodebufferlength+1\relax}%
@@ -4068,6 +4081,7 @@
{\FVExtraReadVArg{\RobustMintInlineProcess{#1}{#2}}}}
\def\RobustMintInlineProcess at highlight#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\booltrue{minted at isinline}%
\ifstrempty{#1}{}{\pgfkeys{/minted/cmd/.cd,#1}}%
\edef\minted at lexer{#2}%
@@ -4090,11 +4104,13 @@
\expandafter\Verb\expandafter{\minted at tmp}}}
\def\RobustMintInlineProcess at placeholder#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\booltrue{minted at isinline}%
\minted at insertplaceholder
\endgroup}
\def\RobustMintInlineProcess at verbatim#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\booltrue{minted at isinline}%
\ifstrempty{#1}{}{\pgfkeys{/minted/cmd/.cd,#1}}%
\edef\minted at lexer{#2}%
@@ -4240,6 +4256,7 @@
\RobustInputMintedProcess{#1}{#2}{#3}}
\def\RobustInputMintedProcess at highlight#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\ifstrempty{#1}{}{\pgfkeys{/minted/cmd/.cd,#1}}%
\edef\minted at lexer{#2}%
\edef\minted at inputfilepath{#3}%
@@ -4253,9 +4270,13 @@
\minted at codewrapper{%
\csname\minted at envname Input\endcsname{\minted at inputfilepath}}}
\def\RobustInputMintedProcess at placeholder#1#2#3{%
- \minted at insertplaceholder}
+ \begingroup
+ \booltrue{minted at iscmd}%
+ \minted at insertplaceholder
+ \endgroup}
\def\RobustInputMintedProcess at verbatim#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\ifstrempty{#1}{}{\pgfkeys{/minted/cmd/.cd,#1}}%
\edef\minted at lexer{#2}%
\edef\minted at inputfilepath{#3}%
Modified: branches/branch2024.final/Master/texmf-dist/source/latex/minted/minted.ins
===================================================================
--- branches/branch2024.final/Master/texmf-dist/source/latex/minted/minted.ins 2025-02-10 20:20:24 UTC (rev 73857)
+++ branches/branch2024.final/Master/texmf-dist/source/latex/minted/minted.ins 2025-02-10 20:21:01 UTC (rev 73858)
@@ -4,7 +4,7 @@
\preamble
-Copyright (C) 2013-2024 by Geoffrey M. Poore <gpoore at gmail.com>
+Copyright (C) 2013-2025 by Geoffrey M. Poore <gpoore at gmail.com>
Copyright (C) 2010-2011 by Konrad Rudolph <konrad_rudolph at madrat.net>
--------------------------------------------------------------------------
This work may be distributed and/or modified under the
Modified: branches/branch2024.final/Master/texmf-dist/tex/latex/minted/minted.sty
===================================================================
--- branches/branch2024.final/Master/texmf-dist/tex/latex/minted/minted.sty 2025-02-10 20:20:24 UTC (rev 73857)
+++ branches/branch2024.final/Master/texmf-dist/tex/latex/minted/minted.sty 2025-02-10 20:21:01 UTC (rev 73858)
@@ -6,7 +6,7 @@
%%
%% minted.dtx (with options: `package')
%%
-%% Copyright (C) 2013-2024 by Geoffrey M. Poore <gpoore at gmail.com>
+%% Copyright (C) 2013-2025 by Geoffrey M. Poore <gpoore at gmail.com>
%% Copyright (C) 2010-2011 by Konrad Rudolph <konrad_rudolph at madrat.net>
%% --------------------------------------------------------------------------
%% This work may be distributed and/or modified under the
@@ -26,7 +26,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{minted}
- [2024/11/17 v3.4.0 Yet another Pygments shim for LaTeX]
+ [2025/02/09 v3.5.0 Yet another Pygments shim for LaTeX]
\RequirePackage{catchfile}
\RequirePackage{etoolbox}
\RequirePackage{fvextra}[2024/10/16]
@@ -45,7 +45,7 @@
\batchmode\read -1 to \minted at fatalerror@exitnow}
\def\minted at warning#1{\PackageWarning{minted}{#1}}
\edef\MintedExecutable{\detokenize{latexminted}}
-\edef\minted at executable@minversion{\detokenize{0.2.0}}
+\edef\minted at executable@minversion{\detokenize{0.4.0}}
\def\minted at executable@setminversioncomponents{%
\expandafter\minted at executable@setminversioncomponents at i
\minted at executable@minversion\relax}
@@ -374,6 +374,7 @@
\def\minted at ifalphanumhyphenunderscore@false#1\FV at Sentinel#2#3{#3}
\let\minted at lexer\@empty
\newbool{minted at isinline}
+\newbool{minted at iscmd}
\def\minted at tmpcodebufferlength{0}
\newbool{minted at canexec}
\booltrue{minted at canexec}
@@ -1274,7 +1275,7 @@
\pydatawritekeyedefvalue{timestamp}{\minted at timestamp}%
\pydatawritekeyedefvalue{currentfilepath}{\CurrentFilePath}%
\pydatawritekeyedefvalue{currentfile}{\CurrentFile}%
- \pydatawritekeyedefvalue{inputlineno}{\the\inputlineno}%
+ \pydatawritekeyedefvalue{inputlineno}{\minted at inputlineno}%
\pydatawritekeyedefvalue{cachepath}{\minted at cachepath}%
\pydatawritekeyedefvalue{styledeffilename}{\minted at styledeffilename}%
\pydatawritekeyvalue{style}{#1}%
@@ -1389,6 +1390,10 @@
\ifx\CurrentFile\@empty\else\CurrentFile\space\fi line \the\inputlineno}}%
{}}
\def\minted at highlight{%
+ \ifbool{minted at iscmd}%
+ {\edef\minted at inputlineno{\the\inputlineno}}%
+ {\edef\minted at inputlineno{%
+ \the\numexpr\the\inputlineno-\minted at tmpcodebufferlength-1\relax}}%
\minted at defstyle
\pydatasetbuffername{minted at tmpdatabuffer}%
\pydatabufferkeyvalue{command}{highlight}%
@@ -1483,7 +1488,7 @@
\pydatawritekeyedefvalue{timestamp}{\minted at timestamp}%
\pydatawritekeyedefvalue{currentfilepath}{\CurrentFilePath}%
\pydatawritekeyedefvalue{currentfile}{\CurrentFile}%
- \pydatawritekeyedefvalue{inputlineno}{\the\inputlineno}%
+ \pydatawritekeyedefvalue{inputlineno}{\minted at inputlineno}%
\pydatawritekeyedefvalue{cachepath}{\minted at cachepath}%
\pydatawritekeyedefvalue{highlightfilename}{\minted at highlightfilename}%
\pydatawritedictclose
@@ -1583,6 +1588,7 @@
\openin\minted at intempfile=\minted at inputfilepath
\endlinechar=-1%
\let\do\@makeother\FVExtraDoSpecials
+ \catcode`\^^I=12%
\loop\unless\ifeof\minted at intempfile
\read\minted at intempfile to\minted at intempfileline
\xdef\minted at tmpcodebufferlength{\the\numexpr\minted at tmpcodebufferlength+1\relax}%
@@ -1650,6 +1656,7 @@
{\FVExtraReadVArg{\RobustMintInlineProcess{#1}{#2}}}}
\def\RobustMintInlineProcess at highlight#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\booltrue{minted at isinline}%
\ifstrempty{#1}{}{\pgfkeys{/minted/cmd/.cd,#1}}%
\edef\minted at lexer{#2}%
@@ -1672,11 +1679,13 @@
\expandafter\Verb\expandafter{\minted at tmp}}}
\def\RobustMintInlineProcess at placeholder#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\booltrue{minted at isinline}%
\minted at insertplaceholder
\endgroup}
\def\RobustMintInlineProcess at verbatim#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\booltrue{minted at isinline}%
\ifstrempty{#1}{}{\pgfkeys{/minted/cmd/.cd,#1}}%
\edef\minted at lexer{#2}%
@@ -1801,6 +1810,7 @@
\RobustInputMintedProcess{#1}{#2}{#3}}
\def\RobustInputMintedProcess at highlight#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\ifstrempty{#1}{}{\pgfkeys{/minted/cmd/.cd,#1}}%
\edef\minted at lexer{#2}%
\edef\minted at inputfilepath{#3}%
@@ -1814,9 +1824,13 @@
\minted at codewrapper{%
\csname\minted at envname Input\endcsname{\minted at inputfilepath}}}
\def\RobustInputMintedProcess at placeholder#1#2#3{%
- \minted at insertplaceholder}
+ \begingroup
+ \booltrue{minted at iscmd}%
+ \minted at insertplaceholder
+ \endgroup}
\def\RobustInputMintedProcess at verbatim#1#2#3{%
\begingroup
+ \booltrue{minted at iscmd}%
\ifstrempty{#1}{}{\pgfkeys{/minted/cmd/.cd,#1}}%
\edef\minted at lexer{#2}%
\edef\minted at inputfilepath{#3}%
More information about the tex-live-commits
mailing list.