elsarticle.cls:如何更改 \fnref 中使用的符号

elsarticle.cls:如何更改 \fnref 中使用的符号

\fnref自动用数字标记,我怎样才能将其改为符号,比如#?

    \documentclass{elsarticle}
    \begin{document}
    \begin{frontmatter}
    \title{This is a title}
    \author[address1]{M. Author1 \fnref{fn1}}
    \author[address1]{M. Author2 \fnref{fn1}}
    \fntext[fn1]{This author contributed equally to this work.}
    \address[address1]{some addresses.}
    \end{frontmatter}
    \section{Paper Material}
    Some Text.
    \end{document}

答案1

\thefootnote宏中的\fntext错误定义为\c@fnote,这会导致非阿拉伯计数器出错。现已修改为\thefnote

\documentclass{elsarticle}

\AtBeginDocument{%
  \def\thefnote{\myfnsymbol{fnote}}}
\makeatletter
\def\myfnsymbol#1{\expandafter\@myfnsymbol\csname c@#1\endcsname}
\def\@myfnsymbol#1{\ifcase #1\or $\#$\or $\#\#$\else \@ctrerr\fi}
\def\fntext[#1]#2{\g@addto@macro\@fnotes{%
   \refstepcounter{fnote}\elsLabel{#1}%
   \def\thefootnote{\thefnote}% <-- corrected
   \global\setcounter{footnote}{\c@fnote}%
   \footnotetext{#2}}}
\makeatother


\begin{document}

\begin{frontmatter}
  \title{This is a title}
  \author[address1]{M. Author1 \corref{ca1}\fnref{fn1}}
  \cortext[ca1]{Corresponding author}
  \author[address1]{M. Author2 \fnref{fn1}}
  \fntext[fn1]{This author contributed equally to this work.}
  \address[address1]{some addresses.}
\end{frontmatter}

\section{Paper Material}
Some Text.

\end{document}

在此处输入图片描述

相关内容