summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/15-IU8-list-of-abbreviations.sty
blob: d8345fdd1fe0838129142e815191dc3192edb813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
% Author: CatInCosmicSpace
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{15-IU8-list-of-abbreviations}[2021/03/21 v1.2 Содержание]

\RequirePackage[abbreviations]{glossaries-extra}

\GlsSetXdyCodePage{utf8}

\renewcommand{\glossarysection}[2][]{}

\newglossarystyle{definitions}{
    \renewenvironment{theglossary}{}{}
    \renewcommand*{\glossentry}[2]{  
        \noindent\glstarget{##1}{\glossentryname{##1}}~\textemdash~\glossentrydesc{##1}
        \newline
    } 
    \renewcommand*{\glsgroupskip}{}
}

\newcommand{\listofabbreviations}{
    \structure{ПЕРЕЧЕНЬ~СОКРАЩЕНИЙ~И~ОБОЗНАЧЕНИЙ}

    \abbreviationsLine

    \printunsrtglossary[
        style=definitions,
        type=\acronymtype
    ]
}