JMLR.cls 套件:\thanks 的錯誤行為

JMLR.cls 套件:\thanks 的錯誤行為

看起來這是一件罕見的事情,因為我在互聯網上找不到有關此問題的參考資料。

我使用 JMLR.cls 樣式文件,我想介紹兩位具有不同\thanks參考文獻和不同(當然)符號的作者。然而,他們似乎獲得了相同的符號。

使用 MacTeX (TeXLive 2014) 的最小範例如下

\documentclass{jmlr}

\title{Title}
\author{Author 1\thanks{Thanks 1}
    \and
    Author 2\thanks{Thanks 2}
}

\begin{document}
\maketitle
\end{document}

產生 在此輸入影像描述 在此輸入影像描述

可能是什麼問題,任何有關潛在錯誤的提示將不勝感激!

\thanks很多!亞歷克斯

更新:對我來說,\nametag不知何故效果不佳,因此出現了這個問題。

答案1

在呼叫標題巨集之前,在序言中加入以下內容可以解決該問題:

\makeatletter
\renewcommand*{\thanks}[1]{%
  \footnotemark
  \protected@xdef\@thanks{\@thanks
    \protect\footnotetext[\arabic{footnote}]{#1}}%
}
\makeatother

問題是腳註標記是用\authors 設定的,但從未轉移到腳註文字(儲存在 中\@thanks)。因此,由於未指定,因此使用預設腳註標記。

在此輸入影像描述

\documentclass{jmlr}

\makeatletter
\renewcommand*{\thanks}[1]{%
  \footnotemark
  \protected@xdef\@thanks{\@thanks
    \protect\footnotetext[\arabic{footnote}]{#1}}%
}
\makeatother

\title{Title}
\author{Author 1\thanks{Thanks 1}
    \and
    Author 2\thanks{Thanks 2}
}

\begin{document}
\maketitle
\end{document}

相關內容