The repository includes a great configuration for shown listings in LaTeX with the option to show only a specific range of line numbers.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
\documentclass{book}
|
|
\input{lst-config}
|
|
\begin{document}
|
|
Here is a code example with showing only specific ranges:
|
|
|
|
\lstinputlisting[label=ls:figure, caption=Using the configuration., linerange={1-5, 18-23, 39},matchrangestart=t]{code.txt}
|
|
\end{document}
|