From 20229ac1b0cf251211d2acde80293548ec753ce3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 28 Nov 2022 21:00:08 +0000 Subject: ffcode (28nov22) git-svn-id: svn://tug.org/texlive/trunk@65132 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/ffcode/ffcode.sty | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex') 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 -- cgit v1.2.3