diff options
| author | 2026-11-08 05:23:31 +0000 | |
|---|---|---|
| committer | 2026-11-08 05:24:55 +0000 | |
| commit | 3f36aca66e1ac6c872300059e8db691a473614d4 (patch) | |
| tree | 48c65f463c487d281c7c4091c7ba01dd4a2ff8f1 /doc/gost/gost-7-32-bibliography.sty | |
| download | lab-02-master.tar.gz | |
Diffstat (limited to 'doc/gost/gost-7-32-bibliography.sty')
| -rw-r--r-- | doc/gost/gost-7-32-bibliography.sty | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/doc/gost/gost-7-32-bibliography.sty b/doc/gost/gost-7-32-bibliography.sty new file mode 100644 index 0000000..dca60fa --- /dev/null +++ b/doc/gost/gost-7-32-bibliography.sty | |||
| @@ -0,0 +1,57 @@ | |||
| 1 | \ProvidesPackage{gost-7-32-bibliography}[2022/01/28 GOST 7.32-2017] | ||
| 2 | |||
| 3 | \def\UrlBreaks{\do\/\do-} | ||
| 4 | \RequirePackage{url} | ||
| 5 | |||
| 6 | \newdimen\bibindent | ||
| 7 | \renewenvironment{thebibliography}[1]{ | ||
| 8 | \chapter*{\bibname}\addcontentsline{toc}{chapter}{\bibname}% | ||
| 9 | \list{\@biblabel{\@arabic\c@enumiv}}% | ||
| 10 | {\settowidth\labelwidth{\@biblabel{#1}}% | ||
| 11 | \leftmargin\labelwidth | ||
| 12 | \advance\leftmargin\labelsep | ||
| 13 | \@openbib@code | ||
| 14 | \usecounter{enumiv}% | ||
| 15 | \let\p@enumiv\@empty | ||
| 16 | \renewcommand\theenumiv{\@arabic\c@enumiv}}% | ||
| 17 | \sloppy\clubpenalty4000\widowpenalty4000% | ||
| 18 | \sfcode`\.\@m | ||
| 19 | }{ | ||
| 20 | \setcounter{totalbib}{\c@enumiv}% | ||
| 21 | \def\@noitemerr | ||
| 22 | {\@latex@warning{Empty `thebibliography' environment}}% | ||
| 23 | \endlist | ||
| 24 | } | ||
| 25 | \renewcommand\@biblabel{}% | ||
| 26 | \setlength\bibindent{1.5em} | ||
| 27 | |||
| 28 | % Точки после номеров в библиографии. Несовместимо с natbib! -- Коротков И. | ||
| 29 | %\makeatletter | ||
| 30 | \renewcommand*{\@biblabel}[1]{\hfill#1.} | ||
| 31 | |||
| 32 | |||
| 33 | % | ||
| 34 | % Remove References header completely | ||
| 35 | % Stolen from original article.cls | ||
| 36 | % | ||
| 37 | \makeatletter | ||
| 38 | \renewenvironment{thebibliography}[1]{% | ||
| 39 | % \usection{\refname}% | ||
| 40 | % \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}% | ||
| 41 | \list{\@biblabel{\@arabic\c@enumiv}}% | ||
| 42 | {\settowidth\labelwidth{\@biblabel{#1}}% | ||
| 43 | \leftmargin\labelwidth | ||
| 44 | \advance\leftmargin\labelsep | ||
| 45 | \@openbib@code | ||
| 46 | \usecounter{enumiv}% | ||
| 47 | \let\p@enumiv\@empty | ||
| 48 | \renewcommand\theenumiv{\@arabic\c@enumiv}}% | ||
| 49 | \sloppy | ||
| 50 | \clubpenalty4000 | ||
| 51 | \@clubpenalty \clubpenalty | ||
| 52 | \widowpenalty4000% | ||
| 53 | \sfcode`\.\@m} | ||
| 54 | {\def\@noitemerr | ||
| 55 | {\@latex@warning{Empty `thebibliography' environment}}% | ||
| 56 | \endlist} | ||
| 57 | \makeatother | ||
