diff options
author | Karl Berry <karl@freefriends.org> | 2021-09-13 20:08:48 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-09-13 20:08:48 +0000 |
commit | 4a18f607fa288537a2a1415e54606e8ae5aa28b5 (patch) | |
tree | 0360a728cdfe65193deab414aada4a555bf9b036 /Master/texmf-dist/doc/latex | |
parent | 7ebc72c089edc1288bdf20ee274e6f098174d688 (diff) |
ffcode (13sep21)
git-svn-id: svn://tug.org/texlive/trunk@60500 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex')
-rw-r--r-- | Master/texmf-dist/doc/latex/ffcode/DEPENDS.txt | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ffcode/ffcode.pdf | bin | 118496 -> 186641 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/ffcode/ffcode.tex | 16 |
3 files changed, 15 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/latex/ffcode/DEPENDS.txt b/Master/texmf-dist/doc/latex/ffcode/DEPENDS.txt index b7535d747d6..935840f8502 100644 --- a/Master/texmf-dist/doc/latex/ffcode/DEPENDS.txt +++ b/Master/texmf-dist/doc/latex/ffcode/DEPENDS.txt @@ -1,4 +1,3 @@ -hard microtype hard xkeyval hard minted hard tcolorbox diff --git a/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf b/Master/texmf-dist/doc/latex/ffcode/ffcode.pdf Binary files differindex d10d38424d4..3d6ec820a1f 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/doc/latex/ffcode/ffcode.tex b/Master/texmf-dist/doc/latex/ffcode/ffcode.tex index c1fbc404836..df15670be00 100644 --- a/Master/texmf-dist/doc/latex/ffcode/ffcode.tex +++ b/Master/texmf-dist/doc/latex/ffcode/ffcode.tex @@ -21,14 +21,16 @@ % SOFTWARE. \documentclass[12pt]{article} +\usepackage[T1]{fontenc} \usepackage[tt=false,type1=true]{libertine} \usepackage{amsmath} \usepackage{multicol} \usepackage{ffcode} \usepackage{xcolor} +\usepackage{microtype} \title{\ff{ffcode}: \LaTeX{} Package \\ for Fixed-Font Code Blocks} \author{Yegor Bugayenko} -\date{0.3.0 2021/09/07} +\date{0.3.2 2021/09/13} \begin{document} \pagenumbering{gobble} \raggedbottom @@ -48,6 +50,7 @@ and the \ff{ffcode} environment): \raggedcolumns \begin{verbatim} \documentclass{article} +\usepackage[T1]{fontenc} \usepackage{ffcode} \begin{document} The function \ff{fibo()} is recursive: @@ -84,6 +87,10 @@ 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. +A pair of vertical lines decorate a TeX command inside the snippet. +If you want to print a single vertical line, use this: +\ff{|\char`\\vert|}. + If you want to omit the light gray frames around \ff{\char`\\ff} texts, use the package option \ff{noframes}. @@ -126,6 +133,13 @@ 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 +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. |