有人能告诉我如何修改上标(靠近作者姓名)的颜色吗?上标指的是 \thanks?在下面的例子中,我希望“*”符号有颜色(页面顶部和底部都有颜色)。我尝试用 \textcolor{} 包裹 \thanks,但它只会改变顶部 * 的颜色
\documentclass[10pt]{article}
\title{My Title}
\author{Name Surname\thanks{Thanks} }
\begin{document}
\maketitle
\end{document}
谢谢。ML
答案1
\documentclass[10pt]{article}
\usepackage{color}
\title{My Title}
\usepackage{etoolbox}
\makeatletter
% two patches!
\patchcmd\maketitle{\normalfont\@thefnmark}{\normalfont\color{red}\@thefnmark}{}{\fail}
\patchcmd\maketitle{\normalfont\@thefnmark}{\normalfont\color{red}\@thefnmark}{}{\fail}
\makeatother
\author{Name Surname\thanks{Thanks} }
\begin{document}
\maketitle
\end{document}