Personalize o estilo do capítulo e os títulos

Personalize o estilo do capítulo e os títulos

Estou usando memórias. Com estas configurações básicas:

\makechapterstyle{chappell2}{%
\setlength{\beforechapskip}{-15pt}
\renewcommand*{\chapnamefont}{\large}

\renewcommand*{\printchapternum}{\chapnumfont \Large \thechapter }
\renewcommand*{\chaptitlefont}{\Large\bfseries}
\renewcommand*{\printchaptertitle}[1]{%
%\vskip\onelineskip 
\chaptitlefont ##1}}

\makechapterstyle{mystyle}{%
    \chapterstyle{default}
    \renewcommand{\printchaptername}{}
    \renewcommand{\chapternamenum}{}
    \renewcommand{\chapnumfont}{\normalfont\bfseries}
    \renewcommand{\printchapternum}{}%\chapnumfont \thechapter\space}
    \renewcommand{\afterchapternum}{}
    \renewcommand*{\printchapternum}{%
    \@hangfrom{\chapnumfont \thechapter\quad}}%
}
%\nouppercaseheads

\chapterstyle{chappell2}
\renewcommand\thechapter{Capitolo \arabic{chapter}}
\renewcommand\thesection{\arabic{section}}
\renewcommand\thesubsection{\thesection.\arabic{subsection}}
\renewcommand\thesubsubsection{\thesubsection\arabic{subsubsection}}

Eu entendi isso:

insira a descrição da imagem aqui

insira a descrição da imagem aqui

Gostaria de imprimir apenas no título "Capitolo 2". Como eu posso fazer isso? Desculpe, mas não sou especialista em látex...

Responder1

Você não forneceu um exemplo compilável que deve começar \documentclass...de \end{document}. O que você forneceu quando adicionei o código necessário não produziu o que mostrou em seu gráfico.

Fiz o meu melhor e acho que é isso que pode servir para você.

\documentclass{memoir}
\usepackage{lipsum}

\renewcommand{\chaptername}{Capitolo}  % change chapter name
\renewcommand{\chapterrefname}{Capitolo} % change chapter reference name  
\makechapterstyle{chappell2}{%
\setlength{\beforechapskip}{-15pt}
%\renewcommand*{\chapnamefont}{\large}
\renewcommand*{\chapnamefont}{\Large\bfseries} % to match the chapter number

\renewcommand*{\printchapternum}{\chapnumfont \Large \thechapter }
\renewcommand*{\chaptitlefont}{\Large\bfseries}
\renewcommand*{\printchaptertitle}[1]{%
%\vskip\onelineskip 
\chaptitlefont ##1}}

%\nouppercaseheads

\chapterstyle{chappell2}
%\renewcommand\thechapter{Capitolo \arabic{chapter}}
\renewcommand\thesection{\arabic{section}}
\renewcommand\thesubsection{\thesection.\arabic{subsection}}
\renewcommand\thesubsubsection{\thesubsection\arabic{subsubsection}}

\begin{document}

\frontmatter
\tableofcontents
\mainmatter
\chapter{INFORMAZIONI}
\lipsum[1]
\section{First section}
\lipsum
\chapter{ANOTHER}
\lipsum[2]
\end{document}

Você definiu um mystyleestilo de capítulo, mas não o utilizou. Por que?

informação relacionada