Skip to content

Commit

Permalink
added DEPENDS.txt (closes gpoore#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoore committed Jul 15, 2023
1 parent a33b30c commit fa93dba
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 1 deletion.
16 changes: 16 additions & 0 deletions source/DEPENDS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
calc
catchfile
etoolbox
float
framed
fvextra
ifplatform
ifthen
keyval
kvoptions
lineno
newfloat
pdftexcmds
shellesc
xcolor
xstring
10 changes: 10 additions & 0 deletions source/generate_DEPENDS.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import re

pattern = re.compile(r'\\RequirePackage\{([a-z0-9]+)\}')

with open('minted.sty') as f:
sty = f.read()

with open('DEPENDS.txt', 'w', encoding='utf8') as f:
for pkg in sorted(match.group(1) for match in pattern.finditer(sty)):
f.write(f'{pkg}\n')
3 changes: 2 additions & 1 deletion source/minted.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{minted}
%<*package>
[2023/07/14 v2.8-dev5 Yet another Pygments shim for LaTeX]
[2023/07/15 v2.8-dev6 Yet another Pygments shim for LaTeX]
%</package>
%<*driver>
\documentclass{ltxdoc}
Expand Down Expand Up @@ -234,6 +234,7 @@
% \item Improved and updated Pygments documentation (\#339).
% \item Improved \Verb{\mintinline} documentation to address packages that redefine \Verb{\section} (\#368).
% \item Added support for \texpkg{fvextra} options \texttt{breakafterinrun} and \texttt{breakbeforeinrun} (\#358). In \texpkg{fvextra} version 1.5, \texttt{breakaftergroup} and \texttt{breakbeforegroup} were renamed to \texttt{breakafterinrun} and \texttt{breakbeforeinrun} to avoid naming ambiguity with new options. The old options \texttt{breakaftergroup} and \texttt{breakbeforegroup} are no longer supported.
% \item Added \texttt{DEPENDS.txt} (\#331).
% \end{changelog}
%
%
Expand Down

0 comments on commit fa93dba

Please sign in to comment.