summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ffcode
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-12-03 03:02:05 +0000
committerNorbert Preining <norbert@preining.info>2022-12-03 03:02:05 +0000
commit34896a353fe22e8ac88ef0b4e39f4fa878e2b0b6 (patch)
tree9b956161389da3b7c067aaa01731f1d11649e57e /macros/latex/contrib/ffcode
parent42cda2ed3fa7472e6c064fdbf998d636556343db (diff)
CTAN sync 202212030302
Diffstat (limited to 'macros/latex/contrib/ffcode')
-rw-r--r--macros/latex/contrib/ffcode/ffcode.dtx30
-rw-r--r--macros/latex/contrib/ffcode/ffcode.pdfbin574021 -> 574072 bytes
2 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}
diff --git a/macros/latex/contrib/ffcode/ffcode.pdf b/macros/latex/contrib/ffcode/ffcode.pdf
index b2a318eb0d..81e04f3bf7 100644
--- a/macros/latex/contrib/ffcode/ffcode.pdf
+++ b/macros/latex/contrib/ffcode/ffcode.pdf
Binary files differ