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.

I have a problem with using the command \caption* (from the caption package) together with the algorithm environment. Instead of parsing the \caption* as a single command, it is parsed like \caption with parameter "*". Any ideas?

\documentclass{article}
\usepackage{algorithm}
\usepackage{algpseudocode}
\usepackage{caption}
\begin{document}
\begin{algorithm}[H]
\caption*{This should be an unnumbered caption.}
\begin{algorithmic}
  \State $0 \gets 0$
\end{algorithmic}
\end{algorithm}
\end{document}
share|improve this question

closed as too localized by Werner, Gonzalo Medina, Torbjørn T., cgnieder, Paulo Cereda Sep 16 '12 at 14:53

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.

1  
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. –  egreg Sep 16 '12 at 12:43
    
Sorry, I have edited the question. –  042 Sep 16 '12 at 13:03
1  
Your example code works as expected on my system. Perhaps you are using an outdated LaTeX system? What LaTeX distribution do you use? –  Gonzalo Medina Sep 16 '12 at 13:32
1  
@GonzaloMedina In deed, the problem has been solved by updating the caption package. If you post this as an answer, I may accept it. –  042 Sep 16 '12 at 13:57
1  
@042 I am glad to hear that the problem has been solved. If the problem was simply outdated package(s), we usually close the question as "too localized", so there's no need to write an answer an accept it. –  Gonzalo Medina Sep 16 '12 at 14:07

Browse other questions tagged or ask your own question.