texlive[65170] Master/texmf-dist: ffcode (2dec22)
commits+karl at tug.org
commits+karl at tug.org
Fri Dec 2 22:15:32 CET 2022
Revision: 65170
http://tug.org/svn/texlive?view=revision&revision=65170
Author: karl
Date: 2022-12-02 22:15:32 +0100 (Fri, 02 Dec 2022)
Log Message:
-----------
ffcode (2dec22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf
trunk/Master/texmf-dist/source/latex/ffcode/ffcode.dtx
trunk/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
Modified: trunk/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/ffcode/ffcode.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/ffcode/ffcode.dtx 2022-12-02 21:15:17 UTC (rev 65169)
+++ trunk/Master/texmf-dist/source/latex/ffcode/ffcode.dtx 2022-12-02 21:15:32 UTC (rev 65170)
@@ -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 at novert,
nocn/.store in=\ff at 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 at x| internal command for printing a piece of fixed-width-font text:
% \begin{macrocode}
\makeatletter
-\NewDocumentCommand\ff at x{v}{%
+\NewDocumentCommand\ff at 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 at noframes%
\ff at rule\ff at 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 at 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}
Modified: trunk/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ffcode/ffcode.sty 2022-12-02 21:15:17 UTC (rev 65169)
+++ trunk/Master/texmf-dist/tex/latex/ffcode/ffcode.sty 2022-12-02 21:15:32 UTC (rev 65170)
@@ -31,7 +31,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ffcode}
-[2022-11-28 0.7.0 Fixed Font Code]
+[2022-12-02 0.8.0 Fixed Font Code]
@@ -63,7 +63,7 @@
novert/.store in=\ff at novert,
nocn/.store in=\ff at nocn,
}
-\ProcessPgfOptions{/ff}
+\ProcessPgfPackageOptions{/ff}
\makeatletter\ifdefined\ff at nopygments
\PassOptionsToPackage{draft=true}{minted}
@@ -135,7 +135,11 @@
\makeatother
\makeatletter
-\NewDocumentCommand\ff at x{v}{%
+\NewDocumentCommand\ff at x{v}{\ff{#1}}
+\makeatother
+
+\makeatletter
+\newcommand\ff[1]{%
\ifdefined\ff at noframes%
\ff at rule\ff at print{#1}%
\else%
@@ -148,10 +152,6 @@
}
\makeatother
-\makeatletter
-\def\ff{\ff at x}
-\makeatother
-
\makeatletter\ifdefined\ff at novert\else
\catcode`\|\active
\AtBeginDocument{\catcode`\|\active\protected\def|{\ff at x|}}
More information about the tex-live-commits
mailing list.