summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ffcode
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-10-03 20:31:56 +0000
committerKarl Berry <karl@freefriends.org>2022-10-03 20:31:56 +0000
commit51ca429c570d5f3c54059722dcd868eb70ae4a48 (patch)
tree79dcb888c8f19941649a20761723962ca71c7408 /Master/texmf-dist/tex/latex/ffcode
parent4f45b25725151bf24fbec23be6a0c2ffe2d36099 (diff)
ffcode (3oct22)
git-svn-id: svn://tug.org/texlive/trunk@64597 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ffcode')
-rw-r--r--Master/texmf-dist/tex/latex/ffcode/ffcode.sty106
1 files changed, 71 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
index ee3c25fed7a..d3cd5a9a525 100644
--- a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
+++ b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
@@ -1,30 +1,57 @@
-% (The MIT License)
-%
-% Copyright (c) 2021-2022 Yegor Bugayenko
-%
-% Permission is hereby granted, free of charge, to any person obtaining a copy
-% of this software and associated documentation files (the 'Software'), to deal
-% in the Software without restriction, including without limitation the rights
-% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-% copies of the Software, and to permit persons to whom the Software is
-% furnished to do so, subject to the following conditions:
-%
-% The above copyright notice and this permission notice shall be included in all
-% copies or substantial portions of the Software.
-%
-% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-% SOFTWARE.
+%%
+%% This is file `ffcode.sty',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% ffcode.dtx (with options: `package')
+%% (The MIT License)
+%%
+%% Copyright (c) 2021-2022 Yegor Bugayenko
+%%
+%% Permission is hereby granted, free of charge, to any person obtaining a copy
+%% of this software and associated documentation files (the 'Software'), to deal
+%% in the Software without restriction, including without limitation the rights
+%% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+%% copies of the Software, and to permit persons to whom the Software is
+%% furnished to do so, subject to the following conditions:
+%%
+%% The above copyright notice and this permission notice shall be included in all
+%% copies or substantial portions of the Software.
+%%
+%% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+%% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+%% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+%% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+%% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+%% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+%% SOFTWARE.
+
+
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ffcode}[2022/09/12 0.4.4 Fixed Font Code]
+\ProvidesPackage{ffcode}
+[03.10.2022 0.5.0 Fixed Font Code]
+
+
+
+
+
+
+
+
+
+
+
-\RequirePackage{xkeyval}
+
+
+
+
+
+
+\RequirePackage{xkeyval}
\makeatletter
\DeclareOptionX{nopygments}{\PassOptionsToPackage{draft=true}{minted}}
\newif\ifff@noframes
@@ -39,22 +66,21 @@
\makeatother
\RequirePackage{minted}
-
\setminted{breaklines}
\setminted{escapeinside=||,mathescape}
-\setminted{highlightcolor=gray!30}
+\setminted{highlightcolor=gray!25}
\usemintedstyle{bw}
\makeatletter\ifff@nonumbers
\ifff@nobars
\newminted[ffcode]{text}{}
\else
- \newminted[ffcode]{text}{
- framesep=6pt,framerule=1pt,rulecolor=gray,frame=leftline
- }
+ \newminted[ffcode]{text}{framesep=6pt,
+ framerule=1pt,rulecolor=gray,frame=leftline}
\fi
\else
- \renewcommand{\theFancyVerbLine}{\textcolor{gray}{\tiny\oldstylenums{\ttfamily\arabic{FancyVerbLine}}}}
+ \renewcommand{\theFancyVerbLine}{\textcolor{gray}
+ {\tiny\oldstylenums{\ttfamily\arabic{FancyVerbLine}}}}
\ifff@nocn
\ifff@nobars
\newminted[ffcode]{text}{
@@ -62,8 +88,8 @@
}
\else
\newminted[ffcode]{text}{
- framesep=6pt,framerule=1pt,rulecolor=gray,frame=leftline,
- linenos,numbersep=2pt
+ framesep=6pt,framerule=1pt,rulecolor=gray,
+ frame=leftline,linenos,numbersep=2pt
}
\fi
\else
@@ -73,8 +99,8 @@
}
\else
\newminted[ffcode]{text}{
- framesep=6pt,framerule=1pt,rulecolor=gray,frame=leftline,
- firstnumber=last,linenos,numbersep=2pt
+ framesep=6pt,framerule=1pt,rulecolor=gray,
+ frame=leftline,firstnumber=last,linenos,numbersep=2pt
}
\fi
\fi
@@ -85,7 +111,10 @@
\newcommand\ff@printx[1]{\texttt{#1}\endgroup}
\makeatother
-\makeatletter\newcommand\ff@rule{\vrule height 6pt depth 1pt width 0pt}
+\makeatletter\newcommand\ff@rule
+ {\vrule height 6pt depth 1pt width 0pt}
+\makeatother
+
\makeatletter\ifff@noframes
\newcommand\ff[1]{\ff@rule\ff@print{#1}}
\else
@@ -94,7 +123,14 @@
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]{\relax\ifmmode{\ff@rule\ff@print{#1}}\else{\ff@box{\ff@rule\ff@print{#1}}}\fi}
+ \newcommand\ff[1]{\relax\ifmmode%
+ {\ff@rule\ff@print{#1}}%
+ \else%
+ {\ff@box{\ff@rule\ff@print{#1}}}
+ \fi}
\fi\makeatother
+
\endinput
+%%
+%% End of file `ffcode.sty'.