From cb070b2d3f2b6e241e3be1b7e0eeb90fc755255f Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Thu, 12 Nov 2026 01:28:13 +0300 Subject: publish --- doc/diploma/gost/gost-7-32-captions.sty | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 doc/diploma/gost/gost-7-32-captions.sty (limited to 'doc/diploma/gost/gost-7-32-captions.sty') diff --git a/doc/diploma/gost/gost-7-32-captions.sty b/doc/diploma/gost/gost-7-32-captions.sty new file mode 100644 index 0000000..b086953 --- /dev/null +++ b/doc/diploma/gost/gost-7-32-captions.sty @@ -0,0 +1,33 @@ +\ProvidesPackage{gost-7-32-captions}[2022/01/28 GOST 7.32-2017] + +\RequirePackage{caption} +\RequirePackage{subcaption} +\RequirePackage{capt-of} + +% +% Table caption aligned to the left with dash as a separator +% +\captionsetup[table]{labelsep=endash, skip=0.5em, justification=raggedright, singlelinecheck=off} + +% +% Dash as separator in figure caption and centering +% +\captionsetup[figure]{labelsep=endash, justification=centering} + +% +% Listing caption +% +\captionsetup[listing]{labelsep=endash, skip=0.5em, singlelinecheck=off, position=above} + +\addto\captionsrussian{\renewcommand{\figurename}{Рис.}} +\addto\captionsrussian{\renewcommand{\lstlistingname}{Рис.}} +%% \addto\captionsrussian{\captionsetup[listing]{name=Рис.}} + +%% NOTE(cmmm): breaks 'figure' counter +%% \makeatletter +%% \AtBeginDocument{% +%% \let\c@figure\c@listing +%% \let\thefigure\thelisting +%% \let\ftype@listing\ftype@figure +%% } +%% \makeatother -- cgit v1.3.1