如何删除附录中两章之间的空白页?
有没有办法删除附录中两章之间出现的空白页?
Is there a way to remove blank pages appearing between two chapters, in Appendix?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有没有办法删除附录中两章之间出现的空白页?
Is there a way to remove blank pages appearing between two chapters, in Appendix?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(9)
您的问题是,当您处于双面布局模式时,所有章节,无论它们是否在附录中,都默认从奇数页开始。 一些可能的解决方案:
最简单的解决方案是在文档类中使用
openany
选项,这使得章节从下一页开始,无论它是奇数页还是偶数页。 标准图书文档类支持此功能,例如\documentclass[openany]{book}
。 (memoir
也支持使用这是一个声明\openany
,可以在文档中间使用它来更改后续页面的行为。)另一种选择是尝试
\let\cleardoublepage\clearpage
在附录之前命令以避免这种行为。或者,如果您不介意使用双面布局,请在您的
documentclass
中使用选项oneside
(例如\documentclass[oneside]{book}< /code>) 将切换为使用单面布局。
Your problem is that all chapters, whether they're in the appendix or not, default to starting on an odd-numbered page when you're in two-sided layout mode. A few possible solutions:
The simplest solution is to use the
openany
option to your document class, which makes chapters start on the next page, irrespective of whether it's an odd or even numbered page. This is supported in the standard book documentclass, eg\documentclass[openany]{book}
. (memoir
also supports using this as a declaration\openany
which can be used in the middle of a document to change the behavior for subsequent pages.)Another option is to try the
\let\cleardoublepage\clearpage
command before your appendices to avoid the behavior.Or, if you don't care using a two-sided layout, using the option
oneside
to yourdocumentclass
(eg\documentclass[oneside]{book}
) will switch to using a one-sided layout.这很简单:
添加
\documentclass[oneside]{book}
你很好;)
it is very easy:
add
\documentclass[oneside]{book}
and youre fine ;)
我尝试了诺亚的建议,这是迄今为止最好的解决方案。
只需在所有空白页部分之前插入
\let\cleardoublepage\clearpage
特别是当您使用
\documentclass[12pt,a4paper]{book}
Frederic snyers 的建议
\documentclass[oneside]{book}
也非常好并且解决了问题,但是如果我们只想使用 book.cls 或article.cls,这会对呈现您的粒子产生很大的影响。因此,对于将来会问同样问题的人,大力支持
\let\cleardoublepage\clearpage
。I tried Noah's suggestion which leads to the best solution up to now.
Just insert
\let\cleardoublepage\clearpage
before all the parts with the blank pagesEspecially when you use
\documentclass[12pt,a4paper]{book}
frederic snyers's advice
\documentclass[oneside]{book}
is also very good and solves the problem, but if we just want to use the book.cls or article.cls, the one would make a big difference presenting your particles.Hence, Big support to
\let\cleardoublepage\clearpage
for the people who will ask the same question in the future.如果您在 \documentclass 声明中指定选项“openany”,则书中的每一章(我猜您正在使用图书类,因为报告中的下一页打开的章节和文章没有章节)将在新页,不一定是下一个奇数页。
当然,这并不完全是您想要的。 我想你想为附录中的章节设置 openany 。 '恐怕我不知道该怎么做,我怀疑你需要卷起袖子和 TeX 本身搏斗
If you specify the option 'openany' in the \documentclass declaration each chapter in the book (I'm guessing you're using the book class as chapters open on the next page in reports and articles don't have chapters) will open on a new page, not necessarily the next odd-numbered page.
Of course, that's not quite what you want. I think you want to set openany for chapters in the appendix. 'fraid I don't know how to do that, I suspect that you need to roll up your sleeves and wrestle with TeX itself
就我而言,我仍然想要在奇数页上打开选项,但这会产生一个空白页,标题中包含章节名称。 我不想要标题。 因此,为了避免这种情况,我在本章末尾使用了这个:
这可以让您将空白页保留在本章的最后偶数页上,但没有标题。
In my case, I still wanted the open on odd pages option but this would produce a blank page with the chapter name in the header. I didn't want the header. And so to avoid this I used this at the end of the chapter:
This let's you keep the blank page on the last even page of the chapter but without the header.
我将
\let\cleardoublepage\clearpage
放在\makeindex
之前。 否则,您的内容页将根据清除空白页之前的页码显示页码。I put the
\let\cleardoublepage\clearpage
before\makeindex
. Else, your content page will display page number based on the page number before you clear the blank page.我发现的一件事是使用 \include 命令通常会插入额外的空白页。 使用 \let 命令重复前面的技巧,我在文档开头附近插入了 \let\include\input,这样就消除了大部分过多的空白页。
One thing I discovered is that using the \include command will often insert and extra blank page. Riffing on the previous trick with the \let command, I inserted \let\include\input near the beginning of the document, and that got rid of most of the excessive blank pages.
您还可以使用
\openany
、\openright
和\openleft
命令:You can also use
\openany
,\openright
and\openleft
commands:要在使用 LaTeX 时删除附录中两章之间的空白页,您可以考虑以下方法:
打开 LaTeX 文档。
导航到附录中两章之间出现空白页的位置。
在有问题的部分或章节之前添加命令 \let\cleardoublepage\clearpage。
该命令本质上改变了 \cleardoublepage 的行为,使其像 \clearpage 一样,防止 LaTeX 插入空页。
Latex
修改文档类选项:
检查您的文档类是否具有与分页符和章节标题相关的选项。
某些文档类(例如报告或书籍)可能具有控制分页符行为的选项。
例如,您可以使用 \documentclass[openany]{book} 来允许章节在任何页面上开始,而不仅仅是在奇数(右侧)页面上。
乳胶
\documentclass[openany]{your_document_class}
\begin{文档}
%此处为您的文档内容
\附录
% 此处为附录内容
\end{文档}
请记住将 your_document_class 替换为您正在使用的实际文档类。 尝试这些建议,找到最适合您的特定文档设置的方法。
To remove blank pages between two chapters in the Appendix when using LaTeX, you can consider the following approaches:
Open your LaTeX document.
Navigate to the location where a blank page appears between two chapters in the Appendix.
Add the command \let\cleardoublepage\clearpage just before the problematic section or chapter.
This command essentially changes the behavior of \cleardoublepage to act like \clearpage, preventing LaTeX from inserting an empty page.
latex
Modify Document Class Options:
Check if your document class has options related to page breaks and chapter headings.
Some document classes, like report or book, may have options to control the behavior of page breaks.
For example, you might use \documentclass[openany]{book} to allow chapters to start on any page, not just on odd-numbered (right-hand) pages.
latex
\documentclass[openany]{your_document_class}
\begin{document}
% Your document content here
\appendix
% Appendix content here
\end{document}
Remember to replace your_document_class with the actual document class you are using. Experiment with these suggestions to find the approach that works best for your specific document setup.