Re: domandina su come cambiare il titolo del capitolo

#37584
Antonio Ledda
Partecipante
    Up
    0
    Down
    ::

    io ho questo codice:

    \relax
    \def\thechapter {{\Roman{chapter}}} %commuto il contatore capitoli in numeri romani maiuscoli
    \renewcommand{\chaptername}{\thechapter\ INCONTRO}
    \chapter{PERCHE’ UN PERCORSO PER PREPARARSI AL MATRIMONIO?}

    che mi restituisce:

    I INCONTRO I

    mente vorrei che mi restituisse solo:

    I INCONTRO

    Come fare?

    Ciao e grazie Matteo

    Riprendo pari pari il codice di questa discussione: http://www.guit.sssup.it/phpBB2/viewtopic.php?p=36135#36135.
    `\titleformat{\chapter}[hang]%
    {\normalfont\huge\bfseries}%
    {\thechapter}{20pt}{\Huge}%`
    e aggiungo (pagina 25 della documentazione di titlesec):
    `\renewcommand{\thechapter}{\Roman{chapter}}`
    quindi:
    `\usepackage{titlesec}
    \renewcommand{\thechapter}{\Roman{chapter}}
    \titleformat{\chapter}[hang]%
    {\normalfont\huge\bfseries}%
    {\thechapter}{20pt}{\Huge}%`
    da scrivere nel preambolo.

    Può andare (ammesso che sia TeXnicamente corretto)?

    Ciao,
    Antonio

    Go to top