Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Using PdfLaTeX Via Overleaf: Error When \maketitle

everyone, I meet a problem when using Overleaf to edit the template from ELSEVIER, which can be downloaded at https://www.ctan.org/pkg/els-cas-templates/. Then occur six errors after adding:

\maketitle

Errors:

enter image description here
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

And a minimal example is shown below, u may use Overleaf to check.

\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}

Thanks to everyone in advance! Have a nice day!

>Solution :

You must fill in something for the placeholders in

\cormark[<corr mark no>]

and

\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}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading