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 tried to show something like: Min(Right(x)), when I input the following in my LaTeX manuscript:

  \State \Return \Call{Min}{\Call{Right}{$x$}}

it report the following error:

! Argument of \equal has an extra }.

l.652 ...e \Return \Call{Min}{ \Call{Right}{$x$} }

Any ideas?



I just find a quick and dirty way by looking up algpseudocode.sty:

\State \Return \textproc{Min}(\Call{Right}{$x$})

But any better solution are appreciated.

share|improve this question
Hi, welcome to TeX.SX. Note that almost all questions here are about LaTeX so you don't need to mentioned it in the title. Also there is no need to start your post with an opening or closing. We like to have it short. :-) You should indent (La)TeX code by four spaces or use the '101010' button to do this, instead of using pre HTML tags. This way you get correct syntax highlighting. – Martin Scharrer Apr 18 '11 at 8:01
up vote 6 down vote accepted

I've stumbled upon this problem before, and found that merely making the command robust fixes it:





  \State \Return \Call{Min}{\Call{Right}{$x$}}

share|improve this answer
Including \usepackage{fixltx2e} somehow breaks my figures, says: ! Extra }, or forgotten \endgroup. when using figure*. Any clues? – the swine Feb 1 '14 at 10:14

\Call does some internal checking that messes up formatting in some situations. I’ve redefined \Call in my thesis template to omit these checks. The result works quite well:


However, this means that \Call will now always have parentheses, even if it has no arguments. Personally, I think this is good but it’s no longer the same as the original author intended.

share|improve this answer

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.