如何防止在标题后出现新页面KOMA-script book
?
标题后会创建一个新页面。
我可以阻止它吗?
(我正在使用 LyX)
谢谢你!
::编辑::
这里是MWE:
% Preview source code
%% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[a4paper,oneside,english,hebrew,titlepage=false,numbers=noenddot]{scrbook}
\usepackage{fontspec}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\setlength{\parindent}{0bp}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\pdfpageheight\paperheight
\pdfpagewidth\paperwidth
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\newfontfamily\hebrewfont[Script=Hebrew]{David CLM}
\newfontfamily\hebrewfonttt[Script=Hebrew]{Miriam Mono CLM}
\newfontfamily\hebrewfontsf[Script=Hebrew]{Simple CLM}
\AtBeginDocument{
\renewcommand\footnoterule{%
\kern -3pt
\hbox to \textwidth{\hfill\vrule height 0.4pt width .4\textwidth}
\kern 2.6pt
}}
\renewcommand{\labelenumii}{\labelenumi\arabic{enumii}.}
\addtokomafont{disposition}{\rmfamily}
\KOMAoptions{titlepage=false}
\makeatother
\usepackage{polyglossia}
\setdefaultlanguage{hebrew}
\setotherlanguage{english}
\begin{document}
\title{\begin{english}[variant=american]%
ABC
\end{english}}%
\maketitle
\chapter{ABC}
abc
\end{document}
答案1
参见KOMA-Script手册:
因此您只需设置选项titlepage=false
即可生成页内标题scrbook
,例如:
\documentclass[titlepage=false]{scrbook}
\begin{document}
\title{Title}
\author{Schweinebacke}
\maketitle
And here comes additional text.
\end{document}
正如 KOMA-Script 手册中所述,您不仅可以\documentclass
使用以下命令设置选项\KOMAoptions
:
\documentclass{scrbook}
\KOMAoptions{titlepage=false}
\begin{document}
\title{Title}
\author{Schweinebacke}
\maketitle
And here comes additional text.
\end{document}
结果相同。
但请注意:这并不妨碍例如\chapter
开始新页面,如果它遵循\maketitle
。并注意\tableofcontents
等也使用\chapter
(或\chapter*
或\addchap
)。
scrbook
私人笔记:我认为使用页内标题没有任何意义。书籍应该始终使用标题页。所以我甚至惊讶于书籍类别提供页内标题。