summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/15-IU8-list-of-abbreviations.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/15-IU8-list-of-abbreviations.sty')
-rw-r--r--macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/15-IU8-list-of-abbreviations.sty29
1 files changed, 29 insertions, 0 deletions
diff --git a/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/15-IU8-list-of-abbreviations.sty b/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/15-IU8-list-of-abbreviations.sty
new file mode 100644
index 0000000000..2e7931ccb7
--- /dev/null
+++ b/macros/latex/contrib/bmstu-iu8/bmstu-iu8/styles/15-IU8-list-of-abbreviations.sty
@@ -0,0 +1,29 @@
+% Author: CatInCosmicSpace
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{15-IU8-list-of-abbreviations}[2021/03/21 v1.1 Содержание]
+
+\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
+ ]
+}