Акронимы

This commit is contained in:
Andrei Astafev 2022-12-27 18:03:05 +03:00
parent d1220c9fb8
commit a2caffb06b

View File

@ -521,6 +521,36 @@ $endif$
\endorigfigure \endorigfigure
} }
\usepackage{acro}
\NewAcroTemplate[list]{acrolist}{%
\AcroNeedPackage{array}%
\acronymsmapF{%
\AcroAddRow{
\acrowrite{short}%
\acroifT{alt}{/\acrowrite{alt}}
&~---~
\acrowrite{list}%
\acroifanyT{foreign,extra}{ (}%
\acroifT{foreign}{\acrowrite{foreign}\acroifT{extra}{, }}%
\acroifT{extra}{\acrowrite{extra}}%
\acroifanyT{foreign,extra}{)}%
\acropagefill
\acropages
{\acrotranslate{page}\nobreakspace}
{\acrotranslate{pages}\nobreakspace}%
\tabularnewline
}%
}
{\AcroRerun}%
\acroheading
\acropreamble
\par\noindent
\begin{tabular}{>{}lp{.7\linewidth}}
\AcronymTable
\end{tabular}
}
\acsetup{make-links = true, pdfcomments/use = true, list/template = acrolist, first-style = short}
\begin{document} \begin{document}
$if(has-frontmatter)$ $if(has-frontmatter)$
\frontmatter \frontmatter