summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ffcode/ffcode.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-14 03:01:12 +0000
committerNorbert Preining <norbert@preining.info>2021-06-14 03:01:12 +0000
commit269940e8e52b921a855083542b9e1109af49af09 (patch)
treeba8b7431f6e4878661215e5a6127aba941f5d711 /macros/latex/contrib/ffcode/ffcode.tex
parent2ba4b1ac7860085c0b259aacb0d99bd2c730edbc (diff)
CTAN sync 202106140301
Diffstat (limited to 'macros/latex/contrib/ffcode/ffcode.tex')
-rw-r--r--macros/latex/contrib/ffcode/ffcode.tex21
1 files changed, 13 insertions, 8 deletions
diff --git a/macros/latex/contrib/ffcode/ffcode.tex b/macros/latex/contrib/ffcode/ffcode.tex
index dcefc53268..e14a39517f 100644
--- a/macros/latex/contrib/ffcode/ffcode.tex
+++ b/macros/latex/contrib/ffcode/ffcode.tex
@@ -27,11 +27,10 @@
\usepackage{ffcode}
\title{\ff{ffcode}: \LaTeX{} Package \\ for Fixed-Font Code Blocks}
\author{Yegor Bugayenko}
-\date{0.1.0 2021/06/10}
+\date{0.2.0 2021/06/13}
\begin{document}
\pagenumbering{gobble}
\raggedbottom
-\setlength{\topskip}{0mm}
\setlength{\parindent}{0pt}
\setlength{\columnsep}{32pt}
\setlength{\parskip}{6pt}
@@ -46,12 +45,13 @@ and the \ff{ffcode} environment):
\setlength{\parskip}{0pt}
\scriptsize
\raggedcolumns
-\begin{verbatim}\documentclass{article}
+\begin{verbatim}
+\documentclass{article}
\usepackage{ffcode}
\begin{document}
The function \ff{fibo()} is recursive:
\begin{ffcode}
-void fibo(int n) {
+int fibo(int n) {
if (n < 2) {
return n; |$\label{ln:ret}$|
}
@@ -67,15 +67,15 @@ The line~\ref{ln:ret} terminates it.
The function \ff{fibo()} is recursive:
\begin{ffcode}
-void fibo(int n) {
- if (n < 2) { |$\label{ln:ret}$|
- return n;
+int fibo(int n) {
+ if (n < 2) {
+ return n; |$\label{ln:ret}$|
}
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{multicols}
You have to run \ff{pdflatex} with the \ff{--shell-escape} flag
@@ -83,6 +83,11 @@ 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.
+If you want to omit the light gray frames around \ff{\char`\\ff}
+texts, use the package option \ff{noframes}.
+
+To omit the line numbers, use the \ff{nonumbers} option of the package.
+
More details about this package you can find
in the \ff{yegor256/ffcode} GitHub repository.