aboutsummaryrefslogtreecommitdiff
path: root/doc/diploma/gost/gost-7-32-captions.sty
blob: b0869539b092c5961d65e9af87167ec7977c81f2 (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
30
31
32
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