我正在使用剑桥大学出版社的书籍 class cambridge7A(可在 http://authornet.cambridge.org/information/productionguide/laTex_files/并被 CUP 作者广泛使用)
一个最小的例子既描述又说明了运行它时出现的问题:
\documentclass{cambridge7a}
\begin{document}
Suppose we introduce a footnote here\footnote{\label{myfootnote}
And here's the note text!}, and then we later refer want to refer to the note,
as fn.~\ref{myfootnote}.
Then the number in the latter cross-reference is superscripted,
when we of course will want a simple inline reference, like this: fn. 1.
\end{document}
所以问题是:最好不要侵入类文件,是否有简单的方法强制交叉引用生成的 \ref{my footnote} 返回正常字体的数字(对于它发生的上下文)而不是上标脚本大小的数字。
提前致谢!
答案1
该课程确实
\renewcommand{\thefootnote}{\mbox{$\fnsymbol{footnote}$}}
\def\@fnsymbol#1{{{^{\scriptstyle\@arabic{#1}}}\relax}}
这简直太疯狂了。这里有一些小窍门,但它们可能会在其他地方产生意想不到的结果。
\documentclass{cambridge7A}
\renewcommand{\thefootnote}{\arabic{footnote}}
\makeatletter
\def\@makefnmark{\textsuperscript{\@thefnmark}}
\long\def\@makefntext#1{\raggedright\@setpar{\@@par\@tempdima \hsize
\advance\@tempdima-\@footindent
\parshape \@ne \@footindent \@tempdima}\par
\noindent \hbox to \z@{\hss\textsuperscript{\@thefnmark}\enskip}#1}
\makeatother
\begin{document}
Suppose we introduce a footnote here\footnote{\label{myfootnote}And here's the note text!},
and then we later refer want to refer to the note, as fn.~\ref{myfootnote}.
Then the number in the latter cross-reference is superscripted,
when we of course will want a simple inline reference, like this: fn. 1.
\end{document}