- Questo topic ha 2 risposte, 2 partecipanti ed è stato aggiornato l'ultima volta 8 anni, 11 mesi fa da .
-
Topic
-
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
- Devi essere connesso per rispondere a questo topic.