I'm using glossaries to generate my acronyms. Sometimes the first definition of the acronym is placed in a section or chapter title. When I generate the ToC, then obviously that will become the first occurrence and will be expanded, but the acronym in the tile will not. Is it possible to have them expand either in both places or only in the tile, not the ToC? I'd like a general solution, meaning that I don't want to manually reset the glossary before the title where the acronym appears.
Here's a very short example of what I have:
\documentclass{amsbook}
\usepackage[acronym,nonumberlist]{glossaries}
\newacronym{MOSFET}{MOSFET}{metal-oxide semiconductor field-effect transistor}
\makeglossaries
\begin{document}
\tableofcontents
\chapter{\Gls{MOSFET}}
\printglossaries
\end{document}
EDIT: This post is related, but doesn't really do...
\acrfull{MOSEFET}of glossaries? – jan-glx Dec 18 '17 at 19:29\acrfull(and\acrshort,\acrlongetc) are designed for the baseglossariespackage's acronym mechanism.\glsxtrfull(\glsxtrshort,\glsxtrlongetc) are designed forglossaries-extra's abbreviation mechanism which allows different abbreviation styles. The base commands won't reflect the change in style. Commands like\glsfmtfull(\Glsfmtfull,\glsfmtshortetc) are specifically designed for use in section headings. – Nicola Talbot Dec 18 '17 at 19:53glossaries-extrais not required to solve the OP's problem but if used\glossaries-extrais? – jan-glx Dec 18 '17 at 21:05\chapter{\Glsfmtfull{MOSFET}}(fromglossaries-extra) is the best solution. With just the baseglossariespackage, the least problematic solution is\chapter{\Glsentryfull{MOSFET}}or (withhyperref)\chapter{\texorpdfstring{\Glsentryfull{MOSFET}}{\glsentrylong{MOSFET} (\glsentryshort{MOSFET})}}. – Nicola Talbot Dec 18 '17 at 21:25