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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use the package makeidx which works fine. When I try to format the index with file.ist I have a problem, as the options indent_space and indent_length don't have any effect at all. item_0 works fine nevertheless.

Can anyone help me?

share|improve this question
    
Welcome to TeX.sx! Would you mind adding a minimal working example (MWE)? – clemens Nov 1 '12 at 20:40
1  
Welcome to TeX.SX! As far as I know, indent_space is used for indenting lines in the produced .ind file, but it has no effect for the final typesetting. What precisely do you want to achieve? – egreg Nov 1 '12 at 20:41
    
What does it help to format the .ind file? I just want to reduce the indention in the final index. – Tina Giesler Nov 1 '12 at 21:00
1  
You could use the package idxlayout to format the index. – user21511 Nov 1 '12 at 21:35
3  
@TinaGiesler MakeIndex does nothing regarding the spacing parameters in the typeset index; for instance, item_0 default is to break a line in the .ind file and add \item in front of the entry; how \item is interpreted by LaTeX doesn't concern MakeIndex – egreg Nov 2 '12 at 10:30
up vote 2 down vote accepted

As user21511 has commented, use my idxlayout package to tinker with the indentation of index entries and (sub)subentries. The most relevant package options (see the manual for details) are indentunit, hangindent, subindent and subsubindent, also have a look at itemlayout.

\documentclass{article}

\usepackage{makeidx}
\makeindex

\usepackage[unbalanced,indentunit=0.75em]{idxlayout}

\begin{document}

Some text.\index{An index entry long enough to cause a line break}%
    \index{An index entry long enough to cause a line break!A subentry}

\printindex

\end{document}

enter image description here

share|improve this answer

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.
http://tex.stackexchange.com/questions/80030/indent-space-for-makeindex-doesnt-have-any-effect
tex.stackexchange.com
crawl=CC-MAIN-2016-07
74743
application/http; msgtype=response
sha1:BXEYXHUIVXNCV4VKKSGHQR2GA3D3HYE3
<urn:uuid:79b1f986-8f09-4c59-bdba-9c3238face82>
2016-02-14T21:39:44Z
104.16.117.182
sha1:MRIH2FGI5RLQEQEDK2OI55VNPU7O2XUK
<urn:uuid:6dc2ea4d-95e1-4fed-b0fc-445f84496b99>
http://tex.stackexchange.com/questions/80030/indent-space-for-makeindex-doesnt-have-any-effect
response
<urn:uuid:fbacc7bb-0c70-4512-9b63-9f75a73ad835>
robots: classic
hostname: ip-10-236-182-209.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2016-07
operator: CommonCrawl Admin
description: Wide crawl of the web for February 2016
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf