A&A 範本的 argdef-error (renewcommand)

A&A 範本的 argdef-error (renewcommand)

我對 aa.cls 有兩個問題,可以從以下位置下載地點。它產生錯誤

! File ended while scanning use of \@argdef.
<insert text>
              \par
1.267 \renewcommand
                   {\Newassociation}[3]{%

和同樣的錯誤這個線程(評論中建議的臨時修復對我來說不起作用)。兩者都將我引導至上述 aa.cls 的第 267 行

\RequirePackage[figuresright]{rotating}
\RequirePackage{answers}
-->    \renewcommand{\Newassociation}[3]{%
    ...
}

(箭頭表示這條線,它指引我)。

就像 touhami 在評論中建議的那樣, \Newassociation來自answers-package。但他的解決方案不起作用。當它引導我到 aa.cls 時,它會識別該檔案。\usepackage{answers}我的論文腳本中的附加內容沒有幫助。可能會出現什麼問題?

另外 - 由於問題可能已連接,我不會打開另一個問題 - 它也不知道\newsolution同一文件的第 303 行並給出

! Latex Error: \newsolution undefined.
...
1.303 \renewcommand{\newsolution}
                                 [1]{%

我期待您的答覆。謝謝。

編輯:根據需要,這裡是我的帶有 usepackages 的紙質腳本:

\documentclass{aa}

\usepackage{answers}    %included for possible solution, didn´t work
\usepackage{graphicx}
\usepackage{txfonts}
\usepackage{multirow}
\usepackage{color}
\usepackage{colortbl}
\usepackage{subfig}
\usepackage{natbib}
\bibpunct{(}{)}{;}{a}{}{,}

\definecolor{grau}{rgb}{0.8,0.8,0.8}
\definecolor{hellgrau}{rgb}{0.95,0.95,0.95}

\begin{document}
    ....
\end{document}

相關內容