How might the commas between "phrases" and "see words" be suppressed in the printed index produced from the source below?
\documentclass{book}
\usepackage{makeidx}
\makeindex
\begin{document}
Some words.
\index{words}
\index{phrases|see{words}}
\printindex
\end{document}
I'm aware from (http://latex-community.org/forum/viewtopic.php?f=51&t=21464) that one way to do that is:
\documentclass{book}
\usepackage{makeidx}
\makeindex
\newcommand{\seeonly}[2]{(\emph{see} #1)}
\newcommand\gobble[2]{}
\begin{document}
Some words.
\index{words}
\index{phrases \seeonly{words}|gobble}
\printindex
\end{document}
However, I'd like a method that does not require adding within each such "see" index entry any explicit code (such as |gobble
) to suppress the comma. Rather, I seek some way to modify the definition of \seeonly
itself.
The object is to simplify typing such cross-references in the source document.
(The question is related to: Change index "see also" and "see" format.)