I'm using imakeidx package:

\makeindex[program=makeindex,columns=2,intoc=true,options={-s index_style.ist}]

With style:

    headings_flag 1
heading_prefix "{\\large\\sffamily\\bfseries "
heading_suffix "}\\nopagebreak\n"
delim_0 " \\dotfill "
delim_1 " \\dotfill "
delim_2 " \\dotfill "

But I have a few longer indexes and they are line breaking with indent. How can I modify your script to get rid of this indents?

  • Welcome to TeX SX! Could you post a full (yet minimal) code? – Bernard Apr 7 '17 at 16:41
  • 1
    entries in an index are list items. list items are usually indented, and that format is usually defined by the document class. in imakeidx, the only reference to this code is the line \let\item\@idxitem. to redefine that (and if not properly "quarantined", it will affect all lists in your document), you will have to redefine the indentation used by\@idxitem. – barbara beeton Apr 7 '17 at 16:49
  • I don't have other lists in this document. How can I redefine this indentation? – bartzmc Apr 7 '17 at 16:54


\def\@idxitem{\par\hangindent 0pt}

in the preamble should do what you want.

| improve this answer | |
  • Or just \def\@idxitem{\par} – egreg Apr 7 '17 at 20:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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