![如何摆脱原本开放的书的前言章节后的空白页](https://linux22.com/image/388636/%E5%A6%82%E4%BD%95%E6%91%86%E8%84%B1%E5%8E%9F%E6%9C%AC%E5%BC%80%E6%94%BE%E7%9A%84%E4%B9%A6%E7%9A%84%E5%89%8D%E8%A8%80%E7%AB%A0%E8%8A%82%E5%90%8E%E7%9A%84%E7%A9%BA%E7%99%BD%E9%A1%B5.png)
隐藏书本前言后面空白页的首选方法是什么?\chapter*{}
我的书是双面的,我只想隐藏openright
前言后面的空白页(我猜),而不是[openany]
像论坛其他地方建议的那样通过全局隐藏整本书的空白页。
在这个最小的例子中,我希望“Notations”出现在 p 页上。二,以及第页的“中文摘要”。三,而主要章节(如现在)应该出现在奇数页。
\PassOptionsToPackage{swedish,english}{babel}
\documentclass[12pt,twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{geometry}
\geometry{
paperheight=238mm,
paperwidth=165mm,
left=18mm,
right=18mm,
top=25mm,
bottom=25mm,
bindingoffset=9mm}
\begin{document}
% Front page
\thispagestyle{empty}
\begin{center}
\vspace*{0.5cm}
\Huge
A Book
\end{center}
\frontmatter
\tableofcontents
\chapter*{Notations}
\addcontentsline{toc}{section}{Notations}
A table of notations go here
\chapter*{Summary in Chinese}
\addcontentsline{toc}{section}{Summary in Chinese}
Some Chinese text goes here, but there should be no blank page between this summary and the notation-page above.
\clearpage
\mainmatter
\chapter{First chapter}
\blindtext[2]
\section{A section}
\blindtext[2]
\section{Another section}
\blindtext[2]
\chapter{Correctly appearing chapter}
\blindtext[5]
\end{document}
答案1
您可以使用openany
和开关在和之间临时切换。下面我定义和来做到这一点:openright
\@twosidefalse
\@twosidetrue
\useopenany
\useopenright
\documentclass[twoside]{book}
\usepackage{blindtext}
\makeatletter
\newcommand{\useopenany}{\@twosidefalse}
\newcommand{\useopenright}{\@twosidetrue}
\makeatother
\begin{document}
\thispagestyle{empty}
\begin{center}
\Huge A Book
\end{center}
\frontmatter
\tableofcontents
\useopenany
\chapter*{Notations}
\addcontentsline{toc}{section}{Notations}
A table of notations go here
\chapter*{Summary in Chinese}
\addcontentsline{toc}{section}{Summary in Chinese}
Some Chinese text goes here, but there should be no blank page between this summary and the notation-page above.
\useopenright
%\clearpage
\mainmatter
\chapter{First chapter}\blindtext[2]
\section{A section}\blindtext[2]
\section{Another section}\blindtext[2]
\chapter{Correctly appearing chapter}\blindtext[5]
\end{document}
请注意,这种方法可能会混淆页眉/页脚的设置,但如果它针对单个页面(并且取决于该页面)则可能不会有问题。