Re: Personalizzare indice analitico

#67215
MatteoF
Partecipante
    Up
    0
    Down
    ::


    Anche a me il tuo codice funziona. Per caso non è che ti stai confondendo con i nomi del file di stile? All’inizio parli di [tt]stile.ist[/tt], poi di [tt]classic.ist[/tt]… magari, semplicemente, il tuo preambolo richiama un file con nome diverso 😛
    Altrimenti, prova a caricare il file di stile direttamente dal preambolo (tramite l’ambiente [tt]filecontents[/tt])
    `
    % !TEX encoding = UTF-8 Unicode
    % !TEX TS-program = pdflatex

    \begin{filecontents}[overwrite]{\jobname.ist}
    headings_flag 1
    heading_prefix “\\goodbreak\\textbf{\\scshape\\bfseries\\MakeUppercase{”
    heading_suffix “}}\\par\\nobreak\\vskip\\smallskipamount\\nobreak”
    symhead_positive “Comandi speciali”
    symhead_negative “comandi speciali”
    numhead_positive “Numeri”
    numhead_negative “numeri”
    \end{filecontents}

    \documentclass[11pt,twoside,titlepage]{scrreport}
    \usepackage[utf8]{inputenc}
    \usepackage[T1]{fontenc}
    \usepackage{lmodern}
    \usepackage[italian]{babel}
    \usepackage{amssymb,amsmath,upgreek,tikz,pgfplots}
    \usepackage{geometry}
    \geometry{top=2.5cm,bottom=2.5cm,left=2.5cm,right=2.8cm}
    \usepackage{fancyhdr}
    \pagestyle{fancy}
    \renewcommand{\chaptermark}[1]{%
    \markboth{\thechapter.\ #1}{}}
    \fancyhead[RO,LE]{}
    \fancyfoot[LE,RO]{\thepage}
    \fancyfoot[LO,CE]{}
    \fancyfoot[CO,RE]{}
    \renewcommand{\headrulewidth}{0.4pt}
    \renewcommand{\footrulewidth}{0.4pt}
    \usepackage{caption}
    \captionsetup{tableposition=top,figureposition=bottom,font=small}
    \usepackage[output-decimal-marker={,}]{siunitx}
    \usepackage{imakeidx}
    \makeindex [intoc=true, options=-s \jobname.ist]
    %\usepackage[style=authortitle,backend=biber]{biblatex}
    %\addbibresource{riferimenti.bib}
    \usepackage{hyperref}

    \title{APPUNTI DI DINAMICA DELLE TERRE}
    \author{\dots}
    \date{}

    \begin{document}
    \maketitle
    \tableofcontents
    \thispagestyle{empty}
    \cleardoublepage
    \chapter{Considerazioni generali}
    \index{profondità} \index{moti convettivi} \index{placca} \index{Aquila}
    \printindex
    \end{document}
    `

    Un’altra prova che puoi fare è quella di rinominare il file di stile, salvandolo con l’estensione [tt].mst[/tt]

    Matteo

    Go to top