Hi. How can I generate consecutive numbers at each line in a verbatim environment? For example like those generated in this document (page 5):
http://www.tug.org/texlive/Contents/liv ... rbatim.pdf
Many thanks in advance.
Text Formatting ⇒ Consecutive numbers in a verbatim environment
-
- Posts: 4
- Joined: Wed May 20, 2009 8:47 pm
- localghost
- Site Moderator
- Posts: 9201
- Joined: Fri Feb 02, 2007 12:06 pm
Consecutive numbers in a verbatim environment
Use the listings package. For customization refer to its manual. Note that package manuals are mostly generated with the ltxdoc class.
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Board Rules
Avoidable Mistakes[/size]
¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Consecutive numbers in a verbatim environment
Use the fancyvrb package.
The CTAN lion is an artwork by Duane Bibby. Courtesy of www.ctan.org.
-
- Posts: 4
- Joined: Wed May 20, 2009 8:47 pm
Re: Consecutive numbers in a verbatim environment
Thank you. I will use the fancyvrb package!