1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
|
% \iffalse meta-comment
%
% gost732 -- GOST 7.32-2001 implementation.
%
% Copyright (c) Stanislav Kruchinin
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any later
% version. This version of this license is in
% http://www.latex-project.org/lppl/lppl-1-3c.txt
% and the latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of
% LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% Current Maintainer of this work is Stanislav Kruchinin.
%
% This work consists of the main source file gost705.dtx
% and the derived files
% gost732.bst, gost732.pdf.
%
% Distribution:
% CTAN:macros/latex/contrib/disser/src/gost732.dtx
%
% Unpacking:
% (a) If disser.ins present:
% latex disser.ins
% (b) Without disser.ins:
% tex gost732.dtx
%
% Documentation:
% latex gost732.dtx; ...
%
% Programm calls to get the documentation (example):
% pdflatex gost732.dtx
% makeindex -r -s dtx.ist gost732
% pdflatex gost732.dtx
% pdflatex gost732.dtx
%
% Installation:
% TDS:tex/latex/disser/
% TDS:doc/latex/disser/
% TDS:source/latex/disser/
%
%<*ignore>
\begingroup
\catcode123=1 %
\catcode125=2 %
\def\x{LaTeX2e}%
\expandafter\endgroup
\ifcase 0\ifx\install y1\fi\expandafter
\ifx\csname processbatchFile\endcsname\relax\else1\fi
\ifx\fmtname\x\else 1\fi\relax
\else\csname fi\endcsname
%</ignore>
%<*install>
\input docstrip.tex
\Msg{************************************************************************}
\Msg{* Installation}
\Msg{* gost732: GOST 7.32-2001 implementation}
\Msg{************************************************************************}
\keepsilent
\askforoverwritefalse
\let\MetaPrefix\relax
\preamble
This is a generated file.
This document class attempts to format LaTeX document according to
GOST 7.32-2001.
Copyright (C) 2004-2012 by
Stanislav Kruchinin <stanislav.kruchinin at gmail.com>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
version. This version of this license is in
http://www.latex-project.org/lppl/lppl-1-3c.txt
and the latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of
LaTeX version 2005/12/01 or later.
This work has the LPPL maintenance status "maintained".
Current Maintainer of this work is Stanislav Kruchinin.
This work consists of the main source file gost705.dtx
and the derived files
gost732.bst gost732.pdf.
\endpreamble
\let\MetaPrefix\DoubleperCent
\generate{%
\usedir{tex/latex/disser}%
\file{gost732.cls}{\from{gost732.dtx}{gost732}}%
}
\catcode32=13\relax% active space
\let =\space%
\Msg{************************************************************************}
\Msg{*}
\Msg{* To finish the installation you have to move the following}
\Msg{* file into a directory searched by TeX:}
\Msg{*}
\Msg{* gost732.cls}
\Msg{*}
\Msg{* To produce the documentation run the file `gost732.dtx'}
\Msg{* through LaTeX or pdfLaTeX.}
\Msg{*}
\Msg{* Happy TeXing!}
\Msg{*}
\Msg{************************************************************************}
\endbatchfile
%</install>
%<*ignore>
\fi
%</ignore>
%<*driver>
\ProvidesFile{gost732.drv}[2013/12/30 1.3.0 GOST 7.32-2001 implementation]
\documentclass{ltxdoc}
\usepackage[a4paper,includeheadfoot,nohead,mag=1000,
left=5cm,right=1cm,top=1.5cm,bottom=1.5cm]{geometry}
\usepackage{ifpdf,indentfirst,color}
\definecolor{darkblue}{rgb}{0,0,.6}
\ifpdf
\usepackage[pdftex,hyperindex,unicode]{hyperref}
\usepackage{cmap}
\else
\usepackage[hypertex]{hyperref}
\fi
\hypersetup{
pdftitle = {Documented source code of gost732 class},
pdfauthor = {Stanislav Kruchinin},
pdfsubject = {disser},
pdfstartview = {FitH},
pdfborder = {0 0 0},
bookmarksopen = true,
bookmarksnumbered = true,
bookmarksopenlevel = 2,
colorlinks = true, linkcolor = darkblue,
citecolor = darkblue, filecolor = darkblue,
menucolor = darkblue, urlcolor = darkblue
}
\IfFileExists{pscyr.sty}{%
\usepackage{pscyr}
\renewcommand\ttdefault{cmtt}
\renewcommand\rmdefault{ftm}
}{
\IfFileExists{cyrtimes.sty}{%
\renewcommand\ttdefault{cmtt}
\renewcommand\rmdefault{ftm}
}{}
}
\IfFileExists{url.sty}{\RequirePackage{url}}{\newcommand\url{\texttt}}
\usepackage[T2A]{fontenc}
\usepackage[cp1251]{inputenc}
\usepackage[english,russian]{babel}
\MakeShortVerb{\|}
\def\file#1{\texttt{#1}}
\def\pkg#1{\textsf{#1}}
\def\cmd#1{\texttt{#1}}
\setlength\hfuzz{20pt}
\hbadness=10000
\GetFileInfo{gost732.drv}
\begin{document}
\sloppy
\DocInput{gost732.dtx}
\end{document}
%</driver>
% \fi
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% \title{\pkg{gost732} --- êëàññ äëÿ îôîðìëåíèÿ äîêóìåíòîâ â ñîîòâåòñòâèè
% ñ ÃÎÑÒ 7.32-2001}
% \date{Âåðñèÿ \fileversion\\[6pt]\filedate}
% \author{Ñòàíèñëàâ Êðó÷èíèí\\[6pt]
% \normalsize E-mail:
% \href{mailto:stanislav.kruchinin@gmail.com}
% {\texttt{stanislav.kruchinin@gmail.com}}}
%
% \maketitle
%
% \tableofcontents
%
% \section{Èñõîäíûé òåêñò}\parindent=0pt
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesClass{gost732}[2013/12/30 1.3.0 GOST 7.32-2001 implementation]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{disser}}
\ProcessOptions\relax
\LoadClass[a4paper,14pt]{disser}
% \end{macrocode}
%
% \subsection{Ôîðìàò çàãîëîâêîâ}
%
% \begin{macrocode}
\renewcommand\tocprethechapter{}
\renewcommand\tocpostthechapter{\@postskip}
\renewcommand\chapteralign{\centering}
\renewcommand\thechapterfont{\Large\bfseries}
\renewcommand\prethechapter{}
\renewcommand\postthechapter{\@postskip}
\renewcommand\afterchapter{\vskip 16\p@}
\renewcommand\postthesection{\@postskip}
\renewcommand\tocpostthesection{\@postskip}
\renewcommand\sectionindent{1cm}
\renewcommand\postthesubsection{\@postskip}
\renewcommand\tocpostthesubsection{\@postskip}
\renewcommand\subsectionindent{1cm}
\renewcommand\postthesubsubsection{\@postskip}
\renewcommand\tocpostthesubsubsection{\@postskip}
\renewcommand\subsubsectionindent{1cm}
\renewcommand\posttheparagraph{\@postskip}
\renewcommand\tocposttheparagraph{\@postskip}
\renewcommand\postthesubparagraph{\@postskip}
\renewcommand\tocpostthesubparagraph{\@postskip}
% \end{macrocode}
% Èçìåíåíèå ñòàíäàðòíûõ çàãîëîâêîâ.
% \begin{macrocode}
\AtBeginDocument{\addto\captionsrussian{%
\def\bibname{\cyr\CYRS\CYRP\CYRI\CYRS\CYRO\CYRK\ %
\CYRI\CYRS\CYRP\CYRO\CYRL\CYRSFTSN\CYRZ\CYRO\CYRV\CYRA\CYRN\CYRN\CYRERY\CYRH\ %
\CYRI\CYRS\CYRT\CYRO\CYRCH\CYRN\CYRI\CYRK\CYRO\CYRV}
\def\figurename{\cyr\CYRR\cyri\cyrs\cyru\cyrn\cyro\cyrk}
\def\appendixname{\cyr\CYRP\CYRR\CYRI\CYRL\CYRO\CYRZH\CYRE\CYRN\CYRI\CYRE}
\def\contentsname{\cyr\CYRS\CYRO\CYRD\CYRE\CYRR\CYRZH\CYRA\CYRN\CYRI\CYRE}
\def\listfigurename{\cyr\CYRS\CYRP\CYRI\CYRS\CYRO\CYRK\ %
\CYRI\CYRL\CYRL\CYRYU\CYRS\CYRT\CYRR\CYRA\CYRC\CYRI\CYRISHRT}
\def\listtablename{\cyr\CYRS\CYRP\CYRI\CYRS\CYRO\CYRK\ %
\CYRT\CYRA\CYRB\CYRL\CYRI\CYRC}
}}
% \end{macrocode}
% Îáîçíà÷åíèÿ è ñîêðàùåíèÿ.
% \begin{macrocode}
\renewcommand\defsname{%
\cyr\CYRO\CYRB\CYRO\CYRZ\CYRN\CYRA\CYRCH\CYRE\CYRN\CYRI\CYRYA\ %
\CYRI\ \CYRS\CYRO\CYRK\CYRR\CYRA\CYRSHCH\CYRE\CYRN\CYRI\CYRYA
}
\renewcommand\defs{%
\nchapter{\defsname}
}
\renewcommand\bibsection{%
\nchapter{\bibname}
}
\renewcommand\introname{%
\cyr\CYRV\CYRV\CYRE\CYRD\CYRE\CYRN\CYRI\CYRE
}
\renewcommand\reviewname{%
\cyr\CYRO\CYRB\CYRZ\CYRO\CYRR\ %
\CYRL\CYRI\CYRT\CYRE\CYRR\CYRA\CYRT\CYRU\CYRR\CYRERY
}
\renewcommand\conclusionname{%
\cyr\CYRZ\CYRA\CYRK\CYRL\CYRYU\CYRCH\CYRE\CYRN\CYRI\CYRE
}
% \end{macrocode}
% \subsection{Ñïèñêè}
% \subsubsection{Íóìåðîâàííûé ñïèñîê}
%
% Ôîðìàò ñ÷åò÷èêîâ.
% \begin{macrocode}
\renewcommand\theenumi {\disser@asbuk\c@enumi}
\renewcommand\theenumii {\@arabic\c@enumii}
\renewcommand\theenumiii{\@roman\c@enumiii}
\renewcommand\theenumiv {\disser@Asbuk\c@enumiv}
% \end{macrocode}
%
% Ôîðìàò ìåòîê.
% \begin{macrocode}
\renewcommand\labelenumi {\theenumi)}
\renewcommand\labelenumii {\theenumii)}
\renewcommand\labelenumiii{\theenumiii)}
\renewcommand\labelenumiv {\theenumiv)}
% \end{macrocode}
% Ññûëî÷íûå ïðåôèêñû.
% \begin{macrocode}
\renewcommand\p@enumii {\theenumi}
\renewcommand\p@enumiii {\theenumi.\theenumii}
\renewcommand\p@enumiv {\p@enumiii.\theenumiii}
% \end{macrocode}
%
% \subsubsection{Ìàðêèðîâàííûé ñïèñîê}
%
% Ôîðìàò ìåòîê.
% \begin{macrocode}
\renewcommand\labelitemi {\normalfont\bfseries \textendash}
\renewcommand\labelitemii {\textbullet}
\renewcommand\labelitemiii{\textasteriskcentered}
\renewcommand\labelitemiv {\textperiodcentered}
% \end{macrocode}
%
% \subsection{Ïîäïèñè ê ïëàâàþùèì îáúåêòàì}
% \begin{macrocode}
\captionsetup{format=plain,justification=centering,labelsep=endash}
\captionsetup[longtable]{justification=raggedright,singlelinecheck=false}
\captionsetup[table]{justification=raggedright,singlelinecheck=false}
% \end{macrocode}
% \subsection{Öèòèðîâàíèå}
% Òî÷êà ñ çàïÿòîé â êà÷åñòâå ðàçäåëèòåëÿ íîìåðîâ öèòèðóåìîé ëèòåðàòóðû.
% \begin{macrocode}
\setcitestyle{semicolon}
% \end{macrocode}
%
% \subsection{Ñíîñêà}
%
% \begin{macrocode}
\renewcommand\postthefootnote{$^)$}
% \end{macrocode}
%
% \Finale
\endinput
|