Re: personalizzazione indice file classicthesis scrbook

#44178
Up
0
Down
::

Salve a tutti, visto che oramai è passato tanto da quando vi chiesi aiuto per l’ultima volta, rieccomi qua….

Posto i sorgenti di un file nel quale non riesco a far allineare i numeri di pagina….

`
\documentclass[12pt,pdftex,oneside]{scrbook}

\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{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}

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

%\titleformat{\chapter}{\normalfont\bfseries}{\thechapter}{10pt}{} %\chaptertitlename\
\titleformat{\section}{\normalfont\bfseries}{\thesection}{10pt}{}
\titleformat{\subsection}{\normalfont\bfseries}{\thesubsection}{10pt}{}
\titleformat{\subsubsection}{\normalfont\bfseries}{\thesubsubsection}{10pt}{}

\contentsmargin{0pt}

\titlecontents{chapter} [2em]
{\normalfont\large}
{\newline\contentslabel[
\normalfont\thecontentslabel]{2em}
\large}
{\large}
{\normalfont\large\cftchapleader\contentspage}

\titlecontents{section} [2.05em]
{}
{\contentslabel{2.15em} \normalsize}
{\normalsize}
{\normalfont\normalsize\cftsecleader\contentspage\hspace{3mm plus 2mm minus 2mm}}

\titlecontents{subsection} [4.6em]
{\footnotesize}
{\contentslabel[\normalfont\scriptsize\thecontentslabel]{2.6em} }
{\scriptsize}
{\normalfont\scriptsize\cftsubsecleader\contentspage\hspace{3mm plus 2mm minus 2mm}}

\begin{document}
…..
`

help me, please…. 🙂 grazie a tutti in anticipo

Non puoi usare titletoc con la classe scrbook né tanto meno con tocloft (che è caricato da ClassicThesis). Perché mai dovresti cambiare il modo di stampare l’indice?

Ciao
Enrico

Go to top