Skip to content

Commit

Permalink
#4 doc
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 13, 2021
1 parent b803593 commit 9a0354b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ffcode.tex
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
% SOFTWARE.

\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage[tt=false,type1=true]{libertine}
\usepackage{amsmath}
\usepackage{multicol}
Expand Down Expand Up @@ -49,6 +50,7 @@
\raggedcolumns
\begin{verbatim}
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{ffcode}
\begin{document}
The function \ff{fibo()} is recursive:
Expand Down Expand Up @@ -85,6 +87,10 @@
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}.

Expand Down Expand Up @@ -131,6 +137,9 @@
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.

Expand Down

0 comments on commit 9a0354b

Please sign in to comment.