Skip to content

Commit 8f39a6a

Browse files
committed
[latex] v3.0.0
1 parent bf2c6f2 commit 8f39a6a

5 files changed

Lines changed: 15 additions & 15 deletions

File tree

latex/CHANGELOG_MINTED_LATEX_PACKAGE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog — minted LaTeX package
22

33

4-
## v3.0.0 (dev)
4+
## v3.0.0 (2024/09/22)
55

66
* Backward compatibility: The new `minted2` package provides the features of
77
`minted` v2.9, the final release before v3. No additional v2 releases are

latex/minted/minted.dtx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
%<package>\NeedsTeXFormat{LaTeX2e}
2828
%<package>\ProvidesPackage{minted}
2929
%<*package>
30-
[2024/09/22 v3.0.0beta24 Yet another Pygments shim for LaTeX]
30+
[2024/09/22 v3.0.0 Yet another Pygments shim for LaTeX]
3131
%</package>
3232
%<*driver>
3333
\documentclass{ltxdoc}
@@ -285,7 +285,7 @@
285285
% \maketitle
286286
%
287287
% \begin{abstract}
288-
% \noindent\mintedpkg\ provides syntax highlighting using the \href{https://pygments.org/}{\app{Pygments}} library. It also provides options for customizing the highlighted source code output, including features implemented in Python such as selecting snippets of code with regular expressions.
288+
% \noindent\mintedpkg\ provides syntax highlighting using the \href{https://pygments.org/}{Pygments} library. It also provides options for customizing the highlighted source code output, including features implemented in Python such as selecting snippets of code with regular expressions.
289289
%
290290
% \vspace{0.5in}
291291
% \noindent The original development of \mintedpkg\ version 3 was funded by a \href{https://tug.org/tc/devfund/grants.html}{\TeX\ Development Fund grant} from the \href{https://tug.org/}{\TeX\ Users Group} in 2023.
@@ -311,14 +311,14 @@
311311
%
312312
%
313313
%
314-
% \mintedpkg\ provides syntax highlighting using the \href{https://pygments.org/}{\app{Pygments}} library. The general strategy is to wrap code in a command or environment that captures it verbatim, like this:
314+
% \mintedpkg\ provides syntax highlighting using the \href{https://pygments.org/}{Pygments} library. The general strategy is to wrap code in a command or environment that captures it verbatim, like this:
315315
%\begin{mintedexample}[frame=single]{latex}
316316
%\begin{minted}{<language>}
317317
%<code>
318318
%\end{minted}
319319
%\end{mintedexample}
320320
%
321-
% Then the code is passed to Python, highlighted with \app{Pygments}, and passed back to \LaTeX\ for inclusion in the document. Here is an example with Ruby code, showing the \LaTeX\ source and then the highlighted output:
321+
% Then the code is passed to Python, highlighted with Pygments, and passed back to \LaTeX\ for inclusion in the document. Here is an example with Ruby code, showing the \LaTeX\ source and then the highlighted output:
322322
%
323323
% \begin{example}
324324
% \begin{minted}{ruby}
@@ -331,7 +331,7 @@
331331
% \end{minted}
332332
% \end{example}
333333
%
334-
% Because \mintedpkg\ uses \app{Pygments} and other Python software, it can provide more highlighting features than are practical in syntax highlighting packages like \href{ https://ctan.org/pkg/listings}{\texpkg{listings}} that are implemented purely in \LaTeX. In the past, this reliance on external software brought several disadvantages, including a requirement for separately installing \app{Pygments}. As of \mintedpkg\ version 3, all Python software including \app{Pygments} is bundled with the \LaTeX\ package when it is installed with a \TeX\ package manager, and no dependencies must be installed separately.
334+
% Because \mintedpkg\ uses Pygments and other Python software, it can provide more highlighting features than are practical in syntax highlighting packages like \href{ https://ctan.org/pkg/listings}{\texpkg{listings}} that are implemented purely in \LaTeX. In the past, this reliance on external software brought several disadvantages, including a requirement for separately installing Pygments. As of \mintedpkg\ version 3, all Python software including Pygments is bundled with the \LaTeX\ package when it is installed with a \TeX\ package manager, and no dependencies must be installed separately.
335335
%
336336
%
337337
% \section{Installation}
@@ -343,7 +343,7 @@
343343
% \item TeX Live: |tlmgr install minted|
344344
% \item MiKTeX: |mpm --admin --install=minted|
345345
% \end{itemize}
346-
% When the \mintedpkg\ package is installed, it includes the |latexminted| Python executable and all required Python libraries including \app{Pygments}. For these to function correctly, Python 3.8+ must be installed and on |PATH| when the |latexminted| executable runs.
346+
% When the \mintedpkg\ package is installed, it includes the |latexminted| Python executable and all required Python libraries including Pygments. For these to function correctly, Python 3.8+ must be installed and on |PATH| when the |latexminted| executable runs.
347347
%
348348
% Note that if you plan to use Pygments plugin packages, you will need to install the \pypkg{latexminted} Python package and dependencies including Pygments within a Python installation. The Python libraries installed by a \TeX\ package manager within a \TeX\ installation are not compatible with plugin packages. After installing \pypkg{latexminted} within a Python installation, make sure that its |latexminted| executable has precedence on |PATH|.
349349
%
@@ -372,7 +372,7 @@
372372
%
373373
% \mintedpkg\ source files are available at \href{https://github.com/gpoore/minted}{|github.com/gpoore/minted|}. There is also \href{https://ctan.org/pkg/minted}{|ctan.org/pkg/minted|}.
374374
%
375-
% Install |minted.sty| (and |minted2.sty| and |minted1.sty| if desired) within your \TeX\ installation. For TeX Live, it may be best to put style files under |TEXMFLOCAL|, which can be located by running |kpsewhich --var-value TEXMFLOCAL|. For example, you might put the files in |<texlive>/<year>/texmf-local/tex/latex/local/minted|. For further details, consult your \TeX\ distribution's documentation, or an online guide such as \href{https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages}{\Verb{en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages}} or \href{https://texfaq.org/}{\Verb|texfaq.org|}. After installing the |.sty| files, make TeX aware of the new files by running |texhash| or |mktexlsr| (TeX Live), or |initexmf --update-fndb| (MiKTeX).
375+
% Install |minted.sty| (and |minted2.sty| and |minted1.sty| if desired) within your \TeX\ installation. For TeX Live, it may be best to put style files under |TEXMFLOCAL|, which can be located by running |kpsewhich --var-value TEXMFLOCAL|. For example, you might put the files in |<texlive>/<year>/texmf-local/tex/latex/local/minted|. For further details, consult your \TeX\ distribution's documentation, or an online guide such as \href{https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages}{\Verb{en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages}} or \href{https://texfaq.org/}{\Verb|texfaq.org|}. After installing the |.sty| files, make \TeX\ aware of the new files by running |texhash| or |mktexlsr| (TeX Live), or |initexmf --update-fndb| (MiKTeX).
376376
%
377377
% Next, install the Python side of the package. Python 3.8+ is required. There are two options: Install the \pypkg{latexminted} package and dependencies within a Python installation (typically easier, and required for compatibility with Pygments plugin packages), or install them within your \TeX\ installation.
378378
%
@@ -397,7 +397,7 @@
397397
%
398398
% This approach is more involved and essentially replicates the process that is performed automatically when using a \TeX\ package manager.
399399
%
400-
% Install the |latexminted.py| executable within your \TeX\ installation. This should typically be within a |scripts| directory. When TeX Live installs \mintedpkg\ with its package manager, this is something like |<texlive>/<year>/texmf-dist/scripts/minted|.
400+
% Install the |latexminted.py| executable within your \TeX\ installation. (It is part of the \mintedpkg\ \LaTeX\ package, separate from the \pypkg{latexminted} Python package.) This should typically be within a |scripts| directory. When TeX Live installs \mintedpkg\ with its package manager, this is something like |<texlive>/<year>/texmf-dist/scripts/minted|.
401401
%
402402
% Download Python wheels (|*.whl|) for the following Python packages, and place them in the same location as |latexminted.py|.
403403
% \begin{itemize}
@@ -566,7 +566,7 @@
566566
% \DescribeMacro{\usemintedstyle}
567567
%
568568
% \DescribeMacro{\setminted}
569-
% Instead of using the default highlighting style you may choose another style provided by \app{Pygments}. There are two equivalent ways to do this:
569+
% Instead of using the default highlighting style you may choose another style provided by Pygments. There are two equivalent ways to do this:
570570
%
571571
% \begin{minted}{latex}
572572
% \usemintedstyle{name}
@@ -584,7 +584,7 @@
584584
%
585585
% \subsection{Supported languages}
586586
%
587-
% \app{Pygments} supports hundreds of different programming languages, template languages, and other markup languages. The list of currently supported languages is at \href{https://pygments.org/docs/lexers/}{pygments.org/docs/lexers/}. You can also run |pygmentize -L lexers|.
587+
% Pygments supports hundreds of different programming languages, template languages, and other markup languages. The list of currently supported languages is at \href{https://pygments.org/docs/lexers/}{pygments.org/docs/lexers/}. You can also run |pygmentize -L lexers|.
588588
%
589589
%
590590
%
@@ -1079,7 +1079,7 @@
10791079
% \end{longexample}
10801080
% \endgroup
10811081
%
1082-
% Automatic line breaks are limited with \app{Pygments} styles that use a colored background behind large chunks of text. This coloring is accomplished with \texttt{\string\colorbox}, which cannot break across lines. It may be possible to create an alternative to \texttt{\string\colorbox} that supports line breaks, perhaps with \texpkg{TikZ}, but the author is unaware of a satisfactory solution. The only current alternative is to redefine \texttt{\string\colorbox} so that it does nothing. For example,
1082+
% Automatic line breaks are limited with Pygments styles that use a colored background behind large chunks of text. This coloring is accomplished with \texttt{\string\colorbox}, which cannot break across lines. It may be possible to create an alternative to \texttt{\string\colorbox} that supports line breaks, perhaps with \texpkg{TikZ}, but the author is unaware of a satisfactory solution. The only current alternative is to redefine \texttt{\string\colorbox} so that it does nothing. For example,
10831083
%\begin{Verbatim}
10841084
%\AtBeginEnvironment{minted}{\renewcommand{\colorbox}[3][]{#3}}
10851085
%\end{Verbatim}
@@ -1441,7 +1441,7 @@
14411441
%
14421442
%
14431443
% \item[style] (string) (\meta{default})
1444-
% Sets the stylesheet used by \app{Pygments}.
1444+
% Sets the stylesheet used by Pygments.
14451445
%
14461446
%
14471447
% \item[tab (macro) ({\rmfamily\texpkg{fancyvrb}'s} \string\FancyVerbTab, \FancyVerbTab)]

latex/minted/minted.pdf

-363 KB
Binary file not shown.

latex/minted/minted.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
%%
2727
\NeedsTeXFormat{LaTeX2e}
2828
\ProvidesPackage{minted}
29-
[2024/09/22 v3.0.0beta24 Yet another Pygments shim for LaTeX]
29+
[2024/09/22 v3.0.0 Yet another Pygments shim for LaTeX]
3030
\RequirePackage{catchfile}
3131
\RequirePackage{etoolbox}
3232
\RequirePackage{fvextra}[2024/09/05]

latex/restricted/latexminted.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
'''
8080

8181

82-
__version__ = '0.1.0b4'
82+
__version__ = '0.1.0'
8383

8484

8585
import os

0 commit comments

Comments
 (0)