diff options
Diffstat (limited to 'macros/latex/contrib/ffcode/ffcode.tex')
-rw-r--r-- | macros/latex/contrib/ffcode/ffcode.tex | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/macros/latex/contrib/ffcode/ffcode.tex b/macros/latex/contrib/ffcode/ffcode.tex index c1fbc40483..df15670be0 100644 --- a/macros/latex/contrib/ffcode/ffcode.tex +++ b/macros/latex/contrib/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. |