In the following MWE, the "see" correctly gives index entry "zero, see zero elements". But the "seeonly" entry gives "additive identity (see zero elements), 1". The ", 1" are the spurious text.
(Some years ago, when I used just such a command, that kind of spurious text did not appear.)
Code: Select all
\documentclass{article}\newcommand{\seeonly}[1]{(\emph{see} #1)}\usepackage{makeidx}\makeindex\begin{document}This is a very short book. It's about zero.\index{zero elements}\index{zero|see{zero elements}}\index{additive identity \seeonly{zero elements}}\printindex\end{document}