summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-11-28 21:00:08 +0000
committerKarl Berry <karl@freefriends.org>2022-11-28 21:00:08 +0000
commit20229ac1b0cf251211d2acde80293548ec753ce3 (patch)
treea55f4cda8212691f2bd881986fb976d3755a04e7 /Master/texmf-dist/tex
parenta253c35e1f044cd42907d3a626b7fece17995317 (diff)
ffcode (28nov22)
git-svn-id: svn://tug.org/texlive/trunk@65132 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/ffcode/ffcode.sty14
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
index ce38bc254fe..0cb19fada69 100644
--- a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
+++ b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
@@ -31,7 +31,9 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ffcode}
-[2022-11-16 0.6.0 Fixed Font Code]
+[2022-11-28 0.7.0 Fixed Font Code]
+
+
@@ -52,6 +54,8 @@
\RequirePackage{pgfopts}
\pgfkeys{
/ff/.cd,
+ bold/.store in=\ff@bold,
+ sf/.store in=\ff@sf,
nopygments/.store in=\ff@nopygments,
noframes/.store in=\ff@noframes,
nonumbers/.store in=\ff@nonumbers,
@@ -107,7 +111,13 @@
\fi\makeatother
\makeatletter
-\newcommand\ff@print[1]{\textnormal{\texttt{#1}}}
+\newcommand\ff@print[1]{%
+ \textnormal{%
+ \ifdefined\ff@sf\sffamily\else\ttfamily\fi%
+ \ifdefined\ff@bold\fontseries{b}\selectfont\fi%
+ #1%
+ }%
+}
\makeatother
\makeatletter\newcommand\ff@rule