這裡 -如何防止 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
右邊,它應該是怎樣的...]
你能幫我一下嗎,告訴我如何防止在章節和章節之後出現新頁面?
謝謝你!