Re: Frontmatter con più capitoli

#62498
Doc
Partecipante
    Up
    0
    Down
    ::


    Appena tolto il tag [RISOLTO], poiché ho notato un problema. Quindi, riattivo la discussione, sperando in un aiuto.

    Dunque, il mio problema è che debbo per forza ottenere che i capitoli risultino privi di numerazione, mentre la numerazione delle sezioni ricominci da 1 ad ogni capitolo.

    Come sopra indicato, avevo impostato
    `\setcounter{section}{0}`
    prima di ogni \section.

    Però, in questo modo, i riferimenti incrociati delle sezioni del sommario e dello “indice” del pdf, ottenuti tramite hyperref, sballa e le sezioni la cui numerazione riprende da 1 tendono sempre a rimandare alle sezioni iniziali e non a quelle corrispondenti.

    Il mio preambolo è veramente troppo lungo e, se necessario, lo posto. Comunque, ecco intanto alcune sezioni:
    `%% TITLES
    \usepackage{titlesec,itnumpar}
    %% FORMATO TITOLI
    \titleformat{\part}[display]
    {\centering}%formatsetcount
    {\normalfont{Pars \thepart}}%label
    {30pt}%sep
    {\large\MakeUppercase}%before
    \titleformat{\chapter}
    {\centering}%format
    {}%label
    {00pt}%sep
    {\large\MakeUppercase}%before
    \titleformat{\section}
    {\itshape}
    {\normalfont\thesection.}
    {.5em}
    {}
    \titleformat{\subsection}
    {\itshape}
    {\normalfont\thesubsection.}
    {.5em}
    {}
    \titlespacing*{\chapter}{0pt}{50pt}{40pt} %default chapter spacing
    \titlespacing*{\section}{0pt}{30pt}{10pt}
    \titlespacing*{\subsection}{0pt}{30pt}{10pt}
    \renewcommand{\thepart}{\normalfont\Roman{part}}
    \renewcommand{\thesection}{\arabic{section}}
    \renewcommand{\thesubsection}{\thesection.\arabic{subsection}}
    %% STILE PAGINE
    \assignpagestyle{\part}{empty}
    \assignpagestyle{\chapter}{empty}

    %% CUSTOMIZE THE TYPOGRAPHIC DESIGN OF TABLE OF FIGURES, LIST OF FIGURES AND LIST OF TABLES
    \usepackage[titles]{tocloft}
    %\tocloftpagestyle{plain}
    %\renewcommand{\cfttoctitlefont}{\large\MakeUppercase}
    \AtBeginDocument{\renewcommand{\contentsname}{Sommario}}
    \renewcommand{\cftchapfont}{\normalfont} %chapters in tondo
    \renewcommand\cftpartpagefont{\normalfont} %numeri part in tondo
    \renewcommand\cftchappagefont{\normalfont} %numeri chapter in tondo
    \cftsetpnumwidth{2.5em} %Larghezza dello spazio del numero
    \cftsetindents{section}{0.5cm}{0.5cm} %Indentazione section
    \cftsetindents{subsection}{1cm}{2em} %Indentazione subsection
    \renewcommand{\cftsecdotsep}{\cftnodots} %Toglie dots da section
    \renewcommand{\cftsubsecdotsep}{\cftnodots} %Toglie dots da subsection`

    Hyperref è l’ultimo pacchetto caricato.

    Grazie mille anticipate,
    Domenico

    Go to top