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.

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

Please i ask if it's possible to add the option:


withe the package


This is my example:

 \caption{My algo}
 \STATE instruction 1
 \STATE instruction 2

i'd like to join while to \ENDWHILE with a line, is that possible ?

share|improve this question
Hi researcher! In its current form, the question is much too terse. Please add more detail about what you're trying to achieve, what you've attempted so far, and in what way it didn't work. Also include a minimal working example, that is a complete, minimal example document (starting from \documentclass) that demonstrates your problem. – Jake Oct 1 '12 at 11:31
See this answer by Werner to learn how to do it using algorithmicx (which is compatible with algorithmic, so you can use the much better algorithmicx instead of algorithmic). – Gonzalo Medina Oct 1 '12 at 13:36

The vlined option appears to be defined in the algorithm2e package which is a different package for laying out algorithms. It also defines the mixed case commands such as \Begin and \For that you used in earlier questions. Perhaps you intended to use that package rather than algorithmic ?

share|improve this answer
i understand that it's not possible with \usepackage{algorithm} \usepackage{algorithmic} ? – researcher Oct 1 '12 at 12:51
I have never used either package but package option names correspond directly to code in each package you can't just use a name from one package as an option for another, obviously in an open source system it is always possible to add more code but you are presumably looking at some documentation or examples that told you about vlined but that documentation is not about the package you are using. – David Carlisle Oct 1 '12 at 13:11

Your Answer


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.