diff options
author | Karl Berry <karl@freefriends.org> | 2022-12-02 21:15:32 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-12-02 21:15:32 +0000 |
commit | 090f7d75f658f1eca304f88d649a22108aed59e9 (patch) | |
tree | 0437c9d599157a3cf805f54680082d4c9e15534c /Master | |
parent | 978344cbe0641c88707b9834a321f9906a6f079e (diff) |
ffcode (2dec22)
git-svn-id: svn://tug.org/texlive/trunk@65170 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/ffcode/ffcode.pdf | bin | 574021 -> 574072 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/ffcode/ffcode.dtx | 30 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ffcode/ffcode.sty | 14 |
3 files changed, 23 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf b/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf Binary files differindex b2a318eb0d6..81e04f3bf7e 100644 --- a/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf +++ b/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf diff --git a/Master/texmf-dist/source/latex/ffcode/ffcode.dtx b/Master/texmf-dist/source/latex/ffcode/ffcode.dtx index 2107516f3e0..e8c71aa8ed8 100644 --- a/Master/texmf-dist/source/latex/ffcode/ffcode.dtx +++ b/Master/texmf-dist/source/latex/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/Master/texmf-dist/tex/latex/ffcode/ffcode.sty b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty index 0cb19fada69..faa16aeb519 100644 --- a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty +++ b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty @@ -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@novert, nocn/.store in=\ff@nocn, } -\ProcessPgfOptions{/ff} +\ProcessPgfPackageOptions{/ff} \makeatletter\ifdefined\ff@nopygments \PassOptionsToPackage{draft=true}{minted} @@ -135,7 +135,11 @@ \makeatother \makeatletter -\NewDocumentCommand\ff@x{v}{% +\NewDocumentCommand\ff@x{v}{\ff{#1}} +\makeatother + +\makeatletter +\newcommand\ff[1]{% \ifdefined\ff@noframes% \ff@rule\ff@print{#1}% \else% @@ -148,10 +152,6 @@ } \makeatother -\makeatletter -\def\ff{\ff@x} -\makeatother - \makeatletter\ifdefined\ff@novert\else \catcode`\|\active \AtBeginDocument{\catcode`\|\active\protected\def|{\ff@x|}} |