%%
%% The LaTeX Companion, 3ed
%%
%% Example 4-2-26 on page I-311 in "Customization keys for typesetting".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{183.0pt}

%StartShownPreambleCommands
\usepackage{fvextra}
%StopShownPreambleCommands

\begin{document}
\begin{Verbatim}[linenos,stepnumber=2,
                 firstnumber=5,stepnumberfromfirst]
With this key, the first line
and then every line a step
further down is numbered,
thus here 5, 7, 9,  ...
\end{Verbatim}
\begin{Verbatim}[linenos,stepnumber=2,
              firstnumber=4,stepnumberoffsetvalues]
Without stepnumberoffsetvalues
we would see numbers on lines
4, 6, and 8 and not on 5 and
7 that we get now.
\end{Verbatim}
\end{document}
