标题页上不需要的页码

标题页上不需要的页码

由于某种原因,页码 1 不会从第一页消失。我不希望页码显示在内容页上,尽管我确实希望它被算作第 1 页 - 这显示正确。但是,无论我把它放在哪里,它\clearpage\thispagestyle{empty} \setcounter{secnumdepth}{0}都不会重置标题页。我做错了什么?

这是我的代码:

\documentclass[12pt]{article}\usepackage{arial}
\usepackage[authoryear]{natbib}

\makeatletter
\let\latexl@section\l@section
\def\l@section#1#2{
\begingroup\let\numberline\@gobble\latexl@section{#1}{#2}\endgroup}
\makeatother
\usepackage[nottoc]{tocbibind}

\newenvironment{sciabstract}{%
\begin{quote} \bf}
{\end{quote}}

\title{ } 
 \thispagestyle{empty}
\author{}\\
}
\date{18.1.2018}


\begin{document} 
\let\cite\citep

\baselineskip18pt

\maketitle 
\cleardoublepage 
\setcounter{secnumdepth}{0}
\newpage

\clearpage\thispagestyle{empty}
\setcounter{secnumdepth}{0}
\tableofcontents
\setcounter{page}{1}

\include{Abstract}
\include{plan}
\include{Methods}
\include{additional-data-2}

\bibliography{scibib6}
\bibliographystyle{aM2}
\end{document}

答案1

您应该\thispagestyle{empty}在 之后立即添加\maketitle

\documentclass[12pt]{article}
\usepackage{arial}
\usepackage[authoryear]{natbib}

\makeatletter
\let\latexl@section\l@section
\def\l@section#1#2{
\begingroup\let\numberline\@gobble\latexl@section{#1}{#2}\endgroup}
\makeatother
\usepackage[nottoc]{tocbibind}

\newenvironment{sciabstract}{%
\begin{quote} \bf}
{\end{quote}}

\title{} 
\author{}
\date{18.1.2018}


\begin{document} 
\let\cite\citep

\baselineskip18pt

\maketitle 
\thispagestyle{empty}
\cleardoublepage 
\setcounter{secnumdepth}{0}
\tableofcontents
\setcounter{page}{1}

\include{Abstract}
\include{plan}
\include{Methods}
\include{additional-data-2}

\bibliography{scibib6}
\bibliographystyle{aM2}
\end{document}

相关内容