aboutsummaryrefslogtreecommitdiff
path: root/doc/diploma/gost/gost-7-32-captions.sty
diff options
context:
space:
mode:
authorLibravatar Martin Michalec <martin@michalec.dev>2026-11-11 22:28:13 +0000
committerLibravatar Martin Michalec <martin@michalec.dev>2026-11-11 22:47:34 +0000
commitcb070b2d3f2b6e241e3be1b7e0eeb90fc755255f (patch)
treec7d90c0abe9533c87d51b5196871846855efa1ba /doc/diploma/gost/gost-7-32-captions.sty
downloadthesis-master.tar.gz
publishHEADmaster
Diffstat (limited to 'doc/diploma/gost/gost-7-32-captions.sty')
-rw-r--r--doc/diploma/gost/gost-7-32-captions.sty33
1 files changed, 33 insertions, 0 deletions
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 @@
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=raggedright, 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%% NOTE(cmmm): breaks 'figure' counter
27%% \makeatletter
28%% \AtBeginDocument{%
29%% \let\c@figure\c@listing
30%% \let\thefigure\thelisting
31%% \let\ftype@listing\ftype@figure
32%% }
33%% \makeatother