https://tex.stackexchange.com/questions/289539/how-does-thanks-work-in-latex-article-class
@u73169 上面的链接确实有点儿用,但不够多....
可以尝试下面的例子,虽然和你的还有点区别...要交换#1变为1#需要修改authblk
的命令...(TBC,我再努力试试)
\documentclass{ctexart}
\usepackage{authblk}
\makeatletter
\def\@fnsymbol#1{%
\ensuremath{%
\ifcase#1\or {\#}\or *\or \dagger\or \ddagger\or
\mathsection\or \mathparagraph\or \|\or {\#\#}\or **\or
\dagger\dagger\or \ddagger\ddagger\else\@ctrerr\fi%
}%
}%重新定义内部控制序列 \@fnsymbol 的次序
\makeatother
\newcommand\CoAuthorMark{\footnotemark[\arabic{footnote}]}
\title{这是一个示例文档}
\author[1]{张三\thanks{共同一作}}
\author[2]{李四\protect\CoAuthorMark}
\author[3]{王五\thanks{这是本文的二作}}
\affil[1]{北京大学}
\affil[2]{清华大学}
\affil[3]{家里蹲大学}
\begin{document}
\maketitle
\section{引言}
这是一个使用 \texttt{authblk} 宏包的示例文档\footnote{这是正常的正文注释}。作者和机构信息已经按照要求格式化\footnote{这是正常的正文注释}。
\end{document}
BTW,lampart
序列以*
和\dagger
开始而不用#
也许是因为#1
在TeX
中表示第一个参数,建议还是遵循默认用lampart
序列不要修改为好。
\documentclass{ctexart}
\usepackage{authblk}
\makeatletter
\def\@fnsymbol#1{%
\ensuremath{%
\ifcase#1\or {\#}\or *\or \dagger\or \ddagger\or
\mathsection\or \mathparagraph\or \|\or {\#\#}\or **\or
\dagger\dagger\or \ddagger\ddagger\else\@ctrerr\fi%
}%
}
\RenewDocumentCommand{\author}{O{}mo}{% trailing optional argument is for thanks
\ifnewaffil\addtocounter{affil}{1}%
\edef\AB@thenote{\arabic{affil}}\fi
\if\relax#1\relax\def\AB@note{\AB@thenote}\else\def\AB@note{#1}%
\setcounter{Maxaffil}{0}\fi
\ifnum\value{authors}>1\relax
\@namedef{@sep\number\c@authors}{\Authsep}\fi
\addtocounter{authors}{1}%
\begingroup
\let\protect\@unexpandable@protect \let\and\AB@pand
\def\thanks{\protect\thanks}\def\footnote{\protect\footnote}%
\@temptokena=\expandafter{\AB@authors}%
{\def\\{\protect\\[\@affilsep]\protect\Affilfont
\protect\AB@resetsep}%
\xdef\AB@author{\AB@blk@and#2}%
\ifnewaffil\gdef\AB@las{}\gdef\AB@lasx{\protect\Authand}\gdef\AB@as{}%
\xdef\AB@authors{\the\@temptokena\AB@blk@and}%
\else
\xdef\AB@authors{\the\@temptokena\AB@as\AB@au@str}%
\global\let\AB@las\AB@lasx\gdef\AB@lasx{\protect\Authands}%
\gdef\AB@as{\Authsep}%
\fi
\gdef\AB@au@str{#2}}%
\@temptokena=\expandafter{\AB@authlist}%
\let\\=\authorcr
\xdef\AB@authlist{\the\@temptokena
\protect\@nameuse{@sep\number\c@authors}%
\protect\Authfont#2\AB@authnote{\AB@note}%
\IfValueT{#3}{#3}%
}%
\endgroup
\ifnum\value{authors}>2\relax
\@namedef{@sep\number\c@authors}{\Authands}\fi
\newaffilfalse
}
\makeatother
\NewDocumentCommand\CoAuthorMark{}{\footnotemark[\arabic{footnote}]}
\title{这是一个示例文档}
\author[1]{张三}[\thanks{共同一作}]
\author[2]{李四}[\CoAuthorMark]
\author[3]{王五}[\thanks{这是本文的二作}]
\affil[1]{北京大学}
\affil[2]{清华大学}
\affil[3]{家里蹲大学}
\begin{document}
\maketitle
\end{document}
可能由于我水平不够,这个TSE回答对我参考价值不大。但是还是谢谢!