I'ld like to do get an alternative of the following code, working with thmtools:
\begin{theorem}[Theorem X.X of \cite{foo}] bar \end{theorem}
When I do the following:
\begin{theorem}[name={Theorem X.X of \cite{foo}}] bar \end{theorem}
if theorem is an environment created in my header using
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheorem[style=plain, name=Theorem, numberwithin=section]{theorem}
I'm getting errors. Am I doing something wrong?
Update
I managed to isolate the issue. It is related with some modifications of the cite command by the ijcai17 package (which I am obliged to use).
So: minimal failing example:
\documentclass{article}
\usepackage{ijcai17}
\usepackage{amsthm}
\usepackage{thmtools}
\declaretheorem[style=plain, name=Theorem, numberwithin=section]{theorem}
\begin{document}
\begin{theorem}[name={Theorem X.X of \cite{icdt/Abiteboul88}}]
bar
\end{theorem}
\begin{thebibliography}{}
\bibitem[Abiteboul, 1988]{icdt/Abiteboul88}
Abiteboul, S. (1988).
\newblock Updates, a new frontier.
\newblock pages 1--18.
\end{thebibliography}
\end{document}
using the ijcai17.sty from http://ijcai-17.org/FormattingGuidelinesIJCAI-17.zip
\protect\cite
? If this does not help, can you please add a minimal working example (MWE)thmtools
: how to put xrefs in argument tothm
environment?