答案1
这里的问题是,仅对于的排版\maketitle
命令\thanks
被定义为的副本\footnote
。
因此我们必须修补命令并在其中添加例如标题中脚注标记的\maketitle
颜色,如:red
\makeatletter % <=======================================================
\patchcmd{\maketitle}%
{\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}}%
{\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\color{red}\@thefnmark}}}}% <==================
{}%success
{}%failure
\makeatother % <========================================================
命令makeatletter
和仅在需要修补的代码中使用\makeatother
时才需要。使用完整的 mwe@
\documentclass{article}
\usepackage{xcolor}
\usepackage{etoolbox} % <===============================================
\makeatletter % <=======================================================
\patchcmd{\maketitle}%
{\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}}%
{\def\@makefnmark{\rlap{\@textsuperscript{\normalfont\color{red}\@thefnmark}}}}%
{}%success
{}%failure
\makeatother % <========================================================
\title{Sample Title}
\author{John Doe\thanks{email}~ and Jane Doe\thanks{twitter}}
\date{\today}
\begin{document}
\maketitle
Blah blah blah\footnote{This is a test.}
\end{document}
您将获得最终的 pdf: