texlive[64112] Master/texmf-dist: ffcode (13aug22)

commits+karl at tug.org commits+karl at tug.org
Sat Aug 13 22:30:18 CEST 2022


Revision: 64112
          http://tug.org/svn/texlive?view=revision&revision=64112
Author:   karl
Date:     2022-08-13 22:30:17 +0200 (Sat, 13 Aug 2022)
Log Message:
-----------
ffcode (13aug22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf
    trunk/Master/texmf-dist/doc/latex/ffcode/ffcode.tex
    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/doc/latex/ffcode/ffcode.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/ffcode/ffcode.tex	2022-08-12 23:49:00 UTC (rev 64111)
+++ trunk/Master/texmf-dist/doc/latex/ffcode/ffcode.tex	2022-08-13 20:30:17 UTC (rev 64112)
@@ -30,7 +30,7 @@
 \usepackage{microtype}
 \title{\ff{ffcode}: \LaTeX{} Package \\ for Fixed-Font Code Blocks}
 \author{Yegor Bugayenko}
-\date{0.4.1 2022/01/23}
+\date{0.4.3 2022/08/13}
 \begin{document}
 \pagenumbering{gobble}
 \raggedbottom
@@ -94,6 +94,12 @@
 If you want to omit the light gray frames around \ff{\char`\\ff}
 texts, use the package option \ff{noframes}.
 
+The command \ff{\char`\\ff} behaves differently in math mode: it doesn't
+add gray frames:
+\begin{equation}
+x = \int_\ff{home}^N f(x).
+\end{equation}
+
 To omit the vertical gray bar at the left side of each snippet,
 use the \ff{nobars} option of the package.
 

Modified: trunk/Master/texmf-dist/tex/latex/ffcode/ffcode.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ffcode/ffcode.sty	2022-08-12 23:49:00 UTC (rev 64111)
+++ trunk/Master/texmf-dist/tex/latex/ffcode/ffcode.sty	2022-08-13 20:30:17 UTC (rev 64112)
@@ -21,7 +21,7 @@
 % SOFTWARE.
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ffcode}[2022/01/23 0.4.1 Fixed Font Code]
+\ProvidesPackage{ffcode}[2022/08/13 0.4.3 Fixed Font Code]
 
 \RequirePackage{xkeyval}
 
@@ -94,7 +94,7 @@
     colback=gray!5!white,boxrule=0.1pt,arc=1pt,
     boxsep=1.2pt,left=0.5pt,right=0.5pt,top=0.2pt,bottom=0.2pt,
     tcbox raise base}
-  \newcommand\ff[1]{\ff at box{\ff at rule\ff at print{#1}}}
+  \newcommand\ff[1]{\relax\ifmmode{\ff at rule\ff at print{#1}}\else{\ff at box{\ff at rule\ff at print{#1}}}\fi}
 \fi\makeatother
 
 \endinput



More information about the tex-live-commits mailing list.