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.

Is there any way to set vertical lines for loops in pseudo-algorithms written with listings package, in an algorithm2e style?

As an example, see here: http://csweb.ucc.ie/~dongen/LAF/Algorithms.pdf

The reason for my question is that I am using a pseudo-code syntax without end while, end if and so on, in order to save space, but then it is sometimes difficult to follow the structure of nested loops, specially in the case of large algorithms.

share|improve this question
    
I guess you have good reason for not using the algorithm2e package? –  T. Verron Nov 21 '12 at 16:59
    
@Verron, yes, I find it easier to maintain (make changes and whatever) those algorithms written with listings. Moreover, using algorithm2e and other similar packages is like learning another programming language. –  Vicent Nov 21 '12 at 17:02
2  
It would be helpful if you composed a fully compilable MWE including \documentclass and the appropriate packages that sets up the problem. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem. –  Peter Grill Nov 21 '12 at 20:37
add comment

closed as not constructive by Marco Daniel, Andrew Swann, egreg, Claudio Fiandrino, Stefan Kottwitz Mar 3 '13 at 13:04

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.