From 9431b0a1852e8151f12c1f9c3c0a4289f0c8e84a Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Sun, 8 Nov 2026 07:56:09 +0300 Subject: publish --- doc/gost/gost-7-32-captions.sty | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..4a47c6a --- /dev/null +++ b/doc/gost/gost-7-32-captions.sty @@ -0,0 +1,29 @@ +\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=0.5em, justification=centering, singlelinecheck=off} + +% +% Dash as separator in figure caption and centering +% +\captionsetup[figure]{labelsep=endash, skip=1em, justification=centering} + +% +% Listing caption +% +\captionsetup[listing]{labelsep=endash, skip=0.5em, singlelinecheck=off, position=above} + +\addto\captionsrussian{\renewcommand{\figurename}{Рис.}} +\addto\captionsrussian{\captionsetup[listing]{name=Рис.}} +\makeatletter +\AtBeginDocument{% + \let\c@figure\c@listing + \let\thefigure\thelisting + \let\ftype@listing\ftype@figure +} +\makeatother -- cgit v1.3.1