LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-01-2007, 03:48 PM   #1
realos
Member
 
Registered: Jul 2002
Location: Germany
Distribution: Redhat 7.3, Debian 3.1, Knoppix 3.1, Ubuntu 6.10
Posts: 113

Rep: Reputation: 15
Thumbs up How to change style of index in LaTeX?


I like to print index entries in the following latex file with some fancy style, like horizontal lines as seperator between different index entries beginning with a new alphabet or have on letter of alphabet printed. I used these fancy styles a while ago but somehow lost the latex sources and do not remember how to change the activate that option.

Currently following is the index output:

Index

background, 1
H.264, 2
UMTS, 3

I would like something like:

Index

----B-----
background, 1

----H-----
H.264, 2

----U-----
UMTS, 3


Here is the latex file.tex:

Code:
\documentclass[a4paper,10pt]{report}

\usepackage{makeidx}
\makeindex

\usepackage{glossary}
\makeglossary

\author{Luqman Munawar}
\title{Results of Simulation}

\begin{document}
\pagenumbering{roman}
\maketitle

\begin{abstract}
 Some text in abstract
\end{abstract} 

\tableofcontents
\listoffigures
\listoftables
\printglossary
\pagebreak

\pagenumbering{arabic}
\chapter{Background}
\label{chap:background}
Here I will write\index{Writing} some information\index{Information} on background\index{background} of the project.
\chapter{H.264}
\label{chap:h.264}
Here I will write some information\index{Information} on H.264\index{H.264}.

\chapter{UMTS}
\label{chap:umts}
Here I will write some information\index{Information} on UMTS\index{UMTS}.


\printindex
\end{document}
Any hint or pointer to documentation is much appreciated. I did search in the Internet for "latex index styles" or "latex index" but did not find any relevant document.

The closest I found was "Makeindex" by Peter Mosgen:
Code:
\begin{theindex}
{\bf H}
\indexspace
\item Heinrich-Heine-Universit\"at\dotfill 1
\indexspace
{\bf N}
\indexspace\nopagebreak%
\item Neurobiologie\dotfill 1
\end{theindex}

H
Heinrich-Heine-Universitat 1
N
Neurobiologie 1
I would like to avoid editing file.ind manually. Maybe there is an option that can be used to select the style in .tex file?
 
Old 05-02-2007, 04:07 AM   #2
Dr_P_Ross
Member
 
Registered: Nov 2003
Location: Edinburgh, UK
Distribution: Arch
Posts: 43

Rep: Reputation: 18
I think you either want to consult the web for the details of makeindex style files (in particular, read about letter groups) or use another tool such as xindy (http://xindy.sourceforge.net/) instead.
 
Old 05-02-2007, 06:31 AM   #3
psisquare
Member
 
Registered: Sep 2004
Location: Germany
Distribution: Gentoo
Posts: 164

Rep: Reputation: 31
You can change the output style of makindex by putting something like this into a new file.ist file:
Code:
headings_flag 1
heading_prefix "{\\bfseries\\hfil--- "
heading_suffix " ---\\hfil}\\nopagebreak\n"
 
Old 05-02-2007, 07:13 AM   #4
Diego Torquemada
LQ Newbie
 
Registered: Jan 2007
Location: Innsbruck, Austria
Distribution: Fedora Core 4
Posts: 14

Rep: Reputation: 0
This is not the best place to ask about latex...

go to http://groups.google.com/group/comp.text.tex/topics
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the default webpage configuration from index.php to index.htm, etc meema Linux - Server 4 08-22-2008 09:06 PM
Installing new/original latex style files tylerrp Linux - Software 4 03-01-2007 03:42 AM
[SOLVED] Figure placement in LaTeX style sheet. eamesj Linux - Software 1 08-18-2006 02:43 PM
[SOLVED] latex, search path for style file. kaz2100 Linux - Software 8 08-15-2006 02:18 PM
latex question; how do I add a new style sheet qanopus Linux - Software 0 01-07-2003 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration