Re: [RISOLTO] Titlesec – Titoli numerati e titoli non numerati

#59975
Doc
Partecipante
    Up
    0
    Down
    ::

    Ovviamente devi togliere di mezzo l’impostazione di secnumdepth.

    Ciao
    Enrico

    Mmmm! Non ti seguo!
    Questo è quanto ora ho:
    `\usepackage{titlesec,itnumpar}
    \titleformat{\chapter}[display]
    {\centering}%format
    {}%label
    {20pt}%sep
    {\Large\MakeUppercase}%before
    %{\center\LARGE}{\chaptertitlename\ \thechapter}{20pt}{\Large\MakeUppercase}
    \titleformat{\subsection}
    {\itshape}
    {\titlelabel{\thetitle.\quad} \itshape\subsectiontitlename}
    {20pt}
    {}
    %\titlespacing*{command}{left}{beforesep}{aftersep}

    %\titlespacing{\section}{0pt}{*2}{*2}
    %\titlespacing*{\section}{0pt}{16pt}{\aftersection}
    %\setcounter{secnumdepth}{0}`
    Tuttavia, se commento il setcounter, ottengo il seguente orrore:
    `! Undefined control sequence.
    …uad } \itshape \subsectiontitlename
    \strut \ttl@calc \hspace {…`
    in corrispondenza della mia prima subsection…

    Mi dispiace farti perdere tempo, ma questo titlesec proprio non mi vuole entrare nella testa… Ovviamente, però, sono tutt’altro che un esperto di latex. 🙁 [/code]

    Go to top