LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and Acronymshow to create capital letter for index

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
mnajem
Posts: 20
Joined: Thu Mar 18, 2010 12:23 pm

how to create capital letter for index

Postby mnajem » Thu Mar 18, 2010 12:26 pm

Hello,

How to print the the index into big capital letter for the category?

For example;

A
ample
axe

B
block
buy

and so on?

Currently using default makeindex it'll classify, but no eye-friendly

User avatar
nlct
Posts: 275
Joined: Thu Nov 06, 2008 11:15 am

Postby nlct » Fri Mar 19, 2010 11:54 am

You need to create an .ist file that sets the group headings. For example, create a file called, say, test.ist that contains:
  1. headings_flag 1
  2. heading_prefix "\\textbf\{"
  3. heading_suffix "\}"

Then when you run makeindex, you need to use the -s option to specify this style file (assuming your document is called test.tex):
  1. makeindex -s test.ist test.idx


regards
Nicola Talbot

mnajem
Posts: 20
Joined: Thu Mar 18, 2010 12:23 pm

Postby mnajem » Fri Mar 19, 2010 1:11 pm

thanks a lot, it works.
I tried to tweak (putting huge, so the capital letter will be bold, and slightly bigger than the rests).

something like
  1. headings_flag 1
  2. heading_prefix "\\textbf\\huge\{"
  3. heading_suffix "\}\}"


Where should I put the huge actually?

Thanks!

User avatar
nlct
Posts: 275
Joined: Thu Nov 06, 2008 11:15 am

Postby nlct » Fri Mar 19, 2010 9:04 pm

mnajem wrote:I tried to tweak (putting huge, so the capital letter will be bold, and slightly bigger than the rests).

something like
  1. headings_flag 1
  2. heading_prefix "\\textbf\\huge\{"
  3. heading_suffix "\}\}"


Where should I put the huge actually?

After the opening brace:
  1. heading_prefix "\\textbf\{\\huge "

(Make sure you put a space after the command name.)

Regards
Nicola Talbot


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 1 guest