personalizzazione indice file classicthesis scrbook

  • Creatore
    Topic
  • #44177
    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

Visualizzazione 2 filoni di risposte
  • Autore
    Risposte
    • #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

    • #44179
      Up
      0
      Down
      ::

      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

      ….ma io uso già con successo il listato che ho prima postato….non fosse per il piccolo disallineamento dei numeri di pagina. Il perché del motivo è semplicemente da ricercarsi nel diverso gusto estetico che contraddistingue ciascuno da ogni altro…. il mondo è bello perché vario….. 🙂

    • #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}
      `

Visualizzazione 2 filoni di risposte
  • Devi essere connesso per rispondere a questo topic.

Go to top