TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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

I m trying to the given code given in here: Algorithm and IEEEtran, or some other examples.

by \usepackage{algpseudocode}. But I am getting this error:

./algpseudocode.sty:12: file ended while scanning definition of \ALG\typeout.

I deleted the algorithm block, and only \usepackage{algpseudocode} gives the same error too. I think I have installed algorithm packes using texlive-science.

share|improve this question

closed as too localized by Peter Grill, Kurt, Speravir, Werner, Jan Hlavacek Mar 12 '13 at 4:34

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

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. That way those trying to help can focus on the solution as opposed to setting up the problem test case. – Peter Grill Mar 12 '13 at 1:40
Thanks Peter, I added the minimal code. – Emmet B Mar 12 '13 at 1:44
Well that does not compile as you have not provided a \title. But once you comment out the \maketitle, does the above code reproduce the problem for you? If so there is something wrong with your installation, as it compiles for me. – Peter Grill Mar 12 '13 at 1:47
I had updated the code. So I have only problem when I include the algpseudocode. If I do not include algpseudocode, everything is fine. Also I put the algpseudoocode.sty from here: ctan.org/tex-archive/macros/latex/contrib/algorithmicx . Still same. Though you must be right, I think my package is broke somehow. I ll reinstall now. – Emmet B Mar 12 '13 at 1:50
Glad you were able to get things resolved. Will vote to close this question as too localized then. – Peter Grill Mar 12 '13 at 2:13