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.

6 lines
254 B

4 years ago
  1. \documentclass{book}
  2. \input{lst-config}
  3. \begin{document}
  4. Here is a code example with showing only specific ranges:
  5. \lstinputlisting[label=ls:figure, caption=Using the configuration., linerange={1-5, 18-23, 39},matchrangestart=t]{code.txt}
  6. \end{document}