diff options
author | Karl Berry <karl@freefriends.org> | 2009-11-16 19:57:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-11-16 19:57:36 +0000 |
commit | 494bd0475fd9f4b8ad307a7fb97b96d1f8093936 (patch) | |
tree | 5b95640ef51caa72822a1478b49449c29c009b24 /Master/texmf-dist/source/latex/disser/toc.dtx | |
parent | 7c71adc8d8bd0bf2195bb57a46f7029642681503 (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/toc.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/disser/toc.dtx | 129 |
1 files changed, 72 insertions, 57 deletions
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} |