Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

1  
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 at 19:19
add comment

1 Answer

The listings package manual has an example that covers this:

\begin{lstlisting}[firstnumber=100]
for i:=maxint to 0 do
begin
{ do nothing }
end;
\end{lstlisting}
share|improve this answer
add comment

Your Answer

 
discard

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