簡體   English   中英

在腳注中每頁僅打印一次首字母縮略詞的腳注。- LaTeX

[英]Only print a footnote of a acronym once per page in the footnotes.- LaTeX

我希望首字母縮略詞 package 僅打印腳注,如果它尚未打印在該特定頁面上。 並在文本中給 \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 中比我更好,可以為我提供一些幫助。

問候特里斯坦。

當您使用\acf時,您需要一個“完整的首字母縮寫詞”,因此您明確地覆蓋了 package 通常會執行的操作。 如果你改用\af ,你只會第一次得到腳注。

至於“第一次”:首字母縮寫詞 package 跟蹤它是否已經拼出了首字母縮寫詞。您可以使用\acresetall重置此計數器。這與頁面無關。在您的示例中,您可以簡單地添加\acresetall之后\newpage 。在較大的文檔中,您可以將其添加到每個\section\chapter中,或者使用etoolbox package 自動完成,或者查看此答案以將其掛鈎到分頁符中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM