\maketitle 中出现“缺失数字被视为零”错误

\maketitle 中出现“缺失数字被视为零”错误

我在写文章时遇到了这个错误。我该如何解决它?

image of the error

以下代码重现了该错误消息。

\documentclass[aps,pra,showkeys,scriptaddress,
groupedaddress,showpacs,onecolumn,
amsmath,amssymb]{revtex4}
\usepackage[utf8]{inputenc}
\usepackage{braket}
\usepackage{float}
\usepackage{amsmath}
\usepackage{natbib}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage{dirtytalk}
\usepackage{amsmath} 
\usepackage[utf8]{inputenc}
\usepackage[none]{hyphenat}
\usepackage[colorlinks=true, citecolor=blue]{hyperref}
\usepackage{mathtools}
\usepackage{bm}
\usepackage[a4paper,left=17mm,top=22mm,right=17mm,bottom=15mm]{geometry}
\begin{document}
\sloppy
\allowbreak
\date{\today}
\title{title}

\author{author1 \footnote[\P]{$\P$ These authors have contributed equally in 
this paper}}
\email[]{email}
\affiliation{institute}

\author{author2 \footnote[\P]}
\email[]{email}
\affiliation{institute}

\begin{abstract}
abstract
\end{abstract}
\keywords{Entanglement, Deutsch-Jozsa Algorithm, IBM Quantum Experience}

\maketitle
\onecolumngrid
\section{Introduction}
\end{document}

答案1

以下方法更像一种获得所需内容的黑客方法。请向期刊编辑确认此类更改是允许的。

enter image description here

\documentclass[aps,pra,showkeys,scriptaddress,
groupedaddress,showpacs,onecolumn,
amsmath,amssymb]{revtex4}
\usepackage[utf8]{inputenc}
\usepackage{braket}
\usepackage{float}
\usepackage{amsmath}
\usepackage{natbib}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage{dirtytalk}
\usepackage{amsmath} 
\usepackage[utf8]{inputenc}
\usepackage[none]{hyphenat}
\usepackage[colorlinks=true, citecolor=blue]{hyperref}
\usepackage{mathtools}
\usepackage{bm}
\usepackage[a4paper,left=17mm,top=22mm,right=17mm,bottom=15mm]{geometry}
\begin{document}
\sloppy
\allowbreak
\date{\today}
\title{Differences between Apples and Oranges}

    \author{Walter Wombat\textsuperscript{\P}\footnotetext{\hspace{-1em}\P These authors have contributed equally in this paper}}
    \email{email of Walter}
    \affiliation{institute of Apples}
    \author{Carl Capybara\textsuperscript{\P}}
    \affiliation{instituteof Oranges}



    \maketitle
    \onecolumngrid
    \section{Introduction}
\end{document}

答案2

请查看您发布的代码与以下工作 MWE 之间的区别:

\documentclass[aps,pra,showkeys,scriptaddress,groupedaddress,showpacs,onecolumn,amsmath,amssymb]{revtex4}
\usepackage[utf8]{inputenc}
\usepackage{braket}
\usepackage{float}
\usepackage{amsmath}
\usepackage{natbib}
\usepackage{tikz}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage{dirtytalk}
\usepackage{amsmath} 
\usepackage[utf8]{inputenc}
\usepackage[none]{hyphenat}
\usepackage[colorlinks=true, citecolor=blue]{hyperref}
\usepackage{mathtools}
\usepackage{bm}
\usepackage[a4paper,left=17mm,top=22mm,right=17mm,bottom=15mm]{geometry}
\begin{document}
\sloppy
\allowbreak
\date{\today}
\title{title}

\author{author}
\email[]{email}
\affiliation{institute}

\begin{abstract}
%abstract
\end{abstract}
\keywords{Entanglement, Deutsch-Jozsa Algorithm, IBM Quantum Experience}

\maketitle
\onecolumngrid
\section{Introduction} 
\end{document}

以下是diff两个 MWE(仅显示不同的行):

\title{%title}                            | \title{title}
\author{%author}                          | \author{author}
\email[]{%email}                          | \email[]{email}
\affiliation{%institute}                  | \affiliation{institute}
                                          > \end{document}

相关内容