aboutsummaryrefslogtreecommitdiff
path: root/doc/gost/gost-7-32-captions.sty
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-11 06:32:30 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-11 06:46:30 +0000
commit5b4a191d1cf310a3d7a99351e716a1a60004be69 (patch)
tree4b8d1a82765946f323a90f35344526110e778a3f /doc/gost/gost-7-32-captions.sty
downloadcoursework-5b4a191d1cf310a3d7a99351e716a1a60004be69.tar.gz
publishHEADmaster
Diffstat (limited to 'doc/gost/gost-7-32-captions.sty')
-rw-r--r--doc/gost/gost-7-32-captions.sty32
1 files changed, 32 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..5a7d8d6
--- /dev/null
+++ b/doc/gost/gost-7-32-captions.sty
@@ -0,0 +1,32 @@
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{\renewcommand{\lstlistingname}{Рис.}}
24%% \addto\captionsrussian{\captionsetup[listing]{name=Рис.}}
25
26% \makeatletter
27% \AtBeginDocument{%
28% \let\c@figure\c@listing
29% \let\thefigure\thelisting
30% \let\ftype@listing\ftype@figure
31% }
32% \makeatother