From bf434be5bc011fe4c6886412e910521a555ec09a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 13 Aug 2022 20:30:17 +0000 Subject: ffcode (13aug22) git-svn-id: svn://tug.org/texlive/trunk@64112 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/ffcode/ffcode.pdf | Bin 186877 -> 224152 bytes Master/texmf-dist/doc/latex/ffcode/ffcode.tex | 8 +++++++- Master/texmf-dist/tex/latex/ffcode/ffcode.sty | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf b/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf index c49dd4103c3..63583e83361 100644 Binary files a/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf and b/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf differ diff --git a/Master/texmf-dist/doc/latex/ffcode/ffcode.tex b/Master/texmf-dist/doc/latex/ffcode/ffcode.tex index 607b71368b0..c10257fafac 100644 --- a/Master/texmf-dist/doc/latex/ffcode/ffcode.tex +++ b/Master/texmf-dist/doc/latex/ffcode/ffcode.tex @@ -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 print a single vertical line, use this: 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. diff --git a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty index 65b846b8e51..3ca1367f3db 100644 --- a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty +++ b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty @@ -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@box{\ff@rule\ff@print{#1}}} + \newcommand\ff[1]{\relax\ifmmode{\ff@rule\ff@print{#1}}\else{\ff@box{\ff@rule\ff@print{#1}}}\fi} \fi\makeatother \endinput -- cgit v1.2.3