Re: personalizzazione indice file classicthesis scrbook

#44180
Up
0
Down
::


Enrico, avrei in parte risolto…. ho commentato il \contentsmargin ed aggiustato qualcosa qua e là…. la soluzione non è forse la più elegante e magari funziona per puro fortuito caso, ma così è….. Di seguito riporto il codice finale.

Ti ringrazio comunque come sempre per la gentilezza…. più e più volte hai risolto per me e per altri problemi disperati 🙂 un saluto

`
\documentclass[12pt,pdftex,oneside]{scrbook} % ,draft {book}{scrreprt}{scrartcl}

\usepackage[numbers]{natbib}
\usepackage{classicthesis-ldpkg}
\usepackage[parts, linedheaders, pdfspacing]{classicthesis}

\usepackage{amsmath, amsfonts, amssymb, amsthm, fixmath}
\usepackage[italian]{babel}
\usepackage{bbm}
\usepackage{calc, cancel, colortbl}
\usepackage[T1]{fontenc}
%\usepackage[bottom]{footmisc}
\usepackage{fancyvrb, fullpage, float}
\usepackage[pdftex]{graphicx}
\usepackage{ifthen}
\usepackage[utf8x]{inputenc}
\usepackage{listings, longtable}
\usepackage{marvosym}
\usepackage{paralist}
\usepackage{setspace, skak, shorttoc}
\usepackage{textcomp, titletoc}
\usepackage{url}
\usepackage{wasysym, wrapfig}
\usepackage{xcolor}

\floatstyle{ruled}
\newfloat{program}{hp}{lop}
\floatname{program}{Programma}

%\contentsmargin{0pt}

\renewcommand{\cftpartleader}{\footnotesize\cftdotfill{\cftnodots}} \renewcommand{\cftpartafterpnum}{}
\renewcommand{\cftchapleader}{\footnotesize\cftdotfill{3\cftdot}} \renewcommand{\cftchapafterpnum}{}
\renewcommand{\cftsecleader}{\footnotesize\cftdotfill{3\cftdot}} \renewcommand{\cftsecafterpnum}{}
\renewcommand{\cftsubsecleader}{\footnotesize\cftdotfill{3\cftdot}} \renewcommand{\cftsubsecafterpnum}{}

\titleformat{\section}{\normalfont\bfseries}{\thesection}{10pt}{}
\titleformat{\subsection}{\normalfont\bfseries}{\thesubsection}{10pt}{}
\titleformat{\subsubsection}{\normalfont\bfseries}{\thesubsubsection}{10pt}{}

\titlecontents{part} %
[24pt] {\vspace*{2mm}\normalfont\scshape\Large} % above – formattazione generale
{\contentslabel[\huge\thecontentslabel]{24pt}}%
{\hspace*{-24pt}\Large}%
{\Large} %\normalfont\cftchapleader\large\contentspage

\titlecontents{chapter} %
[24pt] {\vspace*{2mm}\normalfont\large} %
{\contentslabel[\normalfont\Large\thecontentslabel]{25pt}}%
{\hspace*{-24pt}\normalfont\large}%
{\normalfont\cftchapleader\large\contentspage}

\titlecontents{section}
[48pt] {\normalfont\normalsize} %
{\contentslabel[\normalfont\normalsize\thecontentslabel]{24pt}}%
{\hspace*{-48pt}\normalfont\normalsize}%
{\normalfont\cftsecleader\normalsize\contentspage}

\titlecontents{subsection} %
[72pt] {\normalfont\footnotesize} %
{\contentslabel[\normalfont\scriptsize\thecontentslabel]{24pt}} %
{\hspace*{-72pt}\normalfont\scriptsize} %
{\normalfont\cftsubsecleader\scriptsize\contentspage}
`

Go to top