Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use

\usepackage{makeidx}
\makeindex

and then I index a word as \index{word}. After \printindex in the Index it is appear as

word, 1

and I want it to appear as

word 1

But I don't know how to make it.

share|improve this question

1 Answer 1

up vote 9 down vote accepted

Prepare a file <main>.mst, where <main> stands for the name of your main TeX file, containing

delim_0 " "
delim_1 " "
delim_2 " "

and save it in the same folder containing your main file. For instance, if you have thesis.tex, you should name the new file as thesis.mst.

Then running makeindex will load the file and commas will be removed.

share|improve this answer
    
Thanks, and these operators, I mean delim_0, delim_1, delim_2 are just used by makeindex, or by anything else? Will it change other things in my doc? –  user153012 Aug 19 at 15:21
1  
They are used by makeindex, AFAIR they refer to the three possible indexing levels –  daleif Aug 19 at 15:22
1  
@user153012 The .mst file is used just by makeindex. –  egreg Aug 19 at 15:23
    
Really thanks! I have one more question. I think this mst file doesn't know LaTeX codes, so, can I make a little bit more space there then one " " space? –  user153012 Aug 19 at 15:27
2  
@user153012 "\\hspace{2em}" or "\\qquad" will be accepted (escaping the backslash is sufficient). –  egreg Aug 19 at 15:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.