繁体   English   中英

通过 Overleaf 使用 PdfLaTeX:\maketitle 时出错

[英]Using PdfLaTeX Via Overleaf: Error When \maketitle

大家,我在使用Overleaf编辑ELSEVIER的模板时遇到问题,可以在https://www.ctan.org/pkg/els-cas-templates/下载。 然后添加后出现六个错误:

\maketitle

错误:

在此处输入图像描述 在此处输入图像描述

下面是一个最小的例子,你可以使用 Overleaf 来检查。

\documentclass[a4paper,fleqn]{cas-dc}

%\usepackage[numbers]{natbib}
%\usepackage[authoryear]{natbib}
\usepackage[authoryear,longnamesfirst]{natbib}
\usepackage{amssymb} % Add
\usepackage{bbding} % Add
\usepackage{color} % Add

%%%Author macros
\def\tsc#1{\csdef{#1}{\textsc{\lowercase{#1}}\xspace}}
\tsc{WGM}
\tsc{QE}
%%%

\begin{document}

\let\WriteBookmarks\relax
\def\floatpagepagefraction{1}
\def\textpagefraction{.001}

\shorttitle{US}    
\shortauthors{Z}  
\title [mode = title]{US}  

% -------------------------------- Authors -------------------------------- %

\author[a]{Z}[style=chinese]

% Corresponding author indication
\cormark[<corr mark no>]

% Footnote of the first author
\fnmark[<footnote mark no>]

% Email id of the first author
\ead{A}

% URL of the first author
% \ead[url]{<URL>}

% Credit authorship
\credit{A}

% Address/affiliation
\affiliation[a]{organization={A},
            addressline={A}, 
            % city={},
            % citysep={}, % Uncomment if no comma needed between city and postcode
            postcode={A}, 
            % state={},
            country={A}}

\author[a]{A}[style=chinese]

% Footnote of the second author
\fnmark[*]

% Email id of the second author
\ead{A}

% Credit authorship
\credit{A}

% Corresponding author text
\cortext[1]{Corresponding author}

% -------------------------------- Abstract -------------------------------- %

\begin{abstract}
A
\end{abstract}

% -------------------------------- Keywords -------------------------------- %

\begin{keywords}
\sep A
\end{keywords}

% -------------------------------- Introduction -------------------------------- %

\maketitle

\section{Introduction}\label{1}

A

% -------------------------------- Biography -------------------------------- %

\end{document}

提前感谢大家! 祝你今天过得愉快!

您必须为占位符填写一些内容

\cormark[<corr mark no>]

\fnmark[<footnote mark no>]

\documentclass[a4paper,fleqn]{cas-dc}

%\usepackage[numbers]{natbib}
%\usepackage[authoryear]{natbib}
\usepackage[authoryear,longnamesfirst]{natbib}
\usepackage{amssymb} % Add
\usepackage{bbding} % Add
\usepackage{color} % Add

%%%Author macros
\def\tsc#1{\csdef{#1}{\textsc{\lowercase{#1}}\xspace}}
\tsc{WGM}
\tsc{QE}
%%%

\begin{document}

\let\WriteBookmarks\relax
\def\floatpagepagefraction{1}
\def\textpagefraction{.001}

\shorttitle{US}    
\shortauthors{Z}  
\title [mode = title]{US}  

% -------------------------------- Authors -------------------------------- %

\author[a]{Z}[style=chinese]

% Corresponding author indication
\cormark[1]

% Footnote of the first author
\fnmark[1]

% Email id of the first author
\ead{A}

% URL of the first author
% \ead[url]{<URL>}

% Credit authorship
\credit{A}

% Address/affiliation
\affiliation[a]{organization={A},
            addressline={A}, 
            % city={},
            % citysep={}, % Uncomment if no comma needed between city and postcode
            postcode={A}, 
            % state={},
            country={A}}

\author[a]{A}[style=chinese]

% Footnote of the second author
\fnmark[*]

% Email id of the second author
\ead{A}

% Credit authorship
\credit{A}

% Corresponding author text
\cortext[1]{Corresponding author}

% -------------------------------- Abstract -------------------------------- %

\begin{abstract}
A
\end{abstract}

% -------------------------------- Keywords -------------------------------- %

\begin{keywords}
\sep A
\end{keywords}

% -------------------------------- Introduction -------------------------------- %

\maketitle

\section{Introduction}\label{1}

A

% -------------------------------- Biography -------------------------------- %

\end{document}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM