summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex20
1 files changed, 15 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex b/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex
index 434aa99f991..40cb65ff838 100644
--- a/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex
+++ b/Master/texmf-dist/doc/latex/fancyvrb/fancyvrb-doc.tex
@@ -678,8 +678,22 @@ numbering, and the counter used is \texttt{FancyVerbLine}:
\begin{optlist}
\item[firstline (integer)]: first line to print
(\emph{Default: empty} \Dash all lines from the first are printed).
+ \item[lastline (integer)]: last line to print
+ (\emph{Default: empty} \Dash all lines until the last one are printed).
\end{optlist}
+
+\begin{SideBySideExample}
+ \begin{Verbatim}[gobble=2,firstline,lastline,
+ numbers=left,numbersep=2pt]
+ First verbatim line.
+ Second verbatim line.
+ Third verbatim line.
+ \end{Verbatim}
+\end{SideBySideExample}
+
+
+
\begin{SideBySideExample}
\begin{Verbatim}[gobble=2,firstline=2,
numbers=left,numbersep=2pt]
@@ -689,10 +703,6 @@ numbering, and the counter used is \texttt{FancyVerbLine}:
\end{Verbatim}
\end{SideBySideExample}
-\begin{optlist}
- \item[lastline (integer)]: last line to print
- (\emph{Default: empty} \Dash all lines until the last one are printed).
-\end{optlist}
\begin{SideBySideExample}
\begin{Verbatim}[gobble=2,lastline=1,
@@ -714,7 +724,7 @@ bit klunky. Initially you must define the strings with
\begin{SideBySideExample}[gobble=2]
\newcommand*\FancyVerbStartString{FROM}
- \renewcommand*\FancyVerbStopString{TO}
+ \newcommand*\FancyVerbStopString{TO}
\begin{Verbatim}
First verbatim line.
FROM