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.

i'm making a documentation of a system, and i have a lot of code chunks that i want to explain, but some of them are too long. My questions if there are some way to automatically shrink those too big chunks to a fixed number of lines, let say N+3 where 3 are the 3 dotted lines, something like

 codeline1
 codeline2
 .
 .
 .
 codelineN

i'm actually using listings to typeset those code chunks.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You can use the linerange setting to limit the number of lines in the code that you are displaying.

share|improve this answer
    
Nice! that helps a lot, now i need to write the three dotted vertical lines, do you know how? –  mjsr Jan 5 '11 at 21:57
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.