Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

how can i have an analytic index like this?

enter image description here

I would also remove the number of the page in the first page of the analytic index (indicated from arrow). if you notice, is wrong to even the reference of hyperref at the analytic index when you open the file with acrobat reader how can i fix it?

thanks at all

\documentclass[10pt,%                      % corpo del font principale
               a4paper,%                   % carta A4
%               draft,%                    % evidenzia le righe Overfull hbox
               twoside,%
%               oneside,%
               openright,%                % fronte-retro
%               openany%                    % solo fronte
               ]{book}

\usepackage[T1]{fontenc}                   % codifica dei font:
                                           % NOTA BENE! richiede una distribuzione *completa* di LaTeX

\usepackage[utf8]{inputenc}                % codifica di input; anche [latin1] va bene
                                           % NOTA BENE! va accordata con le preferenze dell'editor

\usepackage[english,italian]{babel}        % per scrivere in italiano e in inglese;
                                           % l'ultima lingua (l'italiano) risulta predefinita
\usepackage{emptypage}                     % pagine vuote senza testatina e piede di pagina

\usepackage{makeidx}                       % Indice analitico
\makeindex

\usepackage[italian]{varioref}             % riferimenti completi della pagina

\usepackage{hyperref}                      % collegamenti ipertestuali

\usepackage{bookmark}                      % segnalibri

\begin{document}
%*******************************************************************
\mainmatter%              Materiale principale
%*******************************************************************
Lorem\index{Lorem} ipsum dolor\index{dolor} sit amet, consectetur adipiscing elit. Fusce quis justo felis, nec eleifend leo. Nulla aliquet est a dui placerat hendrerit.
%\pdfbookmark{Indice analitico}{Indice analitico}
\cleardoublepage
%\phantomsection
\addcontentsline{toc}{chapter}{\indexname}
\printindex
\end{document}
share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Here's a way:

\documentclass[10pt,%                      % corpo del font principale
               a4paper,%                   % carta A4
%               draft,%                    % evidenzia le righe Overfull hbox
               twoside,%
%               oneside,%
               openright,%                % fronte-retro
%               openany%                    % solo fronte
               ]{book}

\usepackage[T1]{fontenc}                   % codifica dei font:
                                           % NOTA BENE! richiede una distribuzione *completa* di LaTeX

\usepackage[utf8]{inputenc}                % codifica di input; anche [latin1] va bene
                                           % NOTA BENE! va accordata con le preferenze dell'editor

\usepackage[english,italian]{babel}        % per scrivere in italiano e in inglese;
                                           % l'ultima lingua (l'italiano) risulta predefinita
\usepackage{emptypage}                     % pagine vuote senza testatina e piede di pagina

\usepackage{imakeidx}                      % Indice analitico
\makeindex[intoc]                          % L'indice analitico va nell'indice generale
\indexsetup{firstpagestyle=empty}          % Niente numero di pagina nella prima dell'indice analitico

\usepackage[italian]{varioref}             % riferimenti completi della pagina

\usepackage{hyperref}                      % collegamenti ipertestuali

\usepackage{bookmark}                      % segnalibri

\begin{document}
%*******************************************************************
\mainmatter%              Materiale principale
%*******************************************************************
Lorem\index{Lorem} ipsum dolor\index{dolor} sit amet, consectetur adipiscing elit. Fusce quis justo felis, nec eleifend leo. Nulla aliquet est a dui placerat hendrerit.
\printindex
\end{document}

If this file is called filename.tex, you have also to prepare a text file called filename.mst in the same directory, containing

heading_prefix   "\\section*{"
heading_suffix   "}\\hrule\\nopagebreak\\vskip1ex\n"
headings_flag       1

This will print headings for each letter group.

Using imakeidx frees you from running makeindex manually.

share|improve this answer
    
Thank you Greg ! :) i have try but no headings :S this is my .mst file www61.zippyshare.com/v/12767111/file.html is correct? –  FormlessCloud Jul 7 '12 at 20:57
2  
@FormlessCloud The name of the file must be the same as the main file, with extension .mst instead of .tex –  egreg Jul 7 '12 at 20:58
    
you're right ! now is perfect ! ;) thanks –  FormlessCloud Jul 7 '12 at 21:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.