从自定义标题页背面删除页码

从自定义标题页背面删除页码

在以下文档中,我使用\titleGM来自titlepages集合。这样会在标题页的背面出现页码(罗马数字)。但是,如果我将自定义替换\titleGM\maketitle,则背面没有页码。

请注意,页码正确从即使有自定义标题页,目录也是如此。

如何删除自定义标题页背面的页码?

\documentclass{memoir}

\usepackage[T1]{fontenc}

\input{titleGM.tex}

\usepackage{blindtext}

% https://tex.stackexchange.com/a/37396/2113
% Just to have a long enough ToC to see its page numbers
\usepackage{forloop}
\newcounter{loopcntr}
\newcommand{\rpt}[2][1]{%
  \forloop{loopcntr}{0}{\value{loopcntr}<#1}{#2}%
}

\title{Retrocomputing with Clash}
\author{Gergő Érdi}
\date{}

\begin{document}
\frontmatter
\begin{titlingpage}
\titleGM
%% \maketitle
\end{titlingpage}

\tableofcontents

\mainmatter

\rpt[30]{\chapter{Foo}\Blindtext}

\backmatter
\end{document}

答案1

我建议使用这个稍微修改过的版本titleGM

它将隐藏标题页之前的空白页并删除直到目录的页码。

标题GM来源titlepages.pdf(第 53 页)

A

b

\documentclass[twoside]{memoir}

\usepackage[T1]{fontenc}

\usepackage{blindtext}

% https://tex.stackexchange.com/a/37396/2113
% Just to have a long enough ToC to see its page numbers
\usepackage{forloop}
\newcounter{loopcntr}
\newcommand{\rpt}[2][1]{%
    \forloop{loopcntr}{0}{\value{loopcntr}<#1}{#2}%
}

\title{Retrocomputing with Clash}
\author{Gergő Érdi}
\date{}

\newcommand*{\titleGM}{%
\pagestyle{empty}  % added <<<<<<<<<<<<
\newlength{\drop}
\setlength{\drop}{0.1\textheight}
\begingroup% Gentle Madness
    %   \vspace*{\baselineskip} % commented <<<<<<<<<<<<
    \vfill
    \hbox{%
        \hspace*{0.2\textwidth}%
        \rule{1pt}{\textheight}
        \hspace*{0.05\textwidth}%
            \parbox[b]{0.75\textwidth}
                {\vbox{%
                    \vspace{\drop}
                    {\noindent\HUGE\bfseries Some\\ [0.5\baselineskip]
                        Conundrums}\\[2\baselineskip]
                    {\Large\itshape Puzzles for the Mind}\\[4\baselineskip]
                    {\Large THE AUTHOR}\par
                    \vspace{0.5\textheight}
                    {\noindent The Publisher}\\[\baselineskip]
                }% end of vbox
            }%   end of parbox
        }%    end of hbox
    \vfill
    \null       
\endgroup
}

\begin{document}
    
    \begin{titlingpage}
        \titleGM
        %% \maketitle
    \end{titlingpage}

    \frontmatter
    \tableofcontents
    
    \mainmatter
    
    \rpt[30]{\chapter{Foo}\Blindtext}
    
    \backmatter

相关内容