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

#59976
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}[right]
%\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]

Be’, sarà il caso di semplificare il codice.
`\usepackage{titlesec}
\titleformat{\chapter}[display]
{\centering}
{}
{0pt}
{\Large\MakeUppercase}

%\titleformat{\section}
% {}
% {}
% {}
% {}
\titleformat{\subsection}
{\itshape}
{\thesubsection.}
{.5em}
{}
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thesubsection}{\thesection.\arabic{subsection}}`
Ho lasciato commentata la parte per \section che riempirai tu a piacere.

Ciao
Enrico

Go to top