将缩写列表添加到目录中

将缩写列表添加到目录中

acro在论文中使用了缩写包。如何将缩写列表添加到目录中?

\documentclass{article}
\usepackage{acro}

\DeclareAcronym{bla}{
  short = BLA,
  long = BBBLLLAAA,
  class = A
}

\DeclareAcronym{foo}{
  short = FOO,
  long = FFFOOOOOO,
  class = B
}

\begin{document}

\tableofcontents
\cleardoublepage

\printacronyms[include-classes=A,name=Abbreviations]
\printacronyms[include-classes=B,name=Nomenclature]

\ac{bla}

\end{document}

答案1

您可以将命令放在\addcontentsline{toc}{section}{List of Abbreviations}上方的行上\printacronyms[include-classes=A,name=Abbreviations]

更改{section}to{chapter}将改变 TOC 条目,使其看起来像一个章节而不是一个部分。

List of Abbreviations可以将其替换为您想要的条目名称。

平均能量损失

\documentclass{article}
\usepackage{acro}

\DeclareAcronym{bla}{
  short = BLA,
  long = BBBLLLAAA,
  class = A
}

\DeclareAcronym{foo}{
  short = FOO,
  long = FFFOOOOOO,
  class = B
}

\begin{document}

\tableofcontents
\cleardoublepage
\addcontentsline{toc}{section}{List of Abbreviations}
\printacronyms[include-classes=A,name=Abbreviations]
\printacronyms[include-classes=B,name=Nomenclature]

\ac{bla}

\end{document}

相关内容