这里 -如何防止 KOMA-script 书中的标题后出现新页面?- 有人问我为什么要阻止访问新页面scrbook
而不是使用strartcl
。
因此,答案之一就是 RTL 的好处:这是 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
\part{ABC}
\chapter{cxcx \texthebrew{שלום}}
\chapter{dsds}
\end{document}
RTL 在这里运行完美,但同时也scrartcl
存在一些问题……
它看起来应该是这样的,但它scrartcl
会在左侧... :( [而scrbook
它在右侧 - 它应该是这样的...]
您能帮助我并告诉我如何防止在部分和章节之后出现新页面吗?
谢谢你!!