添加首字母缩略词

添加首字母缩略词

为什么我的代码仅打印 2 个缩写:

%*******************************************************
% Acronyms
%*******************************************************

\automark[section]{chapter}
\renewcommand{\chaptermark}[1]{\markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\enspace\spacedlowsmallcaps{#1}}}
\refstepcounter{dummy}
\pdfbookmark[1]{Acronyms}{Acronyms}
\markboth{\spacedlowsmallcaps{Acronyms}}{\spacedlowsmallcaps{Acronyms}}
\chapter*{Acronyms}

%\section{List of Acronyms}
% Insert your acronyms here
\begin{acronym}[API]

  \acro{DRY}{Don't Repeat Yourself}
  \acro{AET}{Atomic Event Trees}
  \acro{API}{Application Programming Interface}
  \acro{UML}{Unified Modeling Language} 
  
\end{acronym}

\cleardoublepage

相关内容