From 39120d89b6cab7580722cca01803ca02eecbea52 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 12 Sep 2022 20:25:29 +0000 Subject: ffcode (12sep22) git-svn-id: svn://tug.org/texlive/trunk@64363 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/ffcode/ffcode.pdf | Bin 224152 -> 224529 bytes Master/texmf-dist/doc/latex/ffcode/ffcode.tex | 26 +++++++++++++------------- Master/texmf-dist/tex/latex/ffcode/ffcode.sty | 2 +- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf b/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf index 63583e83361..9f63f915452 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 c10257fafac..1d73cc21bb7 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.3 2022/08/13} +\date{0.4.4 2022/09/12} \begin{document} \pagenumbering{gobble} \raggedbottom @@ -41,8 +41,8 @@ This package helps you write source code in your articles and make sure it looks nice. Install it from CTAN and then -use like this (pay attention to the \ff{\char`\\ff} command -and the \ff{ffcode} environment): +use like this (pay attention to \ff{\char`\\ff} command +and \ff{ffcode} environment): \begin{multicols}{2} \setlength{\parskip}{0pt} @@ -62,7 +62,7 @@ int fibo(int n) { return fibo(n - 1) + fibo(n - 2); } \end{ffcode} -The line~\ref{ln:ret} terminates it. +The line no.~\ref{ln:ret} terminates it. \end{document} \end{verbatim} @@ -82,10 +82,10 @@ int fibo(int n) { The line no.~\ref{ln:ret} terminates it. \end{multicols} -You have to run \ff{pdflatex} with the \ff{--shell-escape} flag +You have to run \ff{pdflatex} with \ff{--shell-escape} flag in order to let \ff{minted} (the package we use) to run Pygments and format the code. If you don't want this to happen, -just use the \ff{nopygments} option. +just use \ff{nopygments} option. A pair of vertical lines decorate a TeX command inside the snippet. If you want to print a single vertical line, use this: @@ -94,16 +94,16 @@ 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 +The command \ff{\char`\\ff\char`\{...\char`\}} 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. +use \ff{nobars} option of the package. -To omit the line numbers, use the \ff{nonumbers} option of the package. +To omit the line numbers, use \ff{nonumbers} option of the package. By default, the numbering is continuous: line numbers start at the first snippet and increment until the end of the document. If you @@ -113,7 +113,7 @@ option of the package. You can highlight some lines in your \ff{ffcode} environment, or can use any other additional configuration parameters from -the \ff{minted} package: +\ff{minted} package: \begin{multicols}{2} \setlength{\parskip}{0pt} @@ -142,14 +142,14 @@ while (true) { \end{ffcode*} \end{multicols} -Using this second argument of the \ff{ffcode*} (with the trailing asterisk), -you can provide any other options from the \ff{minted} package to the +Using this second argument of \ff{ffcode*} (with the trailing asterisk), +you can provide any other options from \ff{minted} package to the snippet. By the way, the package correctly formats low-height texts, for example, just a dot: \ff{.} More details about this package you can find -in the \ff{yegor256/ffcode} GitHub repository. +in \ff{yegor256/ffcode} GitHub repository. \end{document} \ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/ffcode/ffcode.sty b/Master/texmf-dist/tex/latex/ffcode/ffcode.sty index 3ca1367f3db..ee3c25fed7a 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/08/13 0.4.3 Fixed Font Code] +\ProvidesPackage{ffcode}[2022/09/12 0.4.4 Fixed Font Code] \RequirePackage{xkeyval} -- cgit v1.2.3