如何摆脱原本开放的书的前言章节后的空白页

如何摆脱原本开放的书的前言章节后的空白页

隐藏书本前言后面空白页的首选方法是什么?\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}

请注意,这种方法可能会混淆页眉/页脚的设置,但如果它针对单个页面(并且取决于该页面)则可能不会有问题。

相关内容