【问题标题】:How to suppress page ejects when using \chapterstyle{article} in the Memoir class for LaTeX?在 LaTeX 的 Memoir 类中使用 \chapterstyle{article} 时如何抑制页面弹出?
【发布时间】:2021-04-02 19:20:05
【问题描述】:

我刚开始使用回忆录中的文章章节样式。 我在 LyX 中作曲,文章的每个部分都在一个子文档中。 从主文档编译时,我希望每个部分的编号如下:

1. Introduction
2. Related Literature
2.1 Literature from Long Ago
2.2 Literature from Yesterday
... Etc.
n-1. Conclusion
n. References

为了做到这一点,顶级章节标题使用 \chapter。编号、格式等都是完美的。除了:每个 \chapter 都会触发页面弹出,我不知道如何解决这个问题。

当页面上有空间时,使每一章(文章的部分)开始于前一章之下的最简单方法是什么?

【问题讨论】:

    标签: latex article lyx memoir


    【解决方案1】:

    memoir 有一个名为\clearforchapter 的宏,通常可以确保章节从正确的页面开始。您可以像这样禁用它:

    \documentclass{memoir}
    
    \renewcommand{\clearforchapter}{}
    
    \begin{document}
    
    \chapter{test}
    
    test
    
    \chapter{test2}
    
    test
      
    \end{document}
    

    【讨论】:

    • 谢谢,这应该可以,但不是。也许原因是我使用的是 LyX,每个部分都是一个子文档。我只在主(父)文档中重新定义了 \clearforchapter。你认为我必须对每个孩子都这样做吗?
    • @Gnosos 你能创建一个minimal reproducible example 并将其导出为 tex 代码吗?
    猜你喜欢
    • 2010-11-07
    • 2018-04-21
    • 1970-01-01
    • 2022-07-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多