# Long indexes style with imakeidx

I'm using imakeidx package:

\usepackage{imakeidx}
\indexsetup{othercode=\small}
\makeindex[program=makeindex,columns=2,intoc=true,options={-s index_style.ist}]


With style:

    headings_flag 1
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
• 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

\makeatletter

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