4

I have used following example_style.ist file for creating index

headings_flag 1

heading_prefix "{ \\bfseries "
heading_suffix "}\\nopagebreak\\\n"

and in the preamble I have added following

\usepackage{imakeidx}
\makeindex[options= -s example_style.ist]

and got out put as

enter image description here

Now the header is in left alinment. But I am in need of that A and B in center.

Is it possible to change A to center?

  • try with heading_prefix "{\\bfseries\\hfil " heading_suffix "\\hfil}\\nopagebreak\n" – touhami Jun 23 '16 at 7:40
  • @touhami seems like an answer to me – clemens Jun 23 '16 at 10:39
  • @clemens done :-) – touhami Jun 23 '16 at 10:45
4

Here is

headings_flag 1

heading_prefix "{\\bfseries\\hfil "
heading_suffix "\\hfil}\\nopagebreak\\\n"

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.