diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/ffcode/ffcode.sty | 14 |
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 |