Colore testatina indice

  • Creatore
    Topic
  • #56844
    Up
    0
    Down
    ::


    Salve a tutti,

    Volevo cambiare il colore della “testatina” degli indici che ho creato alla fine della mia tesi (scritta con classichtesis).

    Riesco a cambiare il colore usando il seguente codice:

    `\printindex{author}{\color{blue}Index nominum}`

    che però mi cambia il colore anche nell’indice.

    Vorrei però usare il colore Maroon (che già viene usato in classicthesti), ma quando lo sostituisco, mi da errore: Undefined color.

    Ho provato ha inserire

    `\usepackage[dvipsnames]{xcolor}
    \definecolor{Maroon}{cmyk}{0, 0.87, 0.68, 0.32}`

    nel preambolo, ma l’errore resta.

    Qualche suggerimento?

    Per info ecco i diversi codici che uso:

    `\usepackage{makeidx}
    \usepackage{multind}
    \usepackage{multicol}
    \makeatletter
    \def\printindex#1#2{\columnseprule \z@ \columnsep 35\p@
    \begin{multicols}{2}[\section*{#2}]
    \markright{\spacedlowsmallcaps{#2}}
    \phantomsection
    \addcontentsline{toc}{section}{\tocEntry{#2}}
    \@input{#1.ind}
    \end{multicols}}
    \makeatother
    \makeindex{author}
    \makeindex{subject}
    `

    `\manualmark
    \markboth{\spacedlowsmallcaps{\indexname}}
    {\spacedlowsmallcaps{\indexname}}
    \refstepcounter{dummy}
    \pagestyle{scrheadings}
    \addcontentsline{toc}{chapter}{\tocEntry{\indexname}}

    \myChapter*{Indici}

    \printindex{author}{\color{blue}Index nominum}
    \printindex{subject}{Index rerum}`

    [/code]

  • Devi essere connesso per rispondere a questo topic.

Go to top