我正在使用 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
chapterstyle,但并未使用它。为什么?