“puntini” nell’indice

  • Creatore
    Topic
  • #111488
    samiel
    Partecipante
      Up
      0
      Down
      ::


      Ottengo il risultato desiderato nell’indice con il seguente codice:
      `\documentclass[a4paper,12pt]{report}
      \usepackage[T1]{fontenc}
      \usepackage[utf8]{inputenc}
      \usepackage[italian]{babel}
      \usepackage[type1]{ebgaramond}
      \usepackage{microtype}

      \usepackage{titlesec}
      \usepackage[rightlabels,dotinlabels]{titletoc}

      \renewcommand{\thechapter}{\scshape\roman{chapter}}
      \renewcommand{\thesection}{\arabic{section}}

      \titleformat{\chapter}[display]
      {\normalfont\fontsize{11pt}{12pt}\selectfont}{\thechapter}{0pt}{}
      \renewcommand\thesection{\arabic{section}}
      \titleformat{\section}
      {\normalfont\fontsize{11pt}{12pt}\selectfont}{\thesection}{1em}{}
      \titleformat{\subsection}
      {\normalfont\fontsize{11pt}{12pt}\selectfont\itshape}{}{1em}{}
      \titlespacing{\chapter}{0pt}{0pt}{3cm}

      \titlecontents{chapter}
      [1.5em]
      {}
      {\contentslabel{2.3em}}
      {}
      {\hfill\contentspage}
      {}

      %\usepackage{tocloft}
      %\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % for chapters

      \setcounter{tocdepth}{0}

      \begin{document}

      \tableofcontents

      \chapter{L'età napoleonica}

      \chapter{Il congresso di Vienna}

      \chapter{L'Europa nell'età della Restaurazione}

      \chapter{L'economia nella prima metà dell'Ottocento}
      \end{document}`
      tranne che vorrei i “puntini” ffra titoli e numero pagine nell’indice.
      Ma caricando tocloft (anche solo caricano i pacchetto
      senza l’opzione che ho commentato nel codice) ci sono i puntini,
      ma si sballa la struttura.
      C’è modo di risolvere?

      grazie
      m

    Visualizzazione 1 filone di risposte
    • Autore
      Risposte
      • #111489
        OldClaudio
        Partecipante
          Up
          0
          Down
          ::


          Hai provato a sostituire \hfill con \dotsfill?

        • #111490
          samiel
          Partecipante
            Up
            0
            Down
            ::


            Ehm no… altrimenti avrei risolto.
            Sapevo che mi stavo perdendo in un bicchier d’acqua!

            grazie mille
            m

        Visualizzazione 1 filone di risposte
        • Devi essere connesso per rispondere a questo topic.

        Go to top