[Tex/LaTex] Citing inside theorem header

bibliographiescitingoptional argumentstheorems

How do I create something like this without getting any errors?

\begin{thm}[\cite[page 10]{ABC2011}]
...
\end{thm}

I tried putting various things into {…} brackets, but not eliminating any errors. I probably have misunderstood something about how LaTeX works in the background and the AMS packet:

\usepackage[amsmath,thmmarks]{ntheorem}

Best Answer

Mask the content of thm' s optional argument with an additional set of braces.

EDIT: For what it's worth, with ntheorem loaded one needs two additional sets of braces.

\documentclass{article}

\usepackage{ntheorem}

\newtheorem{thm}{Theorem}

\begin{document}

\begin{thm}[{{\cite[page 10]{ABC2011}}}]
A theorem.
\end{thm}

\begin{thebibliography}{9}
\bibitem{ABC2011} A bibitem.
\end{thebibliography}

\end{document}
Related Question