4

I'm trying to make an index looking like this -- 2 columns, starting letter at the beginning of each section:

I tried to use

\usepackage{makeidx} \makeindex . . . \printindex 

the result looked good since it contained starting letter, but was printed only in one column:

so I tried using this:

\usepackage{imakeidx} \makeindex[columns = 2] . . . \printindex 

and the index was divided into 2 columns, but starting letters disappeared

Can someone please help me how to make it the way I need? Thanks a lot.

2
  • Welcome to TeX.SE. Your question is close related to tex.stackexchange.com/questions/65247/…. Commented Dec 3, 2016 at 18:26
  • Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. Commented Dec 3, 2016 at 18:54

1 Answer 1

7

Just add the starting lines exactly like in the following example:

%%%% A simple MakeIndex style \begin{filecontents*}{\jobname.mst} headings_flag 1 heading_prefix "{\\textbf{" heading_suffix "}}\\nopagebreak\n" \end{filecontents*} %%% end \documentclass{book} \usepackage{imakeidx} \makeindex % two column is the default \begin{document} Some text \index{Apple}\index{Apricot} \index{Banana}\index{Cherry} \index{Lemon}\index{Lime} \printindex \end{document} 

enter image description here

2
  • 1
    Amazing, works like charm! Exactly what I needed. Thanks a lot buddy. Commented Dec 3, 2016 at 19:30
  • IS it fonctional with the remote version of overleaf ? Commented Nov 29, 2020 at 0:52

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.