summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/ffcode/ffcode.sty')
-rw-r--r--Master/texmf-dist/tex/latex/ffcode/ffcode.sty21
1 files changed, 11 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
index 5ebb6a0fc5d..65b846b8e51 100644
--- a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
+++ b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
@@ -21,7 +21,9 @@
% SOFTWARE.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ffcode}[2022/01/09 0.4.0 Fixed Font Code]
+\ProvidesPackage{ffcode}[2022/01/23 0.4.1 Fixed Font Code]
+
+\RequirePackage{xkeyval}
\makeatletter
\DeclareOptionX{nopygments}{\PassOptionsToPackage{draft=true}{minted}}
@@ -39,17 +41,16 @@
\RequirePackage{minted}
\setminted{breaklines}
+\setminted{escapeinside=||,mathescape}
+\setminted{highlightcolor=gray!30}
\usemintedstyle{bw}
\makeatletter\ifff@nonumbers
\ifff@nobars
- \newminted[ffcode]{text}{
- escapeinside=||,mathescape,highlightcolor=gray!30
- }
+ \newminted[ffcode]{text}{}
\else
\newminted[ffcode]{text}{
- framesep=6pt,framerule=1pt,rulecolor=gray,frame=leftline,
- escapeinside=||,mathescape,highlightcolor=gray!30
+ framesep=6pt,framerule=1pt,rulecolor=gray,frame=leftline
}
\fi
\else
@@ -57,23 +58,23 @@
\ifff@nocn
\ifff@nobars
\newminted[ffcode]{text}{
- linenos,numbersep=2pt,highlightcolor=gray!30,escapeinside=||,mathescape
+ linenos,numbersep=2pt
}
\else
\newminted[ffcode]{text}{
framesep=6pt,framerule=1pt,rulecolor=gray,frame=leftline,
- linenos,numbersep=2pt,highlightcolor=gray!30,escapeinside=||,mathescape
+ linenos,numbersep=2pt
}
\fi
\else
\ifff@nobars
\newminted[ffcode]{text}{
- firstnumber=last,linenos,numbersep=2pt,highlightcolor=gray!30,escapeinside=||,mathescape
+ firstnumber=last,linenos,numbersep=2pt
}
\else
\newminted[ffcode]{text}{
framesep=6pt,framerule=1pt,rulecolor=gray,frame=leftline,
- firstnumber=last,linenos,numbersep=2pt,highlightcolor=gray!30,escapeinside=||,mathescape
+ firstnumber=last,linenos,numbersep=2pt
}
\fi
\fi