
Я использую memoir. С этими базовыми настройками:
\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}}
Я понимаю это:
Я хотел бы напечатать в заголовке только "Capitolo 2". Как это сделать? Извините, но я не эксперт по латексу...
решение1
Вы не предоставили компилируемый пример, который должен начинаться с \documentclass...
и до \end{document}
. То, что вы предоставили, когда я добавил необходимый код, не дало того, что вы показали на графике.
Я сделал все возможное и думаю, что это то, что вам подойдет.
\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}
Вы определили mystyle
стиль главы, но не использовали его. Почему?