summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ffcode/ffcode.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/ffcode/ffcode.dtx')
-rw-r--r--macros/latex/contrib/ffcode/ffcode.dtx30
1 files changed, 16 insertions, 14 deletions
diff --git a/macros/latex/contrib/ffcode/ffcode.dtx b/macros/latex/contrib/ffcode/ffcode.dtx
index 2107516f3e..e8c71aa8ed 100644
--- a/macros/latex/contrib/ffcode/ffcode.dtx
+++ b/macros/latex/contrib/ffcode/ffcode.dtx
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{ffcode}
%<*package>
-[2022-11-28 0.7.0 Fixed Font Code]
+[2022-12-02 0.8.0 Fixed Font Code]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -152,7 +152,7 @@
% \DescribeMacro{sf}
% You can change the font family of |\ff| pieces to |\sffamily|:
-% \docshotOptions{firstline=4,lastline=9}
+% \docshotOptions{firstline=4,lastline=10}
% \begin{docshot}
% \documentclass{article}
% \usepackage[paperwidth=3in]{geometry}
@@ -161,7 +161,8 @@
% \begin{document}
% Sometimes you may want them to look
% not strictly fixed-width, but more
-% elegant, like the |fibo()| here.
+% elegant, like the \emph{|fibo()|}
+% here.
% \end{document}
% \end{docshot}
@@ -243,7 +244,7 @@
novert/.store in=\ff@novert,
nocn/.store in=\ff@nocn,
}
-\ProcessPgfOptions{/ff}
+\ProcessPgfPackageOptions{/ff}
% \end{macrocode}
% Then, we disable pygments for \href{https://ctan.org/pkg/minted}{minted}, if necessary:
@@ -347,7 +348,17 @@
% Then, we define |\ff@x| internal command for printing a piece of fixed-width-font text:
% \begin{macrocode}
\makeatletter
-\NewDocumentCommand\ff@x{v}{%
+\NewDocumentCommand\ff@x{v}{\ff{#1}}
+\makeatother
+% \end{macrocode}
+% \end{macro}
+
+% \begin{macro}{\ff}
+% \changes{v0.8.0}{2022/12/01}{The \texttt{\char`\\ff} command is now a normal command, not verbatim.}
+% Then, we define |\ff| macro:
+% \begin{macrocode}
+\makeatletter
+\newcommand\ff[1]{%
\ifdefined\ff@noframes%
\ff@rule\ff@print{#1}%
\else%
@@ -362,15 +373,6 @@
% \end{macrocode}
% \end{macro}
-% \begin{macro}{\ff}
-% Then, we define |\ff| macro:
-% \begin{macrocode}
-\makeatletter
-\def\ff{\ff@x}
-\makeatother
-% \end{macrocode}
-% \end{macro}
-
% \begin{macro}{novert}
% Finally, we let vertical bars work similar to |\ff|, as suggested
% \href{https://tex.stackexchange.com/a/665105/1449}{here}