新章节如何不换页
#731
Replies: 2 comments 3 replies
-
看起来没有办法简单修改。可以考虑把模版的这一行去掉: |
Beta Was this translation helpful? Give feedback.
3 replies
-
简而言之,直接将换页操作局部地定义为空操作。这里也重定义 {
\renewcommand\clearpage{}
\renewcommand\cleardoublepage{}
\begin{abstract}
\end{abstract}
} 这里的 abstract 环境也可以换成 chapter 命令。 另解abstract 不仅仅只是一个 chapter,翻阅定义可以看到 abstract 用了内部宏 也就是 chapter/break 的原始定义,也就意味着 所以另外一种解法是 \ctexset{chapter/break={}} % <-- 使 chapter 不换页
\makeatletter
\RenewDocumentCommand{\sjtu@chapter}{s O{#3} m O{#2}}{
% \if@openright\cleardoublepage\else\clearpage\fi% <-- 使之无效
\IfBooleanTF{#1}{%
\ifthenelse{\equal{#4}{}}{}{%
\sjtu@pdfbookmark{0}{#4}%
}
}{%
\sjtu@phantomsection
\addcontentsline{toc}{chapter}{#4}%
}%%
\chapter*{#3}%
\@mkboth{\MakeUppercase{#2}}{\MakeUppercase{#2}}%
}
\makeatother 但是这种解法导致章节间需要手动添加 另见水源社区的回答。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
开始新的一章,默认会从新的一页开始排版,如何使其连续?
Beta Was this translation helpful? Give feedback.
All reactions