Skip to content
Snippets Groups Projects
Commit c7d12045 authored by bernborgess's avatar bernborgess
Browse files

Add conditional to import `minted` for all versions

parent 4bf183f3
No related branches found
No related tags found
1 merge request!19Minted 2023 update
Pipeline #53843 failed
......@@ -10,9 +10,18 @@
\usepackage{minted}
\usemintedstyle{trac}
% 2023+ minted for custom lexers
\newminted[AletheVerb]{./highlight.py:SMTLibLexer}{}
\newmintinline[inlineAlethe]{./highlight.py:SMTLibLexer}{}
\makeatletter
\@ifundefined{MintedPygmentize}{
% minted >= 3.0.0
\newminted[AletheVerb]{./highlight.py:SMTLibLexer}{}
\newmintinline[inlineAlethe]{./highlight.py:SMTLibLexer}{}
}{
% minted < 3.0.0
\renewcommand{\MintedPygmentize}{./highlight.py}
\newminted[AletheVerb]{smt-lib}{}
\newmintinline[inlineAlethe]{smt-lib}{}
}
\makeatother
\usepackage{cite}
\usepackage{url}
......@@ -167,6 +176,8 @@ break
}
\makeatother
\listfiles
\NewEnviron{RuleDescription}[1]{%
\renewcommand\currule{\proofRule{#1}}
\index[rules]{#1}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment