7

If I have this script:

\documentclass[conference]{IEEEtran}
\usepackage{algorithmicx}
\usepackage{algorithm}
\usepackage{algpseudocode}

\begin{algorithmic}
  \While{$x = y$}
    \State Something
  \EndWhile
\end{algorithmic}

I want to change while with repeat .. until. I tried \Repeat .. \Until but it doesn't work. How can I do that? Thank you

  • 1
    Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Apr 1 '17 at 0:11
6

This is a snippet from the package documentation at http://tug.ctan.org/macros/latex/contrib/algorithmicx/algorithmicx.pdf (page 6).

enter image description here

  • It's giving me an error telling ! Undefined control sequence. at \repeat. – Nappa Jan 3 at 4:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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