如何仅删除前言中的页码

如何仅删除前言中的页码

我是 LaTeX 初学者,所以请对我有耐心。

我想在标题页后添加一个空白页,不显示页码。

我只想隐藏前言中的页码。

我添加了\thispagestyle{empty},但它并没有给我想要的解决方案:(

\documentclass[12pt]{book}
\usepackage[width=4.375in, height=7.0in, top=1.0in, papersize={5.5in,8.5in}]{geometry}
\usepackage[pdftex]{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tipa}

\usepackage{textcomp}
\usepackage{fancyhdr}

\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\fancyhf{}
\fancyhead[LE,RO]{\bfseries\thepage}
\fancyhead[LO]{\bfseries\rightmark}
\fancyhead[RE]{\bfseries\leftmark}
\renewcommand{\headrulewidth}{0.5pt}
\renewcommand{\footrulewidth}{0pt}
\addtolength{\headheight}{0.5pt}
\setlength{\footskip}{0in}
\renewcommand{\footruleskip}{0pt}
\fancypagestyle{plain}{%
    \fancyhead{}
    \renewcommand{\headrulewidth}{0pt}
}
%
%\parindent 0in
\parskip 0.05in
%
\begin{document}
    \frontmatter
    %
    \chapter*{\Huge \center New Metaphysics }
    \thispagestyle{empty}
    %{\hspace{0.25in} \includegraphics{./ru_sun.jpg} }
    \section*{\huge \center Suresh Emre}
    \newpage
    \subsection*{\center \normalsize Copyright \copyright 2009 by Author}
    \subsection*{\center \normalsize All rights reserved.}
    \subsection*{\center \normalsize ISBN \dots}
    \subsection*{\center \normalsize \dots Publications}
    %
    \chapter*{\center \normalsize ...}
    %
    \tableofcontents
    %
    \mainmatter
    %
    \chapter{Subjectivation and Objectivation}
    % your text here
    In human history no philosopher or sage explained the cosmic mystery and the spiritual reality more rationally than Shrii Shrii Anandamurti (1921-1990) \cite{baba_books} \cite{anandamitra}. His rational outlook is truly inspiring.
    %
    \chapter{Description of the Principle}
    % your text here
    %
    \chapter{Creation of Cosmos as Objectivation}
    % your text here
    %
    \chapter{More on Cosmic Subjectivation}
    % your text here
    %
    \chapter{More on Multiplicity}
    % your text here
    %
    \chapter{Curvature}
    % your text here
    %
    \chapter{Creation of the Physical Universe}
    % your text here
    %
    \chapter{An Example from the Later Stages}
    % your text here
    %
    \backmatter
    %
    \begin{thebibliography}{99}
        \bibitem{baba_books}
        Books of Shrii Shrii Anandamurti (Prabhat Ranjan Sarkar): \\
        http://shop.anandamarga.org/
        \bibitem{anandamitra}
        Avtk. Ananda Mitra Ac., \emph{The Spiritual Philosophy of Shrii Shrii Anandamurti: A Commentary on Ananda Sutram}, Ananda Marga Publications (1991) \\
        ISBN: 81-7252-119-7
    \end{thebibliography}
\end{document}

答案1

一旦明确识别出文档类别book,就可以提出建议。

book将文档内容细分为三个不同的部分:\frontmatter\mainmatter\backmatter,在每次转换时,都会应用某些全局更改。在 处\mainmatter,页码格式从 \roman to\arabic` 更改为 ,计数器重置为 1。

因此,在应用\pagestyle{empty}之后的声明将被安全地覆盖。\frontmatter\mainmatter

相关内容