
Ich verwende Memoir. Mit diesen Grundeinstellungen:
\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}}
Ich bekomme Folgendes:
Ich möchte in der Überschrift nur „Capitolo 2“ drucken. Wie mache ich das? Tut mir leid, aber ich bin kein Latex-Experte...
Antwort1
Sie haben kein kompilierbares Beispiel bereitgestellt, das von \documentclass...
bis beginnen muss \end{document}
. Was Sie bereitgestellt haben, als ich den erforderlichen Code hinzugefügt habe, hat nicht das Ergebnis geliefert, das Sie in Ihrer Grafik gezeigt haben.
Ich habe mein Bestes gegeben und denke, dass dies das Richtige für Sie sein könnte.
\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}
Sie haben einen mystyle
Kapitelstil definiert, ihn aber nicht verwendet. Warum?