summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-16 19:57:36 +0000
committerKarl Berry <karl@freefriends.org>2009-11-16 19:57:36 +0000
commit494bd0475fd9f4b8ad307a7fb97b96d1f8093936 (patch)
tree5b95640ef51caa72822a1478b49449c29c009b24 /Master/texmf-dist/source/latex/disser
parent7c71adc8d8bd0bf2195bb57a46f7029642681503 (diff)
disser 1.1.3 (6nov09)
git-svn-id: svn://tug.org/texlive/trunk@16036 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/disser')
-rw-r--r--Master/texmf-dist/source/latex/disser/Makefile122
-rw-r--r--Master/texmf-dist/source/latex/disser/autoref.dtx2
-rw-r--r--Master/texmf-dist/source/latex/disser/bachelor.dtx2
-rw-r--r--Master/texmf-dist/source/latex/disser/chapter.dtx21
-rw-r--r--Master/texmf-dist/source/latex/disser/counters.dtx12
-rw-r--r--Master/texmf-dist/source/latex/disser/custom.dtx29
-rw-r--r--Master/texmf-dist/source/latex/disser/disser.dtx82
-rw-r--r--Master/texmf-dist/source/latex/disser/disser.ins4
-rw-r--r--Master/texmf-dist/source/latex/disser/gost705.dtx (renamed from Master/texmf-dist/source/latex/disser/disser-bst.dtx)569
-rw-r--r--Master/texmf-dist/source/latex/disser/gost732.dtx14
-rw-r--r--Master/texmf-dist/source/latex/disser/lists.dtx1
-rw-r--r--Master/texmf-dist/source/latex/disser/part.dtx25
-rw-r--r--Master/texmf-dist/source/latex/disser/sections.dtx60
-rw-r--r--Master/texmf-dist/source/latex/disser/titledefs.dtx14
-rw-r--r--Master/texmf-dist/source/latex/disser/toc.dtx129
15 files changed, 604 insertions, 482 deletions
diff --git a/Master/texmf-dist/source/latex/disser/Makefile b/Master/texmf-dist/source/latex/disser/Makefile
index 5fb3559a31a..fdc9261dd9a 100644
--- a/Master/texmf-dist/source/latex/disser/Makefile
+++ b/Master/texmf-dist/source/latex/disser/Makefile
@@ -1,86 +1,90 @@
#
# Makefile for disser package
# Author: Stanislav Kruchinin <stanislav.kruchinin@gmail.com>
-#
+#
-TARGET=disser
-SUBCLASS=gost732
-BST=disser-bst
-MANUAL=manual
+TARGET := disser
+MAINDTX := disser gost732 gost705
+MANUAL := manual
-CLSFILES=$(TARGET).cls *.rtx $(SUBCLASS).cls
-BSTFILES=$(TARGET).bst $(TARGET)-s.bst
-DOCFILES=$(TARGET).pdf $(SUBCLASS).pdf $(BST).pdf $(MANUAL).pdf
-TEXTFILES=../README ../README.ru ../ChangeLog
-SRCFILES=*.dtx *.ins $(MANUAL).tex
+CLSFILES := *.cls *.rtx
+BSTFILES := gost705.bst gost705s.bst
+DOCFILES := $(addsuffix .pdf, $(MAINDTX) $(MANUAL))
+TEXTFILES := ../README ../README.ru ../ChangeLog
+SRCFILES := *.dtx $(TARGET).ins $(TARGET).ist $(MANUAL).tex Makefile nomake.cmd
-TEXMF?=/usr/share/texmf
+TEXMF ?= /usr/share/texmf
+DESTDIR ?= $(TEXMF)
+CLSDIR ?= $(DESTDIR)/tex/latex/$(TARGET)
+DOCDIR ?= $(DESTDIR)/doc/latex/$(TARGET)
+BSTDIR ?= $(DESTDIR)/bibtex/bst/$(TARGET)
+SRCDIR ?= $(DESTDIR)/source/latex/$(TARGET)
-CLSDIR?=$(TEXMF)/tex/latex/$(TARGET)
-DOCDIR?=$(TEXMF)/doc/latex/$(TARGET)
-BSTDIR?=$(TEXMF)/bibtex/bst/$(TARGET)
-SRCDIR?=$(TEXMF)/source/latex/$(TARGET)
+CLEXT ?= *.aux *.toc *.idx *.ind *.ilg *.log *.out *.lof *.lot *.lol \
+ *.bbl *.blg *.bak *.dvi *.ps *.pdf
+CLFILES ?= $(CLEXT) $(CLSFILES) $(BSTFILES)
-CLEXT?=*.log *.out *.aux *.dvi *.idx *.ilg *.ind *.glo *.toc *.bak *.bbl *.blg *.sav
-CLFILES?=$(CLSFILES) $(BSTFILE) $(DOCFILES) $(CLEXT)
+LATEX ?= latex
+PDFLATEX ?= pdflatex
+MI ?= makeindex
-LATEX?=latex
-PDFLATEX?=pdflatex
-MI?=makeindex
+LATEXFLAGS ?= --src-specials
+PDFLATEXFLAGS ?= --shell-escape
+MIFLAGS ?= -r -s disser.ist
-LATEXFLAGS?=
-PDFLATEXFLAGS?=
all: package doc
-package: $(TARGET).ins
- $(LATEX) $^
+package: $(TARGET).cls
doc: pdf
-dvi: $(TARGET).dvi $(SUBCLASS).dvi $(BST).dvi $(MANUAL).dvi
+dvi: $(addsuffix .dvi, $(MAINDTX) $(MANUAL))
-pdf: $(TARGET).pdf $(SUBCLASS).pdf $(BST).pdf $(MANUAL).pdf
+pdf: $(DOCFILES)
+
+clean:
+ -rm -f $(CLFILES)
install: all
- mkdir -p $(CLSDIR)
- mkdir -p $(BSTDIR)
- mkdir -p $(DOCDIR)
- mkdir -p $(SRCDIR)
- cp $(CLSFILES) $(CLSDIR)
- cp $(BSTFILES) $(BSTDIR)
- cp $(DOCFILES) $(DOCDIR)
- cp $(TEXTFILES) $(DOCDIR)
+ mkdir -p $(CLSDIR) ;\
+ mkdir -p $(BSTDIR) ;\
+ mkdir -p $(DOCDIR) ;\
+ mkdir -p $(SRCDIR) ;\
+ cp $(CLSFILES) $(CLSDIR) ;\
+ cp $(BSTFILES) $(BSTDIR) ;\
+ cp $(DOCFILES) $(DOCDIR) ;\
+ cp $(TEXTFILES) $(DOCDIR) ;\
cp $(SRCFILES) $(SRCDIR)
uninstall:
- rm $(addprefix $(CLSDIR)/, $(CLSFILES))
- rm $(addprefix $(BSTDIR)/, $(BSTFILES))
- rm $(addprefix $(DOCDIR)/, $(DOCFILES))
- rm $(addprefix $(DOCDIR)/, $(notdir $(TEXTFILES)))
- rm $(addprefix $(SRCDIR)/, $(SRCFILES))
- rmdir $(CLSDIR)
- rmdir $(BSTDIR)
- rmdir $(DOCDIR)
- rmdir $(SRCDIR)
+ -rm $(addprefix $(CLSDIR)/, $(CLSFILES))
+ -rm $(addprefix $(BSTDIR)/, $(BSTFILES))
+ -rm $(addprefix $(DOCDIR)/, $(DOCFILES))
+ -rm $(addprefix $(DOCDIR)/, $(notdir $(TEXTFILES)))
+ -rm $(addprefix $(SRCDIR)/, $(SRCFILES))
+ -rmdir $(CLSDIR)
+ -rmdir $(BSTDIR)
+ -rmdir $(DOCDIR)
+ -rmdir $(SRCDIR)
reinstall: uninstall install
-clean:
- rm -f $(CLFILES)
-
-disser.dvi: disser.dtx
+$(TARGET).dvi: $(TARGET).dtx
$(LATEX) $(LATEXFLAGS) $<
$(MI) -r $(TARGET)
$(LATEX) $(LATEXFLAGS) $<
$(LATEX) $(LATEXFLAGS) $<
-disser.pdf: disser.dtx
+$(TARGET).pdf: $(TARGET).dtx
$(PDFLATEX) $(PDFLATEXFLAGS) $<
- $(MI) -r $(TARGET)
+ $(MI) $(MIFLAGS) $(TARGET)
$(PDFLATEX) $(PDFLATEXFLAGS) $<
$(PDFLATEX) $(PDFLATEXFLAGS) $<
+%.cls: %.ins
+ $(LATEX) $^
+
%.dvi: %.dtx
$(LATEX) $(LATEXFLAGS) $<
$(LATEX) $(LATEXFLAGS) $<
@@ -98,13 +102,13 @@ disser.pdf: disser.dtx
$(PDFLATEX) $(PDFLATEXFLAGS) $<
help:
- @echo " all (default) build package files and documentation"
- @echo " package build package"
- @echo " clean remove output files"
- @echo " doc build DVI and PDF versions of documentation"
- @echo " dvi build DVI version of documentation"
- @echo " help show description of targets"
- @echo " install install package and documentation"
- @echo " pdf build PDF version of documentation"
- @echo " reinstall reinstall package and documentation"
- @echo " uninstall uninstall package and documentation"
+ @echo " all (default) build package and documentation" ;\
+ echo " clean remove output files" ;\
+ echo " doc alias for pdf target" ;\
+ echo " dvi build documentation in DVI format" ;\
+ echo " help show description of targets" ;\
+ echo " install install package and documentation" ;\
+ echo " package build package" ;\
+ echo " pdf build documentation in PDF format" ;\
+ echo " reinstall reinstall package and documentation" ;\
+ echo " uninstall uninstall package and documentation"
diff --git a/Master/texmf-dist/source/latex/disser/autoref.dtx b/Master/texmf-dist/source/latex/disser/autoref.dtx
index 752616088d5..b8957d8cd8a 100644
--- a/Master/texmf-dist/source/latex/disser/autoref.dtx
+++ b/Master/texmf-dist/source/latex/disser/autoref.dtx
@@ -43,7 +43,7 @@
% Шифр и наименование специальности
% \begin{macrocode}
\vskip\fourthskip
- {\specfont\@specnum~--\;\@spec}
+ {\specfont\@specnum~--\ \@spec}
% \end{macrocode}
% Диссертация на соискание ученой степени...
% \begin{macrocode}
diff --git a/Master/texmf-dist/source/latex/disser/bachelor.dtx b/Master/texmf-dist/source/latex/disser/bachelor.dtx
index ae7742db795..5e8a6d21e3d 100644
--- a/Master/texmf-dist/source/latex/disser/bachelor.dtx
+++ b/Master/texmf-dist/source/latex/disser/bachelor.dtx
@@ -51,7 +51,7 @@
{\topiclabelfont\topiclabel\;}
{\topicfont\@topic\par}
\vskip\fourthskip\normalfont
- \courselabel\ \@coursenum~-- \@course
+ \courselabel\ \@coursenum~--\ \@course
\end{center}
% \end{macrocode}
% Специальность, автор, руководитель.
diff --git a/Master/texmf-dist/source/latex/disser/chapter.dtx b/Master/texmf-dist/source/latex/disser/chapter.dtx
index 3562d7b78ca..c29e0df9eb6 100644
--- a/Master/texmf-dist/source/latex/disser/chapter.dtx
+++ b/Master/texmf-dist/source/latex/disser/chapter.dtx
@@ -10,7 +10,7 @@
%
% \subsection{Глава}
%
-% \subsubsection{Параметры формата записи в Содержании}
+% \subsubsection{Параметры формата записи в оглавлении}
%
% \DescribeMacro{\tocprethechapter}\index{Макросы!\verb*+\tocprethechapter+}
% \DescribeMacro{\tocpostthechapter}\index{Макросы!\verb*+\tocpostthechapter+}
@@ -59,8 +59,9 @@
% Пустое определение колонтитула главы.
% \begin{macrocode}
\newcommand*\chaptermark[1]{}
+
% \end{macrocode}
-% \DescribeMacro{\chapter}\index{Макросы!\verb*+\chapter+}
+% \DescribeMacro{\chapter}\index{Макросы!\verb*+"\chapter+}
% Интерфейс.
% \begin{macrocode}
\newcommand\chapter{%
@@ -140,7 +141,7 @@
% \end{macrocode}
%
% \DescribeMacro{\l@chapter}\index{Макросы!\verb+"\l"@chapter+}
-% Команда, создающая запись в Содержании.
+% Команда, создающая запись в оглавлении.
% \begin{macrocode}
\newcommand*\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
@@ -165,14 +166,16 @@
%
% \subsection{Приложение}
%
-% \subsubsection{Параметры формата записи в Содержании}
+% \subsubsection{Параметры формата записи в оглавлении}
% \DescribeMacro{\tocpretheappendix}\index{Макросы!\verb*+\tocpretheappendix+}
-% \DescribeMacro{\tocposttheappendix}\index{Макросы!\verb*+\tocposttheappendix+}
+% \DescribeMacro{\tocposttheappendix}
+% \index{Макросы!\verb*+\tocposttheappendix+}
% \DescribeMacro{\tocappendixfill}\index{Макросы!\verb*+\tocappendixfill+}
-%
% \DescribeMacro{\tocappendixfont}\index{Макросы!\verb*+\tocappendixfont+}
-% \DescribeMacro{\tocappendixfillfont}\index{Макросы!\verb*+\tocappendixfillfont+}
-% \DescribeMacro{\tocappendixnumfont}\index{Макросы!\verb*+\tocappendixnumfont+}
+% \DescribeMacro{\tocappendixfillfont}
+% \index{Макросы!\verb*+\tocappendixfillfont+}
+% \DescribeMacro{\tocappendixnumfont}
+% \index{Макросы!\verb*+\tocappendixnumfont+}
% \begin{macrocode}
\providecommand\tocpretheappendix{\protect\appendixname~}
\providecommand\tocposttheappendix{.\@postskip}
@@ -207,7 +210,7 @@
% \end{macrocode}
%
% \DescribeMacro{\appendix}\index{Макросы!\verb*+\appendix+}
-% Команда для создания глав Приложения. Сохранение и восстановление
+% Команда для создания глав приложений. Сохранение и восстановление
% значений параметров формата глав делаются для случая, когда
% приложения идут до списка литературы.
% \begin{macrocode}
diff --git a/Master/texmf-dist/source/latex/disser/counters.dtx b/Master/texmf-dist/source/latex/disser/counters.dtx
index 45f9fb514dd..3c87acd965d 100644
--- a/Master/texmf-dist/source/latex/disser/counters.dtx
+++ b/Master/texmf-dist/source/latex/disser/counters.dtx
@@ -10,7 +10,7 @@
%
% \subsection{Создание и настройка счетчиков}
%
-% Максимальный уровень вложенности секций, помещаемых в Содержание
+% Максимальный уровень вложенности секций, помещаемых в оглавление
% (по умолчанию вносятся |\part|, |\chapter| и |\section|).
% \DescribeMacro{tocdepth}\index{Счетчики!\verb*+tocdepth+}
% \begin{macrocode}
@@ -31,8 +31,6 @@
% \DescribeMacro{subsubsection}\index{Счетчики!\verb*+subsubsection+}
% \DescribeMacro{paragraph}\index{Счетчики!\verb*+paragraph+}
% \DescribeMacro{subparagraph}\index{Счетчики!\verb*+subparagraph+}
-% \DescribeMacro{figure}\index{Счетчики!\verb*+figure+}
-% \DescribeMacro{table}\index{Счетчики!\verb*+table+}
% \begin{macrocode}
\newcounter{part}
\newcounter{chapter}
@@ -41,6 +39,12 @@
\newcounter{subsubsection}[subsection]
\newcounter{paragraph}[subsubsection]
\newcounter{subparagraph}[paragraph]
+
+% \end{macrocode}
+%
+% \DescribeMacro{figure}\index{Счетчики!\verb*+figure+}
+% \DescribeMacro{table}\index{Счетчики!\verb*+table+}
+% \begin{macrocode}
\newcounter{figure}[chapter]
\newcounter{table}[chapter]
@@ -69,7 +73,7 @@
\renewcommand\thesubparagraph{\theparagraph.\@arabic\c@subparagraph}
% \end{macrocode}
-% Формат нумерации разделов документа в Содержании.
+% Формат нумерации разделов документа в оглавлении.
% \DescribeMacro{\tocthepart}\index{Макросы!\verb*+\tocthepart+}
% \DescribeMacro{\tocthechapter}\index{Макросы!\verb*+\tocthechapter+}
% \DescribeMacro{\toctheappendix}\index{Макросы!\verb*+\toctheappendix+}
diff --git a/Master/texmf-dist/source/latex/disser/custom.dtx b/Master/texmf-dist/source/latex/disser/custom.dtx
index 2d86b8f44e7..85e07e68f1c 100644
--- a/Master/texmf-dist/source/latex/disser/custom.dtx
+++ b/Master/texmf-dist/source/latex/disser/custom.dtx
@@ -25,7 +25,7 @@
% \end{macrocode}
% Реализация команд |\English| и |\Eng| без переключения кодировок шрифта.
% Это необходимо для корректного отображения символа переноса строки при
-% использовании пакетов |pscyr| и |cyrtimes|.
+% использовании пакетов \pkg{pscyr} и \pkg{cyrtimes}.
% \DescribeMacro{\English}\index{Макросы!\verb*+\English+}
% \DescribeMacro{\Eng}\index{Макросы!\verb*+\Eng+}
% \begin{macrocode}
@@ -64,8 +64,8 @@
\IfFileExists{pscyr.sty}{
% \end{macrocode}
% \DescribePackage{pscyr}\index{Пакеты!\verb*+pscyr+}
-% Установка Times как шрифта по умолчанию.
-% Выбор стандартного моноширинного шрифта.
+% Установка Times как шрифта по умолчанию, выбор стандартного моноширинного
+% шрифта.
% \begin{macrocode}
\usepackage{pscyr}
\renewcommand\rmdefault{ftm}
@@ -74,8 +74,8 @@
\IfFileExists{cyrtimes.sty}{
% \end{macrocode}
% \DescribePackage{cyrtimes}\index{Пакеты!\verb*+cyrtimes+}
-% Вместо |pscyr| может быть использован пакет |cyrtimes|, входящий в состав
-% дистрибутива \TeX Live.
+% Вместо \pkg{pscyr} может быть использован пакет \pkg{cyrtimes}, входящий в
+% состав дистрибутива \TeX Live.
% \begin{macrocode}
\usepackage{cyrtimes}
}{
@@ -118,10 +118,10 @@
% \subsubsection{Библиографические ссылки}
% \DescribePackage{natbib}\index{Пакеты!\verb*+natbib+}
% \begin{macrocode}
-\usepackage[square, comma, sort&compress, numbers]{natbib}
+\usepackage[square,comma,sort&compress,numbers]{natbib}
% \end{macrocode}
-% Переопределение для включения ссылки на список литературы в Содержание.
+% Переопределение |\bibsection| для включения ссылки на список литературы в оглавление.
% \DescribeMacro{\bibsection}\index{Макросы!\verb*+\bibsection+}
% \begin{macrocode}
\renewcommand\bibsection{\nchapter{\bibname}}
@@ -160,11 +160,12 @@
% \subsubsection{Плавающие объекты}
%
% \DescribePackage{wrapfig}\index{Пакеты!\verb*+wrapfig+}
-% Плавающие рисунки ``в оборку''.
+% Плавающие рисунки <<в оборку>>.
% \begin{macrocode}
\usepackage{wrapfig}
% \end{macrocode}
-% Пакет для вложенной нумерации плавающих объектов.
+% Пакеты \pkg{caption} и \pkg{subfig} для вложенной нумерации плавающих
+% объектов.
% \DescribePackage{caption}\index{Пакеты!\verb*+caption+}
% \DescribePackage{subfig}\index{Пакеты!\verb*+subfig+}
% \begin{macrocode}
@@ -191,7 +192,7 @@
% \end{macrocode}
% \DescribePackage{hyperref}\index{Пакеты!\verb*+hyperref+}
% \begin{macrocode}
- \usepackage[pdftex,unicode,hyperfigures=true]{hyperref}
+ \usepackage[pdftex,unicode]{hyperref}
\hypersetup{
colorlinks = false,
bookmarksopen = true,
@@ -213,7 +214,7 @@
% \end{macrocode}
% \DescribePackage{hyperref}\index{Пакеты!\verb*+hyperref+}
% \begin{macrocode}
- \usepackage[hypertex,colorlinks=false,hyperfigures=true]{hyperref}
+ \usepackage[hypertex,colorlinks=false]{hyperref}
\fi
% \end{macrocode}
% \DescribePackage{graphicx}\index{Пакеты!\verb*+graphicx+}
@@ -221,7 +222,7 @@
\usepackage{graphicx}
\fi
% \end{macrocode}
-% Пакеты для исправления ошибок |hyperref|.
+% Пакеты для исправления ошибок \pkg{hyperref}.
% \DescribePackage{hypernat}\index{Пакеты!\verb*+hypernat+}
% \DescribePackage{hypcap}\index{Пакеты!\verb*+hypcap+}
% \begin{macrocode}
@@ -232,7 +233,7 @@
% \end{macrocode}
% \DescribeMacro{\metaphantom}\index{Макросы!\verb*+\metaphantom+}
-% Команда, создающая цель для |hyperref| над заголовками ненумеруемых разделов.
+% Команда, создающая цель для гиперссылок над заголовками ненумеруемых разделов.
% \begin{macrocode}
\def\metaphantom#1{%
\ifDis@href
@@ -244,7 +245,7 @@
% \end{macrocode}
% Команды для создания ненумеруемых глав и секций, которые включаются в
-% Содержание и PDF-закладки.
+% оглавление и PDF-закладки.
% \DescribeMacro{\nchapter}\index{Макросы!\verb*+\nchapter+}
% \DescribeMacro{\nsection}\index{Макросы!\verb*+\nsection+}
% \DescribeMacro{\nsubsection}\index{Макросы!\verb*+\nsubsection+}
diff --git a/Master/texmf-dist/source/latex/disser/disser.dtx b/Master/texmf-dist/source/latex/disser/disser.dtx
index 6757a7688ff..50867c23199 100644
--- a/Master/texmf-dist/source/latex/disser/disser.dtx
+++ b/Master/texmf-dist/source/latex/disser/disser.dtx
@@ -19,7 +19,7 @@
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%<*driver>
-\ProvidesFile{disser.drv}[2009/06/11 1.1.2 Document class for dissertations]
+\ProvidesFile{disser.drv}[2009/11/05 1.1.3 Document class for dissertations]
\documentclass{ltxdoc}
\usepackage[a4paper, includeheadfoot, nohead, mag=1000,
@@ -32,7 +32,6 @@
\ifpdf
\usepackage[pdftex,hyperindex,unicode]{hyperref}
\usepackage{cmap}
- \usepackage{hypdestopt}
\else
\usepackage[hypertex]{hyperref}
\fi
@@ -69,6 +68,10 @@
\MakeShortVerb{\|}
+\def\file#1{\texttt{#1}}
+\def\pkg#1{\textsf{#1}}
+\def\cmd#1{\texttt{#1}}
+
\def\deflabel#1{\ttfamily #1\hfill}
\newenvironment{deflist}[1]{%
\begin{list}{}{%
@@ -80,12 +83,20 @@
\let\DescribePackage=\DescribeEnv
-\makeindex
-
-\setlength\hfuzz{20pt}
-\hbadness=10000
-
\makeatletter
+ \def\IndexParms{%
+ \parindent \z@
+ \columnsep 15pt
+ \parskip 0pt plus 1pt
+ \rightskip 15pt
+ \mathsurround \z@
+ \parfillskip=-15pt
+ \small
+ \def\@idxitem{\normalfont\par\hangindent 30pt\bfseries}%
+ \def\subitem{\normalfont\par\hangindent 30pt}%
+ \def\subsubitem{\normalfont\par\hangindent 30pt\hspace*{15pt}}%
+ \def\indexspace{\par\vspace{10pt plus 2pt minus 3pt}}%
+ }
\def\theindex{\@restonecoltrue\if@twocolumn\@restonecolfalse\fi
\columnseprule \z@ \columnsep 35\p@
\twocolumn[\index@prologue]%
@@ -93,6 +104,11 @@
\def\endtheindex{\if@restonecol\onecolumn\else\clearpage\fi}
\makeatother
+\setlength\hfuzz{20pt}
+\hbadness=10000
+
+\makeindex
+
\begin{document}
\sloppy
\PrintChanges
@@ -123,7 +139,7 @@
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% \title{|disser| "--- пакет для оформления диссертаций}
+% \title{\pkg{disser} "--- пакет для оформления диссертаций}
% \date{Версия \fileversion\\[6pt]\filedate}
% \author{Станислав Кручинин\\[6pt]
% \normalsize E-mail:
@@ -134,24 +150,26 @@
%
% \section*{Обзор документации}
%
-% Документация пакета |disser| состоит из следующих файлов:
-%
-% \begin{deflist}{README, README.ru}
-% \item[\href{file:manual.pdf}{manual.pdf}] Руководство пользователя.
-% \item[README, README.ru] Информация о сборке и установке пакета
-% (текстовые файлы).
-% \item[ChangeLog] История версий (текстовый файл).
+% Документация пакета состоит из следующих файлов:
+% \begin{deflist}{README, README.ru }
+% \item[\href{file:manual.pdf}{manual.pdf}]
+% Руководство пользователя.
+% \item[README, README.ru]
+% Информация о сборке и установке пакета.
+% \item[ChangeLog]
+% История версий.
% \end{deflist}
%
% Документированные исходные тексты:
-% \begin{deflist}{disser-bst.dtx}
-% \item[\href{file:disser.pdf}{disser.dtx}] Исходный текст класса |disser|
-% (данный файл).
+% \begin{deflist}{README, README.ru }
+% \item[\href{file:disser.pdf}{disser.dtx}]
+% Исходный текст класса \pkg{disser} (данный файл).
% \item[\href{file:gost732.pdf}{gost732.dtx}]
-% Исходный текст класса класса |gost732| для оформления документов в
+% Исходный текст класса \pkg{gost732} для оформления документов в
% соответствии с ГОСТ 7.32-2001.
-% \item[\href{file:disser-bst.pdf}{disser-bst.dtx}]
-% Исходный текст стилей библиографии |disser.bst| и |disser-s.bst|.
+% \item[\href{file:gost705.pdf}{gost705.dtx}]
+% Исходный текст стилей библиографии \pkg{gost705.bst} и
+% \pkg{gost705s.bst}.
% \end{deflist}
%
% \clearpage
@@ -163,7 +181,7 @@
%<*disser>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{disser}[2009/06/11 1.1.2 Document class for dissertations]
+\ProvidesClass{disser}[2009/11/05 1.1.3 Document class for dissertations]
% \end{macrocode}
% Расширение файлов, включаемых в |disser.cls|.
@@ -173,7 +191,7 @@
% \end{macrocode}
% Определение операторов условного выполнения.
% \begin{itemize}
-% \item подключение пакета, определяющего |\ifpdf|.
+% \item подключение пакета \pkg{ifpdf}, определяющего команду |\ifpdf|.
% \DescribePackage{ifpdf}\index{Пакеты!\verb*+ifpdf+}
% \begin{macrocode}
\RequirePackage{ifpdf}
@@ -207,15 +225,16 @@
% \begin{macrocode}
\newif\ifDis@facsimile\Dis@facsimilefalse
% \end{macrocode}
-% \item Подключение пакетов |amsmath|, |amsfonts|, |amssymb| (включено).
+% \item Подключение пакетов \pkg{amsmath}, \pkg{amsfonts}, \pkg{amssymb}
+% (включено).
% \begin{macrocode}
\newif\ifDis@ams\Dis@amstrue
% \end{macrocode}
-% \item Подключение |hyperref| (отключено).
+% \item Подключение \pkg{hyperref} (отключено).
% \begin{macrocode}
\newif\ifDis@href\Dis@hreffalse
% \end{macrocode}
-% \item Подключение |subfig| (отключено).
+% \item Подключение \pkg{subfig} (отключено).
% \begin{macrocode}
\newif\ifDis@subf\Dis@subffalse
% \end{macrocode}
@@ -232,17 +251,18 @@
%
% \subsection{Опции класса}
%
-% Подключение пакета |kvoptions| для обработки опций в формате
-% |ключ = значение|.
+% Подключение пакета \pkg{kvoptions} для обработки опций в формате
+% <<ключ = значение>>.
+% \DescribePackage{kvoptions}\index{Пакеты!\verb*+kvoptions+}
% \begin{macrocode}
\RequirePackage{kvoptions}[2006/08/17]
% \end{macrocode}
-% Подключение пакета |hyperref| и необходимых настроек.
+% Подключение пакета \pkg{hyperref} и необходимых настроек.
% \begin{macrocode}
\DeclareOption{href}{\Dis@hreftrue}
% \end{macrocode}
-% Подключение пакета |subfig| и необходимых настроек.
+% Подключение пакета \pkg{subfig} и необходимых настроек.
% \begin{macrocode}
\DeclareOption{subf}{\Dis@subftrue}
% \end{macrocode}
@@ -254,7 +274,7 @@
% \begin{macrocode}
\DeclareOption{facsimile}{\Dis@facsimiletrue}
% \end{macrocode}
-% Не подключать пакеты |amsmath|, |amsfonts|, |amssymb|.
+% Не подключать пакеты \pkg{amsmath}, \pkg{amsfonts}, \pkg{amssymb}.
% \begin{macrocode}
\DeclareOption{noams}{\Dis@amsfalse}
diff --git a/Master/texmf-dist/source/latex/disser/disser.ins b/Master/texmf-dist/source/latex/disser/disser.ins
index 9be2772c2db..069565b51ae 100644
--- a/Master/texmf-dist/source/latex/disser/disser.ins
+++ b/Master/texmf-dist/source/latex/disser/disser.ins
@@ -51,8 +51,8 @@ This file is part of the disser package.
\rtxfile{autoref}
\clsfile{gost732}
\nopostamble
- \file{disser.bst}{\from{disser-bst.dtx}{disser-bst}}
- \file{disser-s.bst}{\from{disser-bst.dtx}{disser-s-bst}}
+ \file{gost705.bst}{\from{gost705.dtx}{gost705}}
+ \file{gost705s.bst}{\from{gost705.dtx}{gost705s}}
}
%\def\npostamble{}\usepostamble\npostamble
\endbatchfile
diff --git a/Master/texmf-dist/source/latex/disser/disser-bst.dtx b/Master/texmf-dist/source/latex/disser/gost705.dtx
index 7e504c7d62d..a10b81cd27f 100644
--- a/Master/texmf-dist/source/latex/disser/disser-bst.dtx
+++ b/Master/texmf-dist/source/latex/disser/gost705.dtx
@@ -22,11 +22,11 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%<*driver>
-\ProvidesFile{disser-bst.drv}[2009/06/19 1.1.2 Bibliography style for dissertations.]
+\ProvidesFile{gost705.drv}[2009/10/27 1.1.3 Bibliography style for dissertations.]
\documentclass{ltxdoc}
-\usepackage[a4paper, includeheadfoot, nohead, mag=1000,
- left=5cm, right=1cm, top=1.5cm, bottom=1.5cm]{geometry}
+\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
@@ -34,7 +34,7 @@
pdftex,
colorlinks,
plainpages=false,
- pdftitle = {User manual for disser},
+ pdftitle = {Documented source code of the disser package},
pdfauthor = {Stanislav Kruchinin},
pdfsubject = {disser},
pdfstartview = {FitH},
@@ -72,22 +72,27 @@
\MakeShortVerb{\|}
+\def\file#1{\texttt{#1}}
+\def\pkg#1{\textsf{#1}}
+\def\cmd#1{\texttt{#1}}
+
\setlength\hfuzz{20pt}
\hbadness=10000
-\GetFileInfo{disser-bst.drv}
+\GetFileInfo{gost705.drv}
\begin{document}
\sloppy
\PrintChanges
- \DocInput{disser-bst.dtx}
+ \DocInput{gost705.dtx}
\end{document}
%</driver>
% \fi
-% \GetFileInfo{disser-bst.drv}
+% \GetFileInfo{gost705.drv}
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% \title{Стили библиографии: \texttt{disser} и \texttt{disser-s}}
+% \title{\pkg{gost705} и \pkg{gost705s} "--- стили оформления библиографии
+% в соответствии с ГОСТ Р 7.0.5-2008}
% \date{Версия \fileversion\\[6pt]\filedate}
% \author{Станислав Кручинин\\[6pt]
% \normalsize E-mail:
@@ -96,13 +101,15 @@
%
% \maketitle
%
+% \tableofcontents
+%
% \section{Исходный текст}\parindent=0pt
% \begin{macrocode}
-%<*disser-bst|disser-s-bst>
+%<*gost705|gost705s>
% \end{macrocode}
-% Список полей, используемых в bib-файлах.
+% \subsection{Поля, используемые в bib-файлах}
% \begin{macrocode}
ENTRY
{ address
@@ -134,19 +141,17 @@ ENTRY
language
booklanguage
url
+ urldate
}
{}
{ label }
% \end{macrocode}
-% Список глобальных целочисленных переменных.
+% \subsection{Объявление и инициализация переменных и констант}
% \begin{macrocode}
INTEGERS { output.state before.all mid.sentence after.sentence after.block
after.dblslash after.slash after.column after.semicolumn }
-% \end{macrocode}
-% Инициализация переменных.
-% \begin{macrocode}
FUNCTION {init.state.consts}
{ #0 'before.all :=
#1 'mid.sentence :=
@@ -158,21 +163,17 @@ FUNCTION {init.state.consts}
#7 'after.semicolumn :=
}
-% \end{macrocode}
-% Глобальные строковые переменные.
-% \begin{macrocode}
STRINGS { s t }
STRINGS { curlanguage }
% \end{macrocode}
-% Изменение текущего языка.
+% \subsection{Переключение языка}
% \begin{macrocode}
FUNCTION {change.language}
{ booklanguage empty$
- {""}
- {
- booklanguage 'curlanguage :=
+ { "" }
+ { booklanguage 'curlanguage :=
"\selectlanguageifdefined{"
curlanguage *
"}" *
@@ -181,34 +182,32 @@ FUNCTION {change.language}
}
% \end{macrocode}
-% Базовая функция вывода библиографической записи.
+% \subsection{Вывод библиографической записи}
% \begin{macrocode}
FUNCTION {output.nonnull}
-%%%{ 's :=
{ swap$
output.state mid.sentence =
{ ", " * write$ }
{ output.state after.block =
- { add.period$ write$
- " " quote$ "--- " * * write$
+ { add.period$ " " * write$
newline$
"\newblock " write$
}
{ output.state before.all =
- 'write$
+ 'write$
{ output.state after.dblslash =
{ "~//" * change.language * " " * write$ }
{ output.state after.slash =
{ "~/ " * write$ }
{ output.state after.column =
- { ": " * write$ }
- { output.state after.semicolumn =
- { "; " * write$ }
- { add.period$ " " * write$ }
- if$
+ { ": " * write$ }
+ { output.state after.semicolumn =
+ { "; " * write$ }
+ { add.period$ " " * write$ }
+ if$
+ }
+ if$
}
- if$
- }
if$
}
if$
@@ -219,12 +218,8 @@ FUNCTION {output.nonnull}
mid.sentence 'output.state :=
}
if$
-%%% s
}
-% \end{macrocode}
-% Обертки для |output.nonnull|.
-% \begin{macrocode}
FUNCTION {output}
{ duplicate$ empty$
'pop$
@@ -240,6 +235,9 @@ FUNCTION {output.check}
if$
}
+% \end{macrocode}
+% \subsection{Вывод блоков и ограничителей}
+% \begin{macrocode}
FUNCTION {fin.entry}
{ add.period$
write$
@@ -293,12 +291,8 @@ FUNCTION {new.sentence}
}
FUNCTION {add.blank}
-{ " " * before.all 'output.state :=
-}
+{ " " * before.all 'output.state := }
-% \end{macrocode}
-% Логические операторы.
-% \begin{macrocode}
FUNCTION {not}
{ { #0 }
{ #1 }
@@ -319,8 +313,8 @@ FUNCTION {or}
FUNCTION {non.stop}
{ duplicate$
- "}" * add.period$
- #-1 #1 substring$ "." =
+ "}" * add.period$
+ #-1 #1 substring$ "." =
}
FUNCTION {new.block.checka}
@@ -373,255 +367,277 @@ FUNCTION {space.word}
{ " " swap$ * " " * }
% \end{macrocode}
-% Сокращения.
+% \subsection{Общепринятые сокращения}
% \begin{macrocode}
FUNCTION {bbl.edby} % { "\bbledby{}" }
{
curlanguage "english" =
- {"Ed. by "}
+ { "Ed. by " }
{ curlanguage "russian" =
- {"{\cyr\CYRP\cyro\cyrd\ \cyrr\cyre\cyrd.\ }"}
- {"language is not defined: " language "edited by" * * warning$ "edited by"}
- if$}
+ { "{\cyr\CYRP\cyro\cyrd\ \cyrr\cyre\cyrd.\ }" }
+ { "language is not defined: " language "edited by" * * warning$ "edited by" }
+ if$
+ }
if$
}
FUNCTION {bbl.cmplr}
{
curlanguage "english" =
- {"Compiler "}
+ { "Compiler " }
{ curlanguage "russian" =
- {"{\cyr\CYRS\cyro\cyrs\cyrt.\ }"}
- {"language is not defined: " language "compiler" * * warning$ "compiler"}
- if$}
+ { "{\cyr\CYRS\cyro\cyrs\cyrt.\ }" }
+ { "language is not defined: " language "compiler" * * warning$ "compiler" }
+ if$
+ }
if$
}
FUNCTION {bbl.edition} % { "\bbledition{}" }
{
curlanguage "english" =
- {"edition"}
+ { "edition" }
{ curlanguage "russian" =
{"{\cyr\cyri\cyrz\cyrd.}"}
{"language is not defined: " language "edition" * * warning$ "edition"}
- if$}
+ if$
+ }
if$
}
FUNCTION {bbl.vvolume} % { "\bblVolume{}" }
{
curlanguage "english" =
- {"Volume"}
- { curlanguage "russian" =
+ { "Volume" }
+ { curlanguage "russian" =
{"\CYRT\cyro\cyrm"}
{"language is not defined: " language "Volume" * * warning$ "Volume"}
- if$}
+ if$
+ }
if$
}
FUNCTION {bbl.vvol} % { "\bblVol{}" }
{
curlanguage "english" =
- {"Vol."}
+ { "Vol." }
{ curlanguage "russian" =
- {"\CYRT."}
- {"language is not defined: " language "Vol." * * warning$ "Vol."}
- if$}
+ { "\CYRT." }
+ { "language is not defined: " language "Vol." * * warning$ "Vol." }
+ if$
+ }
if$
}
FUNCTION {bbl.iissue} % { "\bblIssue{}" }
{
curlanguage "english" =
- {"Issue"}
+ { "Issue" }
{ curlanguage "russian" =
- {"\CYRV\cyrery\cyrp\cyru\cyrs\cyrk"}
- {"language is not defined: " language * warning$ "Issue"}
- if$}
+ {"\CYRV\cyrery\cyrp\cyru\cyrs\cyrk"}
+ {"language is not defined: " language * warning$ "Issue"}
+ if$
+ }
if$
}
FUNCTION {bbl.iiss} % { "\bblIss{}" }
{
curlanguage "english" =
- {"Iss."}
+ {"Iss."}
{ curlanguage "russian" =
- {"\CYRV\cyrery\cyrp."}
- {"language is not defined: " language * warning$ "Issue"}
- if$}
+ {"\CYRV\cyrery\cyrp."}
+ {"language is not defined: " language * warning$ "Issue"}
+ if$
+ }
if$
}
FUNCTION {bbl.of} % { "\bblof{}" }
{
curlanguage "english" =
- {"of"}
+ {"of"}
{ curlanguage "russian" =
- {"{\cyr\cyri\cyrz}"}
- {"language is not defined: " language "of" * * warning$ "of"}
- if$}
+ {"{\cyr\cyri\cyrz}"}
+ {"language is not defined: " language "of" * * warning$ "of"}
+ if$
+ }
if$
}
FUNCTION {bbl.etal} % { "\bblof{}" }
{
curlanguage "english" =
- {"et~al."}
+ { "et~al." }
{ curlanguage "russian" =
- {"{\cyr\cyri~\cyrd\cyrr.}"}
- {"language is not defined: " language "at al" * * warning$ "at al."}
- if$}
+ { "{\cyr\cyri~\cyrd\cyrr.}" }
+ { "language is not defined: " language "at al" * * warning$ "at al." }
+ if$
+ }
if$
}
FUNCTION {bbl.nnumber} % { "\bblNumber{}" }
{
curlanguage "english" =
- {"Number"}
+ { "Number" }
{ curlanguage "russian" =
- {"\CYRN\cyro\cyrm\cyre\cyrr"}
- {"language is not defined: " language "Number" * * warning$ "Number"}
- if$}
+ { "\CYRN\cyro\cyrm\cyre\cyrr"}
+ { "language is not defined: " language "Number" * * warning$ "Number" }
+ if$
+ }
if$
}
FUNCTION {bbl.number} % { "\bblnumber{}" }
{
curlanguage "english" =
- {"number"}
+ { "number" }
{ curlanguage "russian" =
- {"{\cyr\cyrn\cyro\cyrm\cyre\cyrr}"}
- {"language is not defined: " language "number" * * warning$ "number"}
- if$}
+ { "{\cyr\cyrn\cyro\cyrm\cyre\cyrr}"}
+ { "language is not defined: " language "number" * * warning$ "number" }
+ if$
+ }
if$
}
FUNCTION {bbl.nr} % { "\bblno{}" }
{
curlanguage "english" =
- {"no."}
+ { "no." }
{ curlanguage "russian" =
- {"{\cyr\textnumero}"}
- {"language is not defined: " language "no." * * warning$ "no."}
- if$}
+ { "{\cyr\textnumero}" }
+ { "language is not defined: " language "no." * * warning$ "no." }
+ if$
+ }
if$
}
FUNCTION {bbl.nnr} % { "\bblno{}" }
{
curlanguage "english" =
- {"No."}
+ { "No." }
{ curlanguage "russian" =
- {"{\cyr\textnumero}"}
- {"language is not defined: " language "No." * * warning$ "No."}
- if$}
+ { "{\cyr\textnumero}" }
+ { "language is not defined: " language "No." * * warning$ "No." }
+ if$
+ }
if$
}
FUNCTION {bbl.in} % { "\bblin{}" }
{
curlanguage "english" =
- {"in"}
+ { "in" }
{ curlanguage "russian" =
- {"{\cyr\cyrv}"}
- {"language is not defined: " language "in" * * warning$ "in"}
- if$}
+ { "{\cyr\cyrv}" }
+ { "language is not defined: " language "in" * * warning$ "in" }
+ if$
+ }
if$
}
FUNCTION {bbl.iin} % { "\bblIn{}" }
{
curlanguage "english" =
- {"In"}
+ { "In" }
{ curlanguage "russian" =
- {"\CYRV"}
- {"language is not defined: " language "In" * * warning$ "In"}
- if$}
+ { "\CYRV" }
+ { "language is not defined: " language "In" * * warning$ "In" }
+ if$
+ }
if$
}
FUNCTION {bbl.pages} % { "\bblpp." }
{
curlanguage "english" =
- {"pp."}
+ { "pp." }
{ curlanguage "russian" =
- {"{\cyr\cyrs.}"}
- {"language is not defined: " language "pp." * * warning$ "pp."}
- if$}
+ { "{\cyr\cyrs.}" }
+ { "language is not defined: " language "pp." * * warning$ "pp." }
+ if$
+ }
if$
}
FUNCTION {bbl.page} % { "\bblp." }
{
curlanguage "english" =
- {"p."}
+ {"p."}
{ curlanguage "russian" =
- {"{\cyr\cyrs.}"}
- {"language is not defined: " language "p." * * warning$ "p."}
- if$}
+ { "{\cyr\cyrs.}"}
+ { "language is not defined: " language "p." * * warning$ "p." }
+ if$
+ }
if$
}
FUNCTION {bbl.ppages} % { "\bblPp." }
{
curlanguage "english" =
- {"Pp."}
+ { "Pp." }
{ curlanguage "russian" =
- {"{\cyr\CYRS.}"}
- {"language is not defined: " language "Pp." * * warning$ "Pp."}
- if$}
+ { "{\cyr\CYRS.}" }
+ { "language is not defined: " language "Pp." * * warning$ "Pp." }
+ if$
+ }
if$
}
FUNCTION {bbl.ppage} % { "\bblP." }
{
curlanguage "english" =
- {"P."}
+ { "P." }
{ curlanguage "russian" =
- {"{\cyr\CYRS.}"}
- {"language is not defined: " language "P." * * warning$ "P."}
- if$}
+ { "{\cyr\CYRS.}" }
+ { "language is not defined: " language "P." * * warning$ "P." }
+ if$
+ }
if$
}
FUNCTION {bbl.techrep}
{
curlanguage "english" =
- {"Tech. Rep."}
+ { "Tech. Rep." }
{ curlanguage "russian" =
- {"{\cyr\CYRT\cyre\cyrh. \cyrd\cyro\cyrk\cyrl\cyra\cyrd.}"}
- {"language is not defined: " language "Tech. Rep." * * warning$ "P."}
- if$}
+ { "{\cyr\CYRT\cyre\cyrh.\ \cyrd\cyro\cyrk\cyrl\cyra\cyrd.}" }
+ { "language is not defined: " language "Tech. Rep." * * warning$ "P." }
+ if$
+ }
if$
}
FUNCTION {bbl.mthesis}
{
curlanguage "english" =
- {"Master's thesis"}
+ { "Master's thesis" }
{ curlanguage "russian" =
- {"{\cyr\CYRM\cyra\cyrg\cyri\cyrs\cyrt\cyre\cyrr\cyrs\cyrk\cyra\cyrya\ \cyrd\cyri\cyrs\cyrs\cyre\cyrr\cyrt\cyra\cyrc\cyri\cyrya}"}
- {"language is not defined: " language "Master's thesis" * * warning$ "P."}
- if$}
+ { "{\cyr\CYRM\cyra\cyrg\cyri\cyrs\cyrt\cyre\cyrr\cyrs\cyrk\cyra\cyrya\ \cyrd\cyri\cyrs\cyrs\cyre\cyrr\cyrt\cyra\cyrc\cyri\cyrya}" }
+ { "language is not defined: " language "Master's thesis" * * warning$ "P." }
+ if$
+ }
if$
}
FUNCTION {bbl.phdthesis}
{
curlanguage "english" =
- {"Ph.D. thesis"}
+ { "Ph.D. thesis" }
{ curlanguage "russian" =
- {"{\cyr\CYRK\cyra\cyrn\cyrd\cyri\cyrd\cyra\cyrt\cyrs\cyrk\cyra\cyrya \cyrd\cyri\cyrs\cyrs\cyre\cyrr\cyrt\cyra\cyrc\cyri\cyrya}"}
- {"language is not defined: " language "Ph.D. thesis" * * warning$ "P."}
- if$}
+ { "{\cyr\CYRK\cyra\cyrn\cyrd\cyri\cyrd\cyra\cyrt\cyrs\cyrk\cyra\cyrya\ \cyrd\cyri\cyrs\cyrs\cyre\cyrr\cyrt\cyra\cyrc\cyri\cyrya}" }
+ { "language is not defined: " language "Ph.D. thesis" * * warning$ "P." }
+ if$
+ }
if$
}
-% \end{macrocode}
-% Глобальные целочисленные переменные.
-% \begin{macrocode}
INTEGERS { nameptr namesleft numnames }
+% \end{macrocode}
+% \subsection{Формат элементов библиографических ссылок}
+% \begin{macrocode}
FUNCTION {format.names}
{ 's :=
#1 'nameptr :=
@@ -629,7 +645,7 @@ FUNCTION {format.names}
numnames 'namesleft :=
{ namesleft #0 > }
{ s nameptr
- "{ff~}{vv~}{ll}{, jj}" format.name$ 't :=
+ "{vv~}{ll}{~f.}{, jj}" format.name$ 't :=
nameptr #1 >
{
nameptr #4 =
@@ -761,19 +777,17 @@ FUNCTION {format.date}
}
FUNCTION {output.address.publisher.date}
-{
- address empty$
+{ address empty$
'skip$
{ address output
publisher empty$
'skip$
- { new.column
- }
+ { new.column }
if$
}
- if$
- publisher output
- format.date output
+ if$
+ publisher output
+ format.date output
}
FUNCTION {output.bibitem}
@@ -787,8 +801,8 @@ FUNCTION {output.bibitem}
"}" write$
newline$
language empty$
- {"english" 'curlanguage :=}
- {language 'curlanguage :=}
+ { "english" 'curlanguage := }
+ { language 'curlanguage := }
if$
"\selectlanguageifdefined{" write$
curlanguage write$
@@ -868,13 +882,13 @@ FUNCTION {format.number.series}
{ series field.or.null }
{ series empty$
{ "there's a number but no series in " cite$ * warning$
- bbl.nnr }
- {
- %new.dblslash
- new.sentence
+ bbl.nnr
+ }
+ { new.sentence
series
bbl.nr
- tie.or.space.connect}
+ tie.or.space.connect
+ }
if$
number tie.or.space.connect
}
@@ -893,14 +907,14 @@ FUNCTION {is.num}
FUNCTION {extract.num}
{ duplicate$ 't :=
"" 's :=
- { t empty$ not }
- { t #1 #1 substring$
- t #2 global.max$ substring$ 't :=
- duplicate$ is.num
- { s swap$ * 's := }
- { pop$ "" 't := }
- if$
- }
+ { t empty$ not }
+ { t #1 #1 substring$
+ t #2 global.max$ substring$ 't :=
+ duplicate$ is.num
+ { s swap$ * 's := }
+ { pop$ "" 't := }
+ if$
+ }
while$
s empty$
'skip$
@@ -958,10 +972,11 @@ FUNCTION {format.pages}
FUNCTION {format.pages.page}
{ pages empty$
{ numpages empty$
- { "" }
- { numpages bbl.pages tie.connect }
- if$}
- { format.pages}
+ { "" }
+ { numpages bbl.pages tie.connect }
+ if$
+ }
+ { format.pages }
if$
}
@@ -1032,69 +1047,68 @@ FUNCTION {format.tr.number}
}
FUNCTION {author.before}
-{
- author empty$
+{ author empty$
'skip$
- {
- format.authors output
- new.sentence
- }
+ {
+ format.authors output
+ new.sentence
+ }
if$
}
FUNCTION {bookauthor.before}
-{
- bookauthor empty$
+{ bookauthor empty$
'skip$
- {
- format.bookauthors output
- new.sentence
- }
+ {
+ format.bookauthors output
+ new.sentence
+ }
if$
}
FUNCTION {author.after}
-{
- author empty$
+{ author empty$
'skip$
- {author num.names$ #3 >
- {format.authors.after output
- new.semicolumn }
+ { author num.names$ #3 >
+ { format.authors.after output
+ new.semicolumn
+ }
'skip$
- if$}
+ if$
+ }
if$
}
FUNCTION {bookauthor.after}
-{
- bookauthor empty$
+{ bookauthor empty$
'skip$
- {bookauthor num.names$ #3 >
- {format.bookauthors.after output
- new.semicolumn }
+ { bookauthor num.names$ #3 >
+ { format.bookauthors.after output
+ new.semicolumn
+ }
'skip$
- if$}
+ if$
+ }
if$
}
FUNCTION {editor.organization.after}
-{
- compiler empty$
- {}
- { format.compiler.after output
- new.semicolumn
+{ compiler empty$
+ 'skip$
+ { format.compiler.after output
+ new.semicolumn
}
if$
editor empty$
- {}
- { format.editors.after output
- new.semicolumn
+ 'skip$
+ { format.editors.after output
+ new.semicolumn
}
if$
organization empty$
- {}
- {organization output
- new.semicolumn
+ 'skip$
+ { organization output
+ new.semicolumn
}
if$
}
@@ -1102,8 +1116,24 @@ FUNCTION {editor.organization.after}
FUNCTION {format.url}
{ url empty$
{ "" }
- { after.sentence 'output.state :=
- "\BibUrl{ " url * "}" *
+ { "\BibUrl{" url * "}" * }
+ if$
+}
+
+FUNCTION {format.urldate}
+{ urldate empty$
+ { "" }
+ { add.blank
+ "\BibUrlDate{" urldate * "}" *
+ }
+ if$
+}
+
+FUNCTION {output.url}
+{ url empty$
+ 'skip$
+ { format.url output
+ format.urldate output
}
if$
}
@@ -1111,12 +1141,15 @@ FUNCTION {format.url}
FUNCTION {format.annote}
{ annote empty$
{ "" }
-{ after.sentence 'output.state :=
- "\BibAnnote{" annote add.period$ * "}" *
-}
+ { after.sentence 'output.state :=
+ "\BibAnnote{" annote add.period$ * "}" *
+ }
if$
}
+% \end{macrocode}
+% \subsection{Описание типов библиографических ссылок}
+% \begin{macrocode}
FUNCTION {article}
{ output.bibitem
author.before
@@ -1133,7 +1166,7 @@ FUNCTION {article}
new.block
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1156,7 +1189,7 @@ FUNCTION {book}
new.block
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1173,7 +1206,7 @@ FUNCTION {booklet}
new.block
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1199,7 +1232,7 @@ FUNCTION {inbook}
new.block
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1222,8 +1255,9 @@ FUNCTION {incollection}
format.pages.page output
new.block
note output
- new.sentence
- format.url output
+ new.block
+ output.url
+ new.block
format.annote output
fin.entry
}
@@ -1256,7 +1290,7 @@ FUNCTION {inproceedings}
new.block
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1279,8 +1313,7 @@ FUNCTION {manual}
format.btitle "title" output.check
author empty$
{ organization empty$
- {
- address new.block.checka
+ { address new.block.checka
address output
}
'skip$
@@ -1297,7 +1330,7 @@ FUNCTION {manual}
new.block
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1315,24 +1348,24 @@ FUNCTION {mastersthesis}
new.block
note output
new.block
- format.url output
+ output.url
format.annote output
fin.entry
}
FUNCTION {misc}
{ output.bibitem
- format.authors output
- title howpublished new.sentence.checkb
- format.title output
- howpublished new.block.checka
+ format.authors "author" output.check
+ new.block
+ format.title "title" output.check
+ new.block
howpublished output
new.block
format.date output
new.block
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1352,7 +1385,7 @@ FUNCTION {phdthesis}
format.pages.page output
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1378,7 +1411,7 @@ FUNCTION {proceedings}
new.block
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1399,7 +1432,7 @@ FUNCTION {techreport}
new.block
note output
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
@@ -1412,13 +1445,16 @@ FUNCTION {unpublished}
new.block
note "note" output.check
new.sentence
- format.url output
+ output.url
format.annote output
fin.entry
}
FUNCTION {default.type} { misc }
+% \end{macrocode}
+% \subsection{Сокращения названий месяцев и журналов}
+% \begin{macrocode}
MACRO {jan} {"\bbljan{}"}
MACRO {feb} {"\bblfeb{}"}
@@ -1486,8 +1522,10 @@ MACRO {tcs} {"Theoretical Computer Science"}
READ
-%<*disser-s-bst>
-
+% \end{macrocode}
+% \subsection{Функции для сортировки списка литературы по именам авторов и названиям}
+% \begin{macrocode}
+%<*gost705s>
FUNCTION {sortify}
{ purify$
"l" change.case$
@@ -1549,10 +1587,7 @@ FUNCTION {author.sort}
if$
}
{
- author num.names$ #4 <
- {author sort.format.names }
- {title sort.format.title}
- if$
+ author sort.format.names}
}
if$
}
@@ -1560,26 +1595,22 @@ FUNCTION {author.sort}
FUNCTION {author.title.sort}
{ author empty$
{ title empty$
- { key empty$
- { "to sort, need author, title, or key in " cite$ * warning$
- ""
- }
- { key sortify }
- if$
+ { key empty$
+ { "to sort, need author, title, or key in " cite$ * warning$
+ ""
}
- { title sort.format.title }
+ { key sortify }
if$
+ }
+ { title sort.format.title }
+ if$
}
{
- author num.names$ #4 <
- {author sort.format.names }
- {title sort.format.title}
- if$
- }
+ author sort.format.names
+ }
if$
}
-
FUNCTION {presort}
{
author.title.sort
@@ -1600,8 +1631,11 @@ ITERATE {presort}
SORT
-%</disser-s-bst>
+%</gost705s>
+% \end{macrocode}
+% \subsection{Вычисление длины табуляции между номером и текстом}
+% \begin{macrocode}
STRINGS { longest.label }
INTEGERS { number.label longest.label.width }
@@ -1627,30 +1661,59 @@ EXECUTE {initialize.longest.label}
ITERATE {longest.label.pass}
+% \end{macrocode}
+% \subsection{Формирование окружения thebibliography}
+% \subsubsection{Преамбула}
+% \begin{macrocode}
FUNCTION {begin.bib}
-{
- "\ifx\undefined\BibPrefix\def\BibPrefix{}\else\fi" write$ newline$
- "\ifx\undefined\BibPostfix\def\BibPostfix{}\else\fi" write$ newline$
- "\begin{thebibliography}{\BibPrefix" longest.label * "\BibPostfix}" * write$ newline$
- "\def\selectlanguageifdefined#1{" write$ newline$
- "\expandafter\ifx\csname date#1\endcsname\relax" write$ newline$
- "\else\language\csname l@#1\endcsname\fi}" write$ newline$
- "\ifx\undefined\url\def\url#1{{\small #1}}\else\fi" write$ newline$
- "\ifx\undefined\BibUrl\def\BibUrl#1{\url{#1}}\else\fi" write$ newline$
- "\ifx\undefined\BibAnnote\long\def\BibAnnote#1{}\else\fi" write$ newline$
- "\ifx\undefined\BibEmph\def\BibEmph#1{\emph{#1}}\else\fi" write$ newline$
- preamble$ empty$
+{ preamble$ empty$
'skip$
{ preamble$ write$ newline$ }
if$
+ "\makeatletter\renewcommand{\@biblabel}[1]{#1.}\makeatother"
+ write$ newline$
+ "\ifx\undefined\BibPrefix\def\BibPrefix{}\else\fi"
+ write$ newline$
+ "\ifx\undefined\BibPostfix\def\BibPostfix{}\else\fi"
+ write$ newline$
+ "\ifx\undefined\BibEmph\def\BibEmph#1{#1}\else\fi"
+ write$ newline$
+ "\ifx\undefined\url\def\url#1{\texttt{#1}}\else\fi"
+ write$ newline$
+ "\ifx\undefined\urlprefix\def\urlprefix{URL: }\else\fi"
+ write$ newline$
+ "\ifx\undefined\BibUrl\def\BibUrl#1{\urlprefix\url{#1}}\else\fi"
+ write$ newline$
+ "\ifx\undefined\BibUrlDate\long\def\BibUrlDate#1{({%"
+ write$ newline$
+ "\cyr\cyrd\cyra\cyrt\cyra\ %"
+ write$ newline$
+ "\cyro\cyrb\cyrr\cyra\cyrshch\cyre\cyrn\cyri\cyrya}: #1)}\else\fi"
+ write$ newline$
+ "\ifx\undefined\BibAnnote\long\def\BibAnnote#1{#1}\else\fi"
+ write$ newline$
+ "\begin{thebibliography}{\BibPrefix" longest.label * "\BibPostfix}" *
+ write$ newline$
+ "\def\selectlanguageifdefined#1{"
+ write$ newline$
+ "\expandafter\ifx\csname date#1\endcsname\relax"
+ write$ newline$
+ "\else\language\csname l@#1\endcsname\fi}"
+ write$ newline$
}
+% \end{macrocode}
+% \subsubsection{Начало}
+% \begin{macrocode}
EXECUTE {begin.bib}
EXECUTE {init.state.consts}
ITERATE {call.type$}
+% \end{macrocode}
+% \subsubsection{Конец}
+% \begin{macrocode}
FUNCTION {end.bib}
{ newline$
"\end{thebibliography}" write$ newline$
@@ -1658,5 +1721,5 @@ FUNCTION {end.bib}
EXECUTE {end.bib}
-%</disser-bst|disser-s-bst>
+%</gost705|gost705s>
% \end{macrocode}
diff --git a/Master/texmf-dist/source/latex/disser/gost732.dtx b/Master/texmf-dist/source/latex/disser/gost732.dtx
index 9f69893c5b4..9fbb5e3c2f8 100644
--- a/Master/texmf-dist/source/latex/disser/gost732.dtx
+++ b/Master/texmf-dist/source/latex/disser/gost732.dtx
@@ -20,7 +20,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%<*driver>
-\ProvidesFile{gost732.drv}[2009/06/19 1.1.2 GOST 7.32-2001 implementation]
+\ProvidesFile{gost732.drv}[2009/11/05 1.1.3 GOST 7.32-2001 implementation]
\documentclass{ltxdoc}
\usepackage[a4paper, includeheadfoot, nohead, mag=1000,
@@ -69,6 +69,10 @@
\MakeShortVerb{\|}
+\def\file#1{\texttt{#1}}
+\def\pkg#1{\textsf{#1}}
+\def\cmd#1{\texttt{#1}}
+
\setlength\hfuzz{20pt}
\hbadness=10000
@@ -82,7 +86,7 @@
%
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
-% \title{\texttt{gost732} --- класс для оформления документов в соответствии
+% \title{\pkg{gost732} --- класс для оформления документов в соответствии
% с ГОСТ 7.32-2001}
% \date{Версия \fileversion\\[6pt]\filedate}
% \author{Станислав Кручинин\\[6pt]
@@ -101,7 +105,7 @@
% Диссертационные советы, как правило, не предъявляют каких-либо требований
% к форматированию, за исключением тех, что реализованы в классе |disser|.
% Однако, если возникнет вопрос о соответствии верстки диссертации каким-либо
-% ГОСТам, то следует воспользоваться наиболее подходящим среди существующих
+% ГОСТам, то следует воспользоваться наиболее подходящим среди существующих
% стандартов --- ГОСТ~7.32-2001 <<Отчет о научно-исследовательской работе>>,
% который реализован в данном классе.
%
@@ -109,7 +113,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
-\ProvidesClass{gost732}[2009/06/19 1.1.2 GOST 7.32-2001 implementation]
+\ProvidesClass{gost732}[2009/11/05 1.1.3 GOST 7.32-2001 implementation]
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{disser}}
\ProcessOptions\relax
@@ -234,7 +238,7 @@
% \subsection{Сноска}
%
% \begin{macrocode}
-\renewcommand\postthefootnote{)}
+\renewcommand\postthefootnote{$^)$}
% \end{macrocode}
%
diff --git a/Master/texmf-dist/source/latex/disser/lists.dtx b/Master/texmf-dist/source/latex/disser/lists.dtx
index a266a6a0c60..0ee1573ea02 100644
--- a/Master/texmf-dist/source/latex/disser/lists.dtx
+++ b/Master/texmf-dist/source/latex/disser/lists.dtx
@@ -16,6 +16,7 @@
% \DescribeMacro{\leftmarginiv}\index{Расстояния!\verb*+\leftmarginiv+}
% \DescribeMacro{\leftmarginv}\index{Расстояния!\verb*+\leftmarginv+}
% \DescribeMacro{\leftmarginvi}\index{Расстояния!\verb*+\leftmarginvi+}
+%
% Величины отступов от левого поля окружения до поля перечня для элементов
% указанного уровня вложенности.
% \paragraph{1}
diff --git a/Master/texmf-dist/source/latex/disser/part.dtx b/Master/texmf-dist/source/latex/disser/part.dtx
index 633d63b225d..df9a5cc90cf 100644
--- a/Master/texmf-dist/source/latex/disser/part.dtx
+++ b/Master/texmf-dist/source/latex/disser/part.dtx
@@ -9,44 +9,46 @@
% \end{macrocode}
% \subsection{Часть}
%
-% \subsubsection{Параметры формата записи в Содержании}
+% \subsubsection{Параметры формата записи в оглавлении}
%
% \DescribeMacro{\tocprethepart}\index{Макросы!\verb*+\tocprethepart+}
-% Постоянный текст до номера.
+% Префикс номера.
% \begin{macrocode}
\providecommand\tocprethepart{\partname~}
% \end{macrocode}
% \DescribeMacro{\tocpostthepart}\index{Макросы!\verb*+\tocpostthepart+}
-% Постоянный текст после номера.
+% Постфикс номера.
% \begin{macrocode}
\providecommand\tocpostthepart{.\@postskip}
% \end{macrocode}
% \DescribeMacro{\tocpartfill}\index{Макросы!\verb*+\tocpartfill+}
% Заполнитель между названием и номером страницы. Для части по умолчанию
-% отсутствует. Чтобы заполнить какими-либо символами, |\tocpartfill| нужно
-% присвоить значение |\tocfill{символ}|. Для примера см. далее определение
-% |\tocsectionfill|.
+% отсутствует. Чтобы заполнить какими-либо символами, нужно присвоить
+% |\tocpartfill| значение |\tocfill{символ}|. Для примера см. далее
+% определение |\tocsectionfill|.
% \begin{macrocode}
\providecommand\tocpartfill{}
% \end{macrocode}
% \DescribeMacro{\tocpartfont}\index{Макросы!\verb*+\tocpartfont+}
-% Шрифт заголовка в Содержании.
+% Шрифт заголовка записи.
% \begin{macrocode}
\providecommand\tocpartfont{\bfseries}
% \end{macrocode}
% \DescribeMacro{\tocpartfillfont}\index{Макросы!\verb*+\tocpartfillfont+}
-% Шрифт заполнителя.
+% Шрифт заполнителя в оглавлении.
% \begin{macrocode}
\providecommand\tocpartfillfont{\normalfont}
% \end{macrocode}
% \DescribeMacro{\tocpartnumfont}\index{Макросы!\verb*+\tocpartnumfont+}
-% Шрифт номера.
+% Шрифт номера в оглавлении.
% \begin{macrocode}
\providecommand\tocpartnumfont{\normalfont}
% \end{macrocode}
%
-% \subsubsection{Параметры формата в тексте}
+% \subsubsection{Параметры формата заголовка в тексте}
+%
+% Параметры номера и названия: выравнивание, шрифт, отступы, текст до и после.
% \DescribeMacro{\thepartalign}\index{Макросы!\verb*+\thepartalign+}
% \DescribeMacro{\thepartfont}\index{Макросы!\verb*+\thepartfont+}
% \DescribeMacro{\prethepart}\index{Макросы!\verb*+\prethepart+}
@@ -55,7 +57,6 @@
% \DescribeMacro{\partfont}\index{Макросы!\verb*+\partfont+}
% \DescribeMacro{\beforepart}\index{Макросы!\verb*+\beforepart+}
% \DescribeMacro{\afterpart}\index{Макросы!\verb*+\afterpart+}
-% Параметры номера и названия: выравнивание, шрифт, отступы, текст до и после.
% \begin{macrocode}
\providecommand\thepartalign{\centering}
\providecommand\thepartfont{\huge}
@@ -100,7 +101,7 @@
% \end{macrocode}
% \end{itemize}
-% \DescribeMacro{\part}\index{Макросы!\verb*+\part+}
+% \DescribeMacro{\part}\index{Макросы!\verb*+"\part+}
% Интерфейс.
% \begin{macrocode}
\newcommand\part{
diff --git a/Master/texmf-dist/source/latex/disser/sections.dtx b/Master/texmf-dist/source/latex/disser/sections.dtx
index fca34184ffd..004f6da3607 100644
--- a/Master/texmf-dist/source/latex/disser/sections.dtx
+++ b/Master/texmf-dist/source/latex/disser/sections.dtx
@@ -11,7 +11,7 @@
%
% \subsubsection{Section}
%
-% \paragraph{Параметры формата записи в Содержании}
+% \paragraph{Параметры формата записи в оглавлении}
%
% \DescribeMacro{\tocprethesection}\index{Макросы!\verb*+\tocprethesection+}
% \DescribeMacro{\tocpostthesection}\index{Макросы!\verb*+\tocpostthesection+}
@@ -29,7 +29,7 @@
\providecommand\tocsectionnumfont{}
% \end{macrocode}
% \DescribeMacro{\tocsectionindent}\index{Макросы!\verb*+\tocsectionindent+}
-% Величина отступа записи в Содержании.
+% Величина отступа записи в оглавлении.
% \begin{macrocode}
\providecommand\tocsectionindent{1.5em}
% \end{macrocode}
@@ -73,7 +73,7 @@
% \end{macrocode}
% \subsubsection{Subsection}
-% \paragraph{Параметры формата записи в Содержании}
+% \paragraph{Параметры формата записи в оглавлении}
%
% \DescribeMacro{\tocprethesubsection}\index{Макросы!\verb*+\tocprethesubsection+}
% \DescribeMacro{\tocpostthesubsection}\index{Макросы!\verb*+\tocpostthesubsection+}
@@ -118,7 +118,7 @@
% \end{macrocode}
% \subsubsection{Subsubsection}
-% \paragraph{Параметры формата записи в Содержании}
+% \paragraph{Параметры формата записи в оглавлении}
%
% \DescribeMacro{\tocprethesubsubsection}\index{Макросы!\verb*+\tocprethesubsubsection+}
% \DescribeMacro{\tocpostthesubsubsection}\index{Макросы!\verb*+\tocpostthesubsubsection+}
@@ -165,7 +165,7 @@
% \end{macrocode}
% \subsubsection{Paragraph}
-% \paragraph{Параметры формата записи в Содержании}
+% \paragraph{Параметры формата записи в оглавлении}
%
% \DescribeMacro{\tocpretheparagraph}\index{Макросы!\verb*+\tocpretheparagraph+}
% \DescribeMacro{\tocposttheparagraph}\index{Макросы!\verb*+\tocposttheparagraph+}
@@ -217,27 +217,29 @@
% \end{macrocode}
% \subsubsection{Subparagraph}
-% \paragraph{Параметры формата записи в Содержании}
+% \paragraph{Параметры формата записи в оглавлении}
%
% \DescribeMacro{\tocprethesubparagraph}\index{Макросы!\verb*+\tocprethesubparagraph+}
% \DescribeMacro{\tocpostthesubparagraph}\index{Макросы!\verb*+\tocpostthesubparagraph+}
% \DescribeMacro{\tocsubparagraphfill}\index{Макросы!\verb*+\tocsubparagraphfill+}
-%
-% \DescribeMacro{\tocsubparagraphfont}\index{Макросы!\verb*+\tocsubparagraphfont+}
-% \DescribeMacro{\tocsubparagraphfillfont}\index{Макросы!\verb*+\tocsubparagraphfillfont+}
-% \DescribeMacro{\tocsubparagraphnumfont}\index{Макросы!\verb*+\tocsubparagraphnumfont+}
-%
-% \DescribeMacro{\tocsubparagraphindent}\index{Макросы!\verb*+\tocsubparagraphindent+}
-% \DescribeMacro{\tocsubparagraphnameindent}\index{Макросы!\verb*+\tocsubparagraphnameindent+}
% \begin{macrocode}
\providecommand\tocprethesubparagraph{}
\providecommand\tocpostthesubparagraph{.\@postskip}
\providecommand\tocsubparagraphfill{\tocfill{.}}
+% \end{macrocode}
+% \DescribeMacro{\tocsubparagraphfont}\index{Макросы!\verb*+\tocsubparagraphfont+}
+% \DescribeMacro{\tocsubparagraphfillfont}\index{Макросы!\verb*+\tocsubparagraphfillfont+}
+% \DescribeMacro{\tocsubparagraphnumfont}\index{Макросы!\verb*+\tocsubparagraphnumfont+}
+% \begin{macrocode}
\providecommand\tocsubparagraphfont{\normalfont}
\providecommand\tocsubparagraphfillfont{}
\providecommand\tocsubparagraphnumfont{}
+% \end{macrocode}
+% \DescribeMacro{\tocsubparagraphindent}\index{Макросы!\verb*+\tocsubparagraphindent+}
+% \DescribeMacro{\tocsubparagraphnameindent}\index{Макросы!\verb*+\tocsubparagraphnameindent+}
+% \begin{macrocode}
\providecommand\tocsubparagraphindent{12em}
\providecommand\tocsubparagraphnameindent{6em}
@@ -267,7 +269,7 @@
% \end{macrocode}
% \subsubsection{Низкоуровневые команды}
%
-% \DescribeMacro{\@startsection}\index{Макросы!\verb+"\"@startsection+}
+% \DescribeMacro{\@startsection}\index{Макросы!\verb*+"\"@startsection+}
% Команда, создающая заголовки секций.
% \begin{macrocode}
\def\@startsection#1#2{%
@@ -293,7 +295,7 @@
}
% \end{macrocode}
-% \DescribeMacro{\@ssect}\index{Макросы!\verb+"\"@ssect+}
+% \DescribeMacro{\@ssect}\index{Макросы!\verb*+"\"@ssect+}
% Для ненумеруемых секций.
% \begin{macrocode}
\def\@ssect#1#2#3#4#5{%
@@ -311,7 +313,7 @@
}
% \end{macrocode}
-% \DescribeMacro{\@sect}\index{Макросы!\verb+"\"@sect+}
+% \DescribeMacro{\@sect}\index{Макросы!\verb*+"\"@sect+}
% Для нумеруемых секций.
% \begin{macrocode}
\def\@sect#1#2#3#4#5#6[#7]#8{%
@@ -350,8 +352,8 @@
% \end{macrocode}
%
-% \DescribeMacro{\@tocline}\index{Макросы!\verb+"\"@tocline+}
-% Обобщенная версия команды, добавляющей запись в Содержание.
+% \DescribeMacro{\@tocline}\index{Макросы!\verb*+"\"@tocline+}
+% Обобщенная версия стандартной команды, добавляющей запись в оглавление.
% \begin{macrocode}
\def\@tocline#1#2#3#4{%
\ifnum #2>\c@tocdepth \else
@@ -375,37 +377,37 @@
% \end{macrocode}
%
-% Команда, создающие секции в тексте и в Содержании.
-% \DescribeMacro{\section}\index{Макросы!\verb+\section+}
-% \DescribeMacro{\l@section}\index{Макросы!\verb+\l@section+}
+% Команды, создающие заголовки секций в тексте и записи в оглавлении.
+% \DescribeMacro{\section}\index{Макросы!\verb*+\section+}
+% \DescribeMacro{\l@section}\index{Макросы!\verb*+"\l"@section+}
% \begin{macrocode}
\newcommand\section{\@startsection{section}{1}}
\newcommand*\l@section{\@tocline{section}{1}}
% \end{macrocode}
-% \DescribeMacro{\subsection}\index{Макросы!\verb+\subsection+}
-% \DescribeMacro{\l@subsection}\index{Макросы!\verb+\l@subsection+}
+% \DescribeMacro{\subsection}\index{Макросы!\verb*+\subsection+}
+% \DescribeMacro{\l@subsection}\index{Макросы!\verb*+"\l"@subsection+}
% \begin{macrocode}
\newcommand\subsection{\@startsection{subsection}{2}}
\newcommand*\l@subsection{\@tocline{subsection}{2}}
% \end{macrocode}
-% \DescribeMacro{\subsubsection}\index{Макросы!\verb+\subsubsection+}
-% \DescribeMacro{\l@subsubsection}\index{Макросы!\verb+\l@subsubsection+}
+% \DescribeMacro{\subsubsection}\index{Макросы!\verb*+\subsubsection+}
+% \DescribeMacro{\l@subsubsection}\index{Макросы!\verb*+"\l"@subsubsection+}
% \begin{macrocode}
\newcommand\subsubsection{\@startsection{subsubsection}{3}}
\newcommand*\l@subsubsection{\@tocline{subsubsection}{3}}
% \end{macrocode}
-% \DescribeMacro{\paragraph}\index{Макросы!\verb+\paragraph+}
-% \DescribeMacro{\l@paragraph}\index{Макросы!\verb+\l@paragraph+}
+% \DescribeMacro{\paragraph}\index{Макросы!\verb*+\paragraph+}
+% \DescribeMacro{\l@paragraph}\index{Макросы!\verb*+"\l"@paragraph+}
% \begin{macrocode}
\newcommand\paragraph{\@startsection{paragraph}{4}}
\newcommand*\l@paragraph{\@tocline{paragraph}{4}}
% \end{macrocode}
-% \DescribeMacro{\subparagraph}\index{Макросы!\verb+\subparagraph+}
-% \DescribeMacro{\l@subparagraph}\index{Макросы!\verb+\l@subparagraph+}
+% \DescribeMacro{\subparagraph}\index{Макросы!\verb*+\subparagraph+}
+% \DescribeMacro{\l@subparagraph}\index{Макросы!\verb*+"\l"@subparagraph+}
% \begin{macrocode}
\newcommand\subparagraph{\@startsection{subparagraph}{5}}
\newcommand*\l@subparagraph{\@tocline{subparagraph}{5}}
diff --git a/Master/texmf-dist/source/latex/disser/titledefs.dtx b/Master/texmf-dist/source/latex/disser/titledefs.dtx
index 24005ae5382..b30881d935f 100644
--- a/Master/texmf-dist/source/latex/disser/titledefs.dtx
+++ b/Master/texmf-dist/source/latex/disser/titledefs.dtx
@@ -72,7 +72,8 @@
% \DescribeMacro{\speclabel}\index{Макросы!\verb+\speclabel+}
% Специальность
% \begin{macrocode}
-\def\specname{\cyr\CYRS\cyrp\cyre\cyrc\cyri\cyra\cyrl\cyrsftsn\cyrn\cyro\cyrs\cyrt\cyrsftsn}
+\def\specname{%
+\cyr\CYRS\cyrp\cyre\cyrc\cyri\cyra\cyrl\cyrsftsn\cyrn\cyro\cyrs\cyrt\cyrsftsn}
\def\specsep{:}
\def\speclabel{\specname\specsep}
% \end{macrocode}
@@ -81,7 +82,8 @@
% \DescribeMacro{\masterproglabel}\index{Макросы!\verb+\masterproglabel+}
% Магистерская программа
% \begin{macrocode}
-\def\masterprogname{\cyr\CYRM\cyra\cyrg\cyri\cyrs\cyrt\cyre\cyrr\cyrs\cyrk\cyra\cyrya\ %
+\def\masterprogname{%
+\cyr\CYRM\cyra\cyrg\cyri\cyrs\cyrt\cyre\cyrr\cyrs\cyrk\cyra\cyrya\ %
\cyrp\cyrr\cyro\cyrg\cyrr\cyra\cyrm\cyrm\cyra}
\def\masterprogsep{:}
\def\masterproglabel{\masterprogname\masterprogsep}
@@ -130,7 +132,8 @@
% \DescribeMacro{\consultname}\index{Макросы!\verb+\consultname+}
% Консультанты
% \begin{macrocode}
-\def\consultname{\cyr\CYRK\cyro\cyrn\cyrs\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrn\cyrt\cyrery:}
+\def\consultname{%
+\cyr\CYRK\cyro\cyrn\cyrs\cyru\cyrl\cyrsftsn\cyrt\cyra\cyrn\cyrt\cyrery:}
% \end{macrocode}
%
% \subsection{Интерфейс для определения элементов титульного листа}
@@ -282,9 +285,9 @@
% \end{macrocode}
%
-% \subsubsection{Названия ненумеруемых глав, входящих в Содержание}
-% \begin{itemize}
+% \subsubsection{Названия ненумеруемых глав}
%
+% \begin{itemize}
% \item Содержание
% \DescribeMacro{\contentsname}\index{Макросы!\verb*+\contentsname+}
% \begin{macrocode}
@@ -328,6 +331,7 @@
\newcommand\reviewname{\cyr\CYRO\cyrb\cyrz\cyro\cyrr\ %
\cyrl\cyri\cyrt\cyre\cyrr\cyra\cyrt\cyru\cyrr\cyrery}
\newcommand\review{\nchapter{\reviewname}}
+
% \end{macrocode}
%
% \subsubsection{Поля титульного листа}
diff --git a/Master/texmf-dist/source/latex/disser/toc.dtx b/Master/texmf-dist/source/latex/disser/toc.dtx
index 555883910bd..2f207dca0cb 100644
--- a/Master/texmf-dist/source/latex/disser/toc.dtx
+++ b/Master/texmf-dist/source/latex/disser/toc.dtx
@@ -8,15 +8,16 @@
%<*toc>
% \end{macrocode}
%
-% \subsection{Автоматически генерируемые списки (содержание, индекс и т.\,д.)}
-% \subsubsection{Параметры}
+% \subsection{Автоматически генерируемые списки (оглавление, предметный указатель и т.\,д.)}
%
-% Горизонтальный пробел между постоянной и переменной частями заголовков
+% \subsubsection{Общие параметры}
+%
+% Горизонтальный пробел между постоянной и переменной частями заголовков.
% \DescribeMacro{\@postskip}\index{Макросы!\verb+"\"@postskip+}
% \begin{macrocode}
\def\@postskip{\hskip1em}
% \end{macrocode}
-% Длина пробела между заполнителем и номером страницы.
+% Длина пробела между заполнителем строки и номером страницы.
% \DescribeMacro{\@pnumwidth}\index{Макросы!\verb+"\"@pnumwidth+}
% \begin{macrocode}
\newcommand\@pnumwidth{1.55em}
@@ -35,43 +36,26 @@
% Команда для заполнения промежутка между названием и номером страницы.
% \DescribeMacro{\tocfill}\index{Макросы!\verb*+\tocfill+}
% \begin{macrocode}
-\def\tocfill#1{
- \leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{#1}\mkern\@dotsep mu$}
+\def\tocfill#1{%
+ \leaders\hbox{$\m@th\mkern\@dotsep mu\hbox{#1}\mkern\@dotsep mu$}%
}
+
% \end{macrocode}
-% Вертикальный пробел между элементами предметного указателя.
-% \DescribeMacro{\indexspace}\index{Макросы!\verb*+\indexspace+}
-% \begin{macrocode}
-\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
-% \end{macrocode}
-% Величина отступа для элементов списка литературы.
-% \DescribeMacro{\bibindent}\index{Расстояния!\verb*+\bibindent+}
-% \begin{macrocode}
-\newdimen\bibindent
-\setlength\bibindent{1.5em}
-% \end{macrocode}
-% Горизонтальный пробел между различными частями элемента библиографии.
-% \DescribeMacro{\newblock}\index{Макросы!\verb*+\newblock+}
+% \subsubsection{Оглавление}
+%
+% \DescribeMacro{\tocsection}\index{Макросы!\verb*+\tocsection+}
% \begin{macrocode}
-\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
-\let\@openbib@code\@empty
+\newcommand\tocsection{\chapter*{\contentsname}}
% \end{macrocode}
%
% \DescribeMacro{\tableofcontents}\index{Макросы!\verb*+\tableofcontents+}
% \begin{macrocode}
\newcommand\tableofcontents{%
-% \end{macrocode}
-%
-% \begin{macrocode}
- \if@twocolumn
- \@restonecoltrue\onecolumn
- \else
- \@restonecolfalse
- \fi
- \chapter*{\contentsname%
- \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}
- }%
+ \if@twocolumn\@restonecoltrue\onecolumn%
+ \else\@restonecolfalse\fi%
+ \tocsection%
+ \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
\@starttoc{toc}%
\if@restonecol\twocolumn\fi
\clearpage
@@ -80,44 +64,48 @@
%
% \subsubsection{Список иллюстраций}
%
-% \DescribeMacro{\listoffigures}\index{Макросы!\verb*+\listoffigures+}
+% \DescribeMacro{\lofsection}\index{Макросы!\verb*+\lofsection+}
% \begin{macrocode}
-\newcommand\listoffigures{%
- \if@twocolumn\@restonecoltrue\onecolumn
- \else\@restonecolfalse\fi
+\newcommand\lofsection{\nchapter{\listfigurename}}
+
% \end{macrocode}
-% Вместо стандартной команды |\chapter*| используется |\nchapter|, чтобы список
-% отображался в Содержании.
%
+% \DescribeMacro{\listoffigures}\index{Макросы!\verb*+\listoffigures+}
% \begin{macrocode}
- \nchapter{%
- \listfigurename%
- \@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}%
- }%
+\newcommand\listoffigures{%
+ \if@twocolumn\@restonecoltrue\onecolumn%
+ \else\@restonecolfalse\fi%
+ \lofsection%
+ \@mkboth{\MakeUppercase\listfigurename}{\MakeUppercase\listfigurename}%
\@starttoc{lof}%
\if@restonecol\twocolumn\fi
}
+
% \end{macrocode}
% Формат элемента списка иллюстраций.
% \begin{macrocode}
\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
+
% \end{macrocode}
%
% \subsubsection{Список таблиц}
+%
+% \DescribeMacro{\lotsection}\index{Макросы!\verb*+\lotsection+}
+% \begin{macrocode}
+\newcommand\lotsection{\nchapter{\listtablename}}
+
+% \end{macrocode}
+% \DescribeMacro{\listoftables}\index{Макросы!\verb*+\listoftables+}
% \begin{macrocode}
\newcommand\listoftables{%
- \if@twocolumn
- \@restonecoltrue\onecolumn
- \else
- \@restonecolfalse
- \fi
- \nchapter{%
- \listtablename%
- \@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}%
- }%
+ \if@twocolumn\@restonecoltrue\onecolumn%
+ \else\@restonecolfalse\fi%
+ \lotsection%
+ \@mkboth{\MakeUppercase\listtablename}{\MakeUppercase\listtablename}%
\@starttoc{lot}%
\if@restonecol\twocolumn\fi
}
+
% \end{macrocode}
% Формат элемента списка таблиц.
% \begin{macrocode}
@@ -126,22 +114,44 @@
% \end{macrocode}
%
% \subsubsection{Библиография}
-% Данное окружение будет переопределено в пакете |natbib|.
+%
+% Окружение и заголовок будут переопределены в пакете \pkg{natbib} и далее
+% в файле \file{custom.dtx}.
% \DescribeEnv{thebibliography}\index{Окружения!\verb*+thebibliography+}
% \begin{macrocode}
\newenvironment{thebibliography}[1]{}{}
% \end{macrocode}
+% Величина отступа для элементов списка литературы.
+% \DescribeMacro{\bibindent}\index{Расстояния!\verb*+\bibindent+}
+% \begin{macrocode}
+\newdimen\bibindent
+\setlength\bibindent{1.5em}
+% \end{macrocode}
+% Горизонтальный пробел между различными частями элемента библиографии.
+% \DescribeMacro{\newblock}\index{Макросы!\verb*+\newblock+}
+% \begin{macrocode}
+\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
+\let\@openbib@code\@empty
+
+% \end{macrocode}
%
% \subsubsection{Предметный указатель}
+%
+% \DescribeMacro{\indexsection}\index{Макросы!\verb*+\indexsection+}
+% \begin{macrocode}
+\providecommand\indexsection{\twocolumn[\@makeschapterhead{\indexname}]}
+
+% \end{macrocode}
+%
% \DescribeEnv{theindex}\index{Окружения!\verb*+theindex+}
% \begin{macrocode}
-\newenvironment{theindex}{
- \if@twocolumn\@restonecolfalse
- \else\@restonecoltrue\fi
+\newenvironment{theindex}{%
+ \if@twocolumn\@restonecolfalse%
+ \else\@restonecoltrue\fi%
\columnseprule \z@
\columnsep 35\p@
- \twocolumn[\@makeschapterhead{\indexname}]%
+ \indexsection%
\@mkboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}%
\thispagestyle{plain}
\parindent\z@
@@ -149,7 +159,7 @@
\let\item\@idxitem%
}{\if@restonecol\onecolumn\else\clearpage\fi}
% \end{macrocode}
-% Формат элемента.
+% Формат элементов.
% \DescribeMacro{\@idxitem}\index{Макросы!\verb+"\"@idxitem+}
% \DescribeMacro{\subitem}\index{Макросы!\verb*+\subitem+}
% \DescribeMacro{\subsubitem}\index{Макросы!\verb*+\subsubitem+}
@@ -157,5 +167,10 @@
\newcommand\@idxitem{\par\hangindent 40\p@}
\newcommand\subitem{\@idxitem \hspace*{20\p@}}
\newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
+% \end{macrocode}
+% Вертикальный пробел между элементами предметного указателя.
+% \DescribeMacro{\indexspace}\index{Макросы!\verb*+\indexspace+}
+% \begin{macrocode}
+\newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
%</toc>
% \end{macrocode}