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.

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

[vlined] 

withe the package

\usepackage{algorithm} 
\usepackage{algorithmic}

This is my example:

 \usepackage{algorithm}
 \usepackage{algorithmic}
 \begin{document}
 \begin{algorithm}[H]
 \caption{My algo}
 \begin{algorithmic}[1]
 \WHILE{condition}
 \STATE instruction 1
 \STATE instruction 2
 \ENDWHILE
 \end{algorithmic}
 \end{algorithm}
 \end{document}

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
add comment

1 Answer

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
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.