Why \see and \seealso overwrites page number?
Can i redefine indexing command to keep page number(s) before see output?
Something like:
Cats 1,3,6-7 see also Dog
MWE form this site:
\documentclass{article}
\begin{filecontents*}{test2.xdy}
(require "page-ranges.xdy")
(define-location-class "arabic-page-numbers"
("arabic-numbers") :min-range-length 1)
(markup-locref :open "\hyperpage{" :close "}")
\end{filecontents*}
\usepackage[hyperindex=false]{hyperref}
\usepackage{index}
\newindex{testindex}{idx}{idn}{Index}
\makeindex
\begin{document}
Let's discuss letter d\index[testindex]{d}\index[testindex]{letter|see{d}}
and c.\index[testindex]{c}\index[testindex]{letter|see{c}}
\newpage
\printindex[testindex]
\end{document}
p.s.
I need some dictionary like entries, but don't want to use glossary, because we need some glossies to define before we use it and there can be different definitions depending in contents of use...Actually I need to some text after page number and see command looked promising..
Here is a related question (unanswered) Put ';' after page number in index but this removes linebrake in all indexies
\indexentry! One for the page number and on for the "see also". That was not so easy for a bear-of-very-little-brain to understand... :( – jonalv Aug 09 '17 at 09:20