summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ffcode
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-08-14 03:00:41 +0000
committerNorbert Preining <norbert@preining.info>2022-08-14 03:00:41 +0000
commite874d39878309e456c7ffe8d5fc6a91be571b50c (patch)
tree818c806809254f29f08c3e436a764cbdc566d59a /macros/latex/contrib/ffcode
parentb229ca426d9d7fee0e3c48c58a00ffcf3da66cb0 (diff)
CTAN sync 202208140300
Diffstat (limited to 'macros/latex/contrib/ffcode')
-rw-r--r--macros/latex/contrib/ffcode/ffcode.pdfbin186877 -> 224152 bytes
-rw-r--r--macros/latex/contrib/ffcode/ffcode.sty4
-rw-r--r--macros/latex/contrib/ffcode/ffcode.tex8
3 files changed, 9 insertions, 3 deletions
diff --git a/macros/latex/contrib/ffcode/ffcode.pdf b/macros/latex/contrib/ffcode/ffcode.pdf
index c49dd4103c..63583e8336 100644
--- a/macros/latex/contrib/ffcode/ffcode.pdf
+++ b/macros/latex/contrib/ffcode/ffcode.pdf
Binary files differ
diff --git a/macros/latex/contrib/ffcode/ffcode.sty b/macros/latex/contrib/ffcode/ffcode.sty
index 65b846b8e5..3ca1367f3d 100644
--- a/macros/latex/contrib/ffcode/ffcode.sty
+++ b/macros/latex/contrib/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
diff --git a/macros/latex/contrib/ffcode/ffcode.tex b/macros/latex/contrib/ffcode/ffcode.tex
index 607b71368b..c10257fafa 100644
--- a/macros/latex/contrib/ffcode/ffcode.tex
+++ b/macros/latex/contrib/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.