我想让章节号位于“章节”一词下方,而不是在同一行。我已经将它们右对齐了,但不知道从哪里开始更改章节号的位置。
梅威瑟:
\documentclass[10pt, twoside, openright,headsepline,chapterprefix=true,toc=indentunnumbered]{scrreprt}
\usepackage[paperheight=24.6cm, paperwidth=17.6cm, inner=2.6cm, outer=1.9cm, top=2.8cm, bottom=2.2cm,footskip=1.3cm]{geometry}
\usepackage[english]{babel}
%%%---chapter titles added with \chapter are aligned to the right of the page
\newcommand*{\originalchapterlineswithprefixformat}{}
\let\originalchapterlineswithprefixformat\chapterlineswithprefixformat
\renewcommand\chapterlineswithprefixformat[3]{%
\ifstr{#1}{chapter}
{\ifstr{#2}{}{\raggedright}{\raggedleft}}
{}%
\originalchapterlineswithprefixformat{#1}{#2}{#3}
}
\RedeclareSectionCommand[
afterindent=false,beforeskip=2cm,% afterindent needs version 3.26 or newer
afterskip=20pt,innerskip=12cm
]{chapter}
\addtokomafont{chapter}{\huge\bfseries}
\addtokomafont{chapterprefix}{\fontsize{90}{76}\selectfont}
\renewcommand\chapterpagestyle{empty}
\begin{document}
\chapter{Introduction}
\end{document}
答案1
你必须重新定义\chapterformat
\renewcommand*\chapterformat{\chaptername\\*\thechapter}