aboutsummaryrefslogtreecommitdiff
path: root/doc/gost/gost-7-32-captions.sty
diff options
context:
space:
mode:
Diffstat (limited to 'doc/gost/gost-7-32-captions.sty')
-rw-r--r--doc/gost/gost-7-32-captions.sty30
1 files changed, 30 insertions, 0 deletions
diff --git a/doc/gost/gost-7-32-captions.sty b/doc/gost/gost-7-32-captions.sty
new file mode 100644
index 0000000..79a4620
--- /dev/null
+++ b/doc/gost/gost-7-32-captions.sty
@@ -0,0 +1,30 @@
1\ProvidesPackage{gost-7-32-captions}[2022/01/28 GOST 7.32-2017]
2
3\RequirePackage{caption}
4\RequirePackage{subcaption}
5\RequirePackage{capt-of}
6
7%
8% Table caption aligned to the left with dash as a separator
9%
10\captionsetup[table]{labelsep=endash, skip=0.5em, justification=centering, singlelinecheck=off}
11
12%
13% Dash as separator in figure caption and centering
14%
15\captionsetup[figure]{labelsep=endash, justification=centering}
16
17%
18% Listing caption
19%
20\captionsetup[listing]{labelsep=endash, skip=0.5em, singlelinecheck=off, position=above}
21
22\addto\captionsrussian{\renewcommand{\figurename}{Рис.}}
23\addto\captionsrussian{\captionsetup[listing]{name=Рис.}}
24\makeatletter
25\AtBeginDocument{%
26 \let\c@figure\c@listing
27 \let\thefigure\thelisting
28 \let\ftype@listing\ftype@figure
29}
30\makeatother