From f151b796a66adfb1d6b7bf151f2d85fd78cc0a64 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Sat, 7 Nov 2026 07:42:12 +0300 Subject: publish --- doc/gost/gost-7-32-captions.sty | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 doc/gost/gost-7-32-captions.sty (limited to 'doc/gost/gost-7-32-captions.sty') diff --git a/doc/gost/gost-7-32-captions.sty b/doc/gost/gost-7-32-captions.sty new file mode 100644 index 0000000..a8db9fb --- /dev/null +++ b/doc/gost/gost-7-32-captions.sty @@ -0,0 +1,28 @@ +\ProvidesPackage{gost-7-32-captions}[2022/01/28 GOST 7.32-2017] + +\RequirePackage{caption} +\RequirePackage{subcaption} + +% +% Table caption aligned to the left with dash as a separator +% +\captionsetup[table]{labelsep=endash, skip=0pt, singlelinecheck=off} + +% +% Dash as separator in figure caption and centering +% +\captionsetup[figure]{labelsep=endash, justification=centering} + +% +% Listing caption +% +\captionsetup[listing]{labelsep=endash, justification=centering} + +% +% Algorithm caption +% +\captionsetup[algorithm]{labelsep=endash, justification=centering} + +\addto\captionsrussian{\renewcommand{\figurename}{Рисунок}} +\addto\captionsrussian{\renewcommand{\mintedname}{Листинг}} +\addto\captionsrussian{\captionsetup[listing]{name=Листинг}} -- cgit v1.3.1