Undefined control sequence \glossarytoctitle using amsbook [closed]

Using the amsbook class and the glossaries package, I receive an error

"! Undefined control sequence. <argument> \glossarytoctitle"


if I change the fontsize from default (in my case, to 12pt) or the linespread (in my case, to 1.5 or 2). The error occurs on the line of \printglossaries. Please let me know what more information I should provide.

-
amsbook doesn't contain anything useful concerning glossaries, so you must be using some additional package. which one? (a minimal working example would be helpful.) – barbara beeton Apr 24 '12 at 19:13
Can you pl. provide a complete MWE? – Harish Kumar Apr 24 '12 at 23:35
I have tried to make an MWE, but can't recreate the error. I am also calling the following packages: amsbsy, amssymb, amscd, amsfonts, latexsym, amstext, delarray, amsmath, amsthm, graphicx, cite, mathrsfs, bm, xypic, theoremref. Also, I have a TOC, and encounter the same error if I remove the TOC. – cogu Apr 25 '12 at 0:48
none of the packages you mention (other than glossaries) has anything to do with glossaries. looking at the documentation for that package, it seems that a safer way to print your glossaries is with \printglossary, which accepts options, including [toctitle=<title to use in toc>]. it would be good for you to read the documentation more carefully; you can ask for texdoc glossaries if you are using tex live. – barbara beeton Apr 25 '12 at 12:50
Thank you for your help. I have tried using \printglossary instead of the pluralization and encountered the same error. I have, however, worked around the error by (1) using the setspace package instead of \linespread (this works even when I enclose \printglossary in \begin{singlespace}...\end{singlespace}) and (2) setting the font size using \renewcommand{\normalsize}{\fontsize{12}{14.4}\selectfont}. – cogu Apr 26 '12 at 19:13

closed as too localized by lockstep, Jake, Paulo Cereda, percusse, Torbjørn T.May 2 '12 at 6:03

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, see the FAQ.