From 7828a98836080d5bebb1e71fd90d96cd80c9bf60 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sun, 23 Jan 2022 21:11:30 +0000
Subject: ffcode (23jan22)

git-svn-id: svn://tug.org/texlive/trunk@61714 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/ffcode/ffcode.sty | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/ffcode/ffcode.sty')

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
-- 
cgit v1.2.3

