# #StackBounty: #macros #formatting #environments #optional-arguments #line-numbering Ignore specific lines when numbering lines – how to…

### Bounty: 50

This may also be a potentially trivial question, but did not find the answer. Edit: It may be nontrivial…

``````...

usepackage{lineno}

...

begin{linenumbers}
begin{verbatim}

A
B

C

end{verbatim}
end{linenumbers}

...
``````

Will produce of course

``````1
2 A
3 B
4
5 C
6
``````

But what is preferred is instead

``````
1 A
2 B
3
4 C

``````

such that either the first line is number is 0 and invisible, and the same for the last line number, or simply numbering begins from line 2 and concludes before the last line.

Question: What options, what things can I redefine such can I set to make this happen?

Get this bounty!!!

This site uses Akismet to reduce spam. Learn how your comment data is processed.