How do I remove the unwanted space before the optional argument (set here) and after the theorem-like environment's name (Intuitive idea--- here)?
\documentclass[12pt]{article} \usepackage{amsthm} \usepackage{thmtools} \declaretheoremstyle[ headfont= \sffamily\bfseries, headpunct={\sffamily\bfseries.}, postheadspace=0.5em, notefont=\sffamily\bfseries, bodyfont=\normalfont, notebraces={}{}, numbered=no ]{discuss} \theoremstyle{discuss} \makeatletter % \declaretheorem[ name=Intuitive idea---, preheadhook=\renewcommand{\thmt@space}{}, numbered=no ]{intuit} % \makeatother \begin{document} %\lipsum[1] \begin{intuit}[set] A set is a collection of objects. \end{intuit} \end{document} As shown, I tried the method, given at How can I remove the space before a custom theorem-like environment header?, of using preheadhook=\renewcommand{\thmt@space}{}. But that still leaves the space.




name=Intuitive idea---\ignorespaces,in the\declaretheorem. What's wrong with that?