diff options
| author | 2026-11-08 04:56:09 +0000 | |
|---|---|---|
| committer | 2026-11-08 05:00:55 +0000 | |
| commit | 9431b0a1852e8151f12c1f9c3c0a4289f0c8e84a (patch) | |
| tree | c00612fa20727d5083f15e45a1a638c2a05b84ba /doc/gost/gost-7-32-captions.sty | |
| download | coursework-9431b0a1852e8151f12c1f9c3c0a4289f0c8e84a.tar.gz | |
Diffstat (limited to 'doc/gost/gost-7-32-captions.sty')
| -rw-r--r-- | doc/gost/gost-7-32-captions.sty | 29 |
1 files changed, 29 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..4a47c6a --- /dev/null +++ b/doc/gost/gost-7-32-captions.sty | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | \ProvidesPackage{gost-7-32-captions}[2022/01/28 GOST 7.32-2017] | ||
| 2 | |||
| 3 | \RequirePackage{caption} | ||
| 4 | \RequirePackage{subcaption} | ||
| 5 | |||
| 6 | % | ||
| 7 | % Table caption aligned to the left with dash as a separator | ||
| 8 | % | ||
| 9 | \captionsetup[table]{labelsep=endash, skip=0.5em, justification=centering, singlelinecheck=off} | ||
| 10 | |||
| 11 | % | ||
| 12 | % Dash as separator in figure caption and centering | ||
| 13 | % | ||
| 14 | \captionsetup[figure]{labelsep=endash, skip=1em, justification=centering} | ||
| 15 | |||
| 16 | % | ||
| 17 | % Listing caption | ||
| 18 | % | ||
| 19 | \captionsetup[listing]{labelsep=endash, skip=0.5em, singlelinecheck=off, position=above} | ||
| 20 | |||
| 21 | \addto\captionsrussian{\renewcommand{\figurename}{Рис.}} | ||
| 22 | \addto\captionsrussian{\captionsetup[listing]{name=Рис.}} | ||
| 23 | \makeatletter | ||
| 24 | \AtBeginDocument{% | ||
| 25 | \let\c@figure\c@listing | ||
| 26 | \let\thefigure\thelisting | ||
| 27 | \let\ftype@listing\ftype@figure | ||
| 28 | } | ||
| 29 | \makeatother | ||
