TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is what I want:

15  <servlet>
16    <servlet-name>udpListener</servlet-name>
17    <servlet-class>oli.servlet.UdpServlet</servlet-class>
18    <!-- UDP Port fuer MSX -->
19    <init-param>
20      <param-name>udpPort</param-name>
21      <param-value>4951</param-value>  <!--Empfangsport-->
22    </init-param>
23    <load-on-startup>0</load-on-startup>
24  </servlet>

I want that line numbering starts at an number other than 1.

share|improve this question

migrated from stackoverflow.com Jun 24 '12 at 13:04

This question came from our site for professional and enthusiast programmers.

Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other (by using the same OpenID), otherwise you won't be able to comment on or accept answers or edit your question. – Werner Jun 24 '12 at 19:29
Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. – Jubobs Mar 1 '14 at 19:19

The listings package manual has an example that covers this:

for i:=maxint to 0 do
{ do nothing }
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.