From 269940e8e52b921a855083542b9e1109af49af09 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Mon, 14 Jun 2021 03:01:12 +0000
Subject: CTAN sync 202106140301

---
 macros/latex/contrib/ffcode/ffcode.sty | 32 ++++++++++++++++++++++----------
 1 file changed, 22 insertions(+), 10 deletions(-)

(limited to 'macros/latex/contrib/ffcode/ffcode.sty')

diff --git a/macros/latex/contrib/ffcode/ffcode.sty b/macros/latex/contrib/ffcode/ffcode.sty
index 280bc58bd8..f478a0b5d6 100644
--- a/macros/latex/contrib/ffcode/ffcode.sty
+++ b/macros/latex/contrib/ffcode/ffcode.sty
@@ -21,12 +21,16 @@
 % SOFTWARE.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ffcode}[2021/06/10 0.1.0 Fixed Font Code]
+\ProvidesPackage{ffcode}[2021/06/13 0.2.0 Fixed Font Code]
 
 \RequirePackage{microtype}
 \RequirePackage{xkeyval}
 \newif\ifnopygments
 \DeclareOptionX{nopygments}{\nopygmentstrue}
+\newif\ifnoframes
+\DeclareOptionX{noframes}{\noframestrue}
+\newif\ifnonumbers
+\DeclareOptionX{nonumbers}{\nonumberstrue}
 \ProcessOptionsX\relax
 
 \ifnopygments
@@ -36,15 +40,23 @@
 \fi
 \setminted{breaklines}
 \usemintedstyle{bw}
-\renewcommand{\theFancyVerbLine}{\textcolor{gray}{\tiny\oldstylenums{\ttfamily\arabic{FancyVerbLine}}}}
-\newminted[ffcode]{text}{firstnumber=last,linenos,numbersep=2pt,framesep=6pt,framerule=1pt,
-  rulecolor=gray,frame=leftline,escapeinside=||,mathescape}
+\ifnonumbers
+  \newminted[ffcode]{text}{framesep=6pt,framerule=1pt,rulecolor=gray,frame=leftline,escapeinside=||,mathescape}
+\else
+  \renewcommand{\theFancyVerbLine}{\textcolor{gray}{\tiny\oldstylenums{\ttfamily\arabic{FancyVerbLine}}}}
+  \newminted[ffcode]{text}{firstnumber=last,linenos,numbersep=2pt,framesep=6pt,framerule=1pt,
+    rulecolor=gray,frame=leftline,escapeinside=||,mathescape}
+\fi
 
-\RequirePackage{tcolorbox}
-  \newtcbox{\codebox}{nobeforeafter,colframe=gray!80!white,
-  colback=gray!5!white,boxrule=0.1pt,arc=1pt,
-  boxsep=1.2pt,left=0.5pt,right=0.5pt,top=0.2pt,bottom=0.2pt,
-  tcbox raise base}
-\newcommand{\ff}[1]{\codebox{\vrule height 6pt depth 1pt width 0pt\texttt{#1}}}
+\ifnoframes
+  \newcommand{\ff}[1]{\vrule height 6pt depth 1pt width 0pt\texttt{#1}}
+\else
+  \RequirePackage{tcolorbox}
+    \newtcbox{\codebox}{nobeforeafter,colframe=gray!80!white,
+    colback=gray!5!white,boxrule=0.1pt,arc=1pt,
+    boxsep=1.2pt,left=0.5pt,right=0.5pt,top=0.2pt,bottom=0.2pt,
+    tcbox raise base}
+  \newcommand{\ff}[1]{\codebox{\vrule height 6pt depth 1pt width 0pt\texttt{#1}}}
+\fi
 
 \endinput
-- 
cgit v1.2.3

