【问题标题】:Only print a footnote of a acronym once per page in the footnotes.- LaTeX在脚注中每页只打印一次首字母缩略词的脚注。- LaTeX
【发布时间】:2022-01-02 23:59:47
【问题描述】:

我希望首字母缩略词包仅打印脚注,如果它尚未打印在该特定页面上。并在文本中给 \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}

我尝试了很多,但无法自己找到解决方案 - 也许这里的某个人在 LaTeX 方面和我一样好,可以为我提供一些帮助。

问候 特里斯坦。

【问题讨论】:

    标签: latex acronym


    【解决方案1】:

    当您使用\acf 时,您需要一个“完整的首字母缩略词”,因此您明确地覆盖了包通常会执行的操作。如果你改用\af,你只会在第一次得到脚注。

    至于“第一次”:首字母缩略词包跟踪它是否已经拼出了首字母缩略词。您可以使用\acresetall 重置此计数器。这与页面无关。在您的示例中,您可以简单地使用强制分页符在\newpage 之后添加\acresetall。在较大的文档中,您可以将其添加到每个\section\chapter,或者将其添加到done automatically with the etoolbox package 或查看this answer 以将其挂接到分页符中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-04-17
      • 2022-11-30
      • 1970-01-01
      • 1970-01-01
      • 2010-11-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多