考虑到这个代码,如何让章节标题在CHAPTER 1:
跨越整个的单词下顺利延续\textwidth
?
\RequirePackage{luatex85}
\documentclass[chapterprefix=off]{scrbook}
\renewcommand*{\chapterformat}{CHAPTER~\thechapter:\enskip}
\renewcommand*\raggedchapter{\centering}
\begin{document}
\chapter{Some long long long long long long long long long long long title}
\end{document}
答案1
通过一个简单的命令就可以实现。
\documentclass[oneside]{scrbook}
\renewcommand*{\chapterformat}{CHAPTER~\thechapter:\enskip}
\renewcommand*\raggedchapter{\centering}
\renewcommand{\chapterlinesformat}[3]{#2#3}
\begin{document}
\chapter{I am sorry to say that no wombats and no ducks can be
found in the following text}
\chapter{Some long long long long long long long long long
long long title}
\end{document}
答案2
你的意思是像这样吗?
\documentclass[chapterprefix=off]{scrbook}
\usepackage{titlesec}
\titleformat{\chapter}[block]{\Huge\bfseries}{CHAPTER~\thechapter:}{0.5em}{}
\begin{document}
\chapter{Some long long long long long long long long long long long title}
\end{document}