I currently use listings for including source code into my LaTeX documents. However I would like listings to print "..." between the ranges of codes.
Example: \lstinputlisting[language=java, linerange={10-10,36-39}]{Main.java} should print:
try {
...
}
catch ( FileNotFoundException fnfe ) {
System.out.println ("file not found");
}
instead of
try {
}
catch ( FileNotFoundException fnfe ) {
System.out.println ("file not found");
}
Text Formatting ⇒ linerange in listings
NEW: TikZ book now 40% off at Amazon.com for a short time.