每页仅在脚注中打印一次首字母缩略词的脚注

每页仅在脚注中打印一次首字母缩略词的脚注

我希望缩写包只打印脚注(如果该特定页面上尚未打印)。并在文本中为 \acf{XX} 赋予相同的编号。输出应如下所示:

Text
The USA¹ are country as well as the UAE², but the USA¹ are bigger.

___________________
1 United States of America, 2 United Arabic Emirates

Next page:

The UAE¹ are still a country.

___________________
1 United Arabic Emirates

但它看起来像这样:

Text
The USA¹ are country as well as the UAE², but the USA³ are bigger.

___________________
1 United States of America, 2 United Arabic Emirates, 3 United States of America

Next page:

The UAE¹ are still a country.

___________________
1 United Arabic Emirates

我的代码:

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[footnote]{acronym}
\usepackage{hyperref}
\usepackage{perpage}
\MakePerPage[1]{footnote} 



\begin{document}

\section*{Acronyms}
\begin{acronym}[ECU]
\acro{USA}{United States of America}
\acro{UAE}{United Arabic Emirates}
%[...]
\end{acronym}
\newpage

\section{Text}
The \acf{USA} are a country as well as the \acf{UAE}, but the \acf{USA} are bigger.
\newpage
The \acf{USA} are still a country.
\end{document}

答案1

该包fixfoot可用于重复使用的相同文本的脚注。

从包切换acronymacro我们可以

  • 修改\DeclareAcronym并声明一个新的固定脚注;
  • 为首次出现定义一个新模板,调用所述固定脚注。

以下是一个示例文档:

\documentclass{article}

% for demonstration purposes only: make the page small!
\usepackage[
  paperwidth=.5\textwidth,
  paperheight=15\baselineskip,
  margin=5pt,
  bottom=1.5cm]{geometry}

\usepackage{acro}
\usepackage{fixfoot}
\usepackage{perpage}
\MakePerPage[1]{footnote}

\NewCommandCopy\DeclareAcroymCopy\DeclareAcronym
\RenewDocumentCommand\DeclareAcronym{m+m}{%
  \DeclareAcroymCopy{#1}{#2}%
  \expandafter\DeclareFixedFootnote\csname#1@fixed@foot\endcsname{\acrofield{#1}{long}}%
}

\NewAcroTemplate{fixfoot}{%
  \acrowrite{short}%
  \acroiffirstT{\csname\AcronymID @fixed@foot\endcsname}%
}

\acsetup{
  first-style=fixfoot,
  % subsequent-style=fixfoot
}

\DeclareAcronym{USA}{short=USA,long=United States of America}
\DeclareAcronym{UAE}{short=UAE,long=United Arabic Emirates}

\begin{document}

\section{Text}
The \acf{USA} are a country as well as the \acf{UAE}, but the \acf{USA} are bigger.
\newpage
The \acf{USA} are still a country.

\end{document}

在此处输入图片描述 在此处输入图片描述


更熟悉该acronym软件包的人现在也许也可以用它提出解决方案。

相关内容