Re: \preto{\chapter} per soli chapter numerati…

#87999
Up
0
Down
::


…pardon…. sempre lo stesso errore; ecco qua l’esempio:

`\documentclass[15pt,a4paper,pdftex,oneside,unicode=true]{scrbook}
\usepackage{classicthesis-ldpkg}
\usepackage[parts, pdfspacing, linedheaders, listsseparated]{classicthesis}

\usepackage{amsmath, amsfonts, amssymb, amsbsy, amsthm, fixmath}
\usepackage[italian]{babel}
\usepackage{bbm}
\usepackage{calc, cancel, colortbl, cprotect}
\usepackage{etoolbox}
\usepackage[T1]{fontenc}
\usepackage{fancyvrb, fullpage, float}
\usepackage{ifthen}
\usepackage[utf8]{inputenc}
\usepackage{longtable, linearA}
\usepackage{marvosym}
\usepackage{paralist}
\usepackage{setspace, skak, shorttoc}
\usepackage{textcomp, titletoc}
\usepackage{verbatim}
\usepackage{wasysym, wrapfig}
\usepackage{bookmark}

\preto{\part}
{
\cleardoublepage
\ifthenelse{\equal{\arabic{part}}{0}}{}{\addtocontents{toc}{\protect\clearpage}}
}

\newcounter{mychapterinpartcounter}[part]
\preto{\chapter}
{
\stepcounter{mychapterinpartcounter}
\ifthenelse{\equal{\arabic{mychapterinpartcounter}}{1}}{}{\addtocontents{toc}{\protect\filbreak}}
}

\preto{\section}{\ifthenelse{\equal{\arabic{section}}{0}}{}{\clearpage}}

\begin{document}

\pdfbookmark[1]{Indice breve}{Indice breve}
\shorttoc{Indice breve}{1}

\clearpage

\setcounter{tocdepth}{2}
\renewcommand{\contentsname}{Indice dettagliato}
\pdfbookmark[1]{Indice dettagliato}{Indice dettagliato} %{Indice}{Indice}
\tableofcontents`

vorrei due indici con diverso dettaglio,
e che in questi le parti successive alla prima richiedano un accapo,
e che anche i capitoli, se non interamente contenuti su una pagina, vadano accapo….

un po’ cervellotico forse, ma utile per dare già dall’indice un certo schema alla materia trattata…

grazie mille

Go to top