diff options
| author | 2026-11-08 04:29:28 +0000 | |
|---|---|---|
| committer | 2026-11-08 04:29:28 +0000 | |
| commit | 44e725659b941682c621a2fd9309ab4acc8ab199 (patch) | |
| tree | d6f8ff36b790a0b1b77688d488a88859d20a9ec1 /doc/gost/gost-7-32.cls | |
| download | lab-04-master.tar.gz | |
Diffstat (limited to 'doc/gost/gost-7-32.cls')
| -rw-r--r-- | doc/gost/gost-7-32.cls | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/doc/gost/gost-7-32.cls b/doc/gost/gost-7-32.cls new file mode 100644 index 0000000..5cfca06 --- /dev/null +++ b/doc/gost/gost-7-32.cls | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | % https://github.com/weterans/gost | ||
| 2 | \NeedsTeXFormat{LaTeX2e} | ||
| 3 | \ProvidesClass{gost-7-32}[2022/01/28 GOST 7.32-2017] | ||
| 4 | |||
| 5 | % | ||
| 6 | % Supported font sizes: 12pt, 14pt | ||
| 7 | % | ||
| 8 | \DeclareOption{12pt}{\PassOptionsToClass{\CurrentOption}{extarticle}} | ||
| 9 | \DeclareOption{14pt}{\PassOptionsToClass{\CurrentOption}{extarticle}} | ||
| 10 | |||
| 11 | \ProcessOptions\relax | ||
| 12 | |||
| 13 | % | ||
| 14 | % Set A4 paper format | ||
| 15 | % | ||
| 16 | \LoadClass[a4paper]{extarticle} | ||
| 17 | |||
| 18 | % | ||
| 19 | % Use 1.5 line spacing | ||
| 20 | % | ||
| 21 | \RequirePackage{setspace} | ||
| 22 | \spacing{1.5} | ||
| 23 | |||
| 24 | % | ||
| 25 | % First paragraph indentation | ||
| 26 | % | ||
| 27 | \RequirePackage{indentfirst} | ||
| 28 | \setlength{\parindent}{12.5mm} | ||
| 29 | |||
| 30 | % | ||
| 31 | % Page margin | ||
| 32 | % | ||
| 33 | \RequirePackage[ | ||
| 34 | left=2.5cm, | ||
| 35 | right=2cm, | ||
| 36 | top=2cm, | ||
| 37 | bottom=2cm, | ||
| 38 | footskip=1cm, | ||
| 39 | ]{geometry} | ||
| 40 | |||
| 41 | % | ||
| 42 | % Use TMR-like font | ||
| 43 | % | ||
| 44 | \RequirePackage{fontspec} | ||
| 45 | \RequirePackage{xunicode} | ||
| 46 | \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase,Mapping=tex-text} | ||
| 47 | \setmainfont{Times New Roman} | ||
| 48 | |||
| 49 | % | ||
| 50 | % Use russian language | ||
| 51 | % | ||
| 52 | \RequirePackage[main=russian, english]{babel} | ||
| 53 | \babelhyphenation[russian]{} | ||
| 54 | |||
| 55 | % | ||
| 56 | % gost-7-32 packages | ||
| 57 | % | ||
| 58 | \RequirePackage{gost-7-32-headings} | ||
| 59 | \RequirePackage{gost-7-32-toc} | ||
| 60 | \RequirePackage{gost-7-32-lists} | ||
| 61 | % \RequirePackage{gost-7-32-bibliography} | ||
| 62 | \RequirePackage{gost-7-32-captions} | ||
| 63 | \RequirePackage{gost-7-32-tables} | ||
