Re: Titlesec e titletoc (prima puntata)

#93483
Up
0
Down
::

samiel” post=93122COn questo codice
`\documentclass[a4paper,twoside,11pt]{report}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage[babelshorthands=true]{italian}
\PolyglossiaSetup{italian}{indentfirst=false}
\usepackage{microtype}

\usepackage{titlesec}
\renewcommand{\thechapter}{\scshape\roman{chapter}}
\titleformat{\chapter}[display]
{\normalfont\fontsize{11pt}{12pt}\selectfont}{thechapter}{0pt}{}
%%{\normalfont\fontsize{11pt}{12pt}\selectfont}{\chaptertitlename\space \thechapter}{11pt}{}
\renewcommand\thesection{\arabic{section}}
\titleformat{\section}
{\normalfont\fontsize{11pt}{12pt}\selectfont}{\thesection}{0pt}{}
\titleformat{\subsection}
{\normalfont\fontsize{11pt}{12pt}\selectfont\itshape}{}{0pt}{}
\titlespacing{\chapter}{0pt}{0pt}{3cm}

\usepackage{titletoc}

\begin{document}
\tableofcontents

\chapter{Some text title 1}
Some text some text some text some text some text

\chapter{Some text title 2}
Some text some text some text some text some text

\chapter{Some title 3}
Some text some text some text some text some text

\end{document}`
ottengo tutto quanto mi serve tranne un dettaglio: nell’indice i numeri dei capitolo
(\scshape\roman) in realtà sono minuscoli. Pasticciando col codice, mi pareva
di essere riuscito a renderli come desidero senza ricorrere a titletoc, ma adesso
non ne sono più certo. Cosa devo correggere?

grazie
m

Devi impostare le varie voci dell’indice con i comandi di titletoc,
Che carichi ma di fatto non usi.

Ciao
Ivan

Go to top