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
|
% \iffalse
%%% From File: custom.dtx
% \fi
%
% \begin{macrocode}
%<*custom>
% \end{macrocode}
% \subsection{ }
%
% Euler.
% \begin{macrocode}
\ifDis@fixint
\DeclareSymbolFont{EulerExtension}{U}{euex}{m}{n}
\DeclareMathSymbol\intop\mathop{EulerExtension}{"52}
\DeclareMathSymbol\ointop\mathop{EulerExtension}{"48}
\AtBeginDocument{%
\def\intkern@{\mkern -6mu }%
\def\ints@#1{\mkern -3mu
\mathop{\mkern 3mu
\intop
\ifnum #1=\z@ \intdots@ \else
\intkern@
\ifnum #1>\tw@ \intop\intkern@
\ifnum #1>\thr@@ \intop\intkern@ \fi
\fi
\fi
\intop
}\ilimits@
}%
\renewcommand{\iint}{\DOTSI\protect\MultiIntegral{2}}
\renewcommand{\iiint}{\DOTSI\protect\MultiIntegral{3}}
\renewcommand{\iiiint}{\DOTSI\protect\MultiIntegral{4}}
\renewcommand{\idotsint}{\DOTSI\protect\MultiIntegral{0}}
}{}
\fi
% \end{macrocode}
% \subsubsection{ }
% \DescribePackage{natbib}
% \begin{macrocode}
\ifDis@natbib
\usepackage[square,comma,sort&compress,numbers]{natbib}
\else
% \end{macrocode}
% |natbib|.
% \DescribeMacro{\bibsection}\index{!\verb*+\bibsection+}
% \DescribeMacro{\bibpreamble}\index{!\verb*+\bibpreamble+}
% \DescribeMacro{\bibpostamble}\index{!\verb*+\bibpostamble+}
% \DescribeMacro{\bibsep}\index{!\verb*+\bibsep+}
% \begin{macrocode}
\providecommand*\bibsection{}
\providecommand*\bibpreamble{}
\providecommand*\bibpostamble{}
\newlength\bibsep
\fi
% \end{macrocode}
% , .
% \DescribeMacro{\bibsection}\index{!\verb*+\bibsection+}
% \begin{macrocode}
\renewcommand\bibsection{\nchapter{\bibname}}
% \end{macrocode}
% |thebibliography|.
% \DescribeMacro{\bibpreamble}\index{!\verb*+\bibpreamble+}
% \begin{macrocode}
\renewcommand\bibpreamble{%
% \end{macrocode}
% .
% \DescribeMacro{\@biblabel}\index{!\verb*+"\"@biblabel+}
% \begin{macrocode}
\renewcommand\@biblabel[1]{##1.}%
\setlength\bibsep{0pt}
}
\@ifpackageloaded{natbib}{
\@ifundefined{chapter}{%
\renewcommand\bibsection{%
\nsection{\bibname\@mkboth{\MakeUppercase{\bibname}}{\MakeUppercase{\bibname}}}%
}%
}{%
\@ifxundefined\NAT@sectionbib{%
\renewcommand\bibsection{%
\nchapter{\bibname\@mkboth{\MakeUppercase{\bibname}}{\MakeUppercase{\bibname}}}%
}%
}{%
\renewcommand\bibsection{%
\nsection{\bibname\ifx\@mkboth\@gobbletwo\else\markright{\MakeUppercase{\bibname}}\fi}%
}%
}%
}%
}{%
\@ifundefined{chapter}{%
\renewcommand\bibsection{%
\nsection{\bibname\@mkboth{\MakeUppercase{\bibname}}{\MakeUppercase{\bibname}}}%
}%
}{}
% \end{macrocode}
% \DescribeEnv{thebibliography}\index{!\verb*+thebibliography+}
% \begin{macrocode}
\renewenvironment{thebibliography}[1]{
\bibsection
\parindent\z@
\bibpreamble\normalfont\selectfont
\list{\@biblabel{\@arabic\c@enumiv}}{\settowidth\labelwidth{\@biblabel{#1}}%
\setlength{\itemsep}{\bibsep}
\setlength{\parsep}{\bibsep}
\leftmargin\labelwidth
\advance\leftmargin\labelsep
\@openbib@code
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
\sloppy\clubpenalty4000\widowpenalty4000
\sfcode`\.\@m
}{%
\bibpostamble
\def\@noitemerr
{\@latex@warning{Empty `thebibliography' environment}}%
\endlist
}
}
% \end{macrocode}
% \subsubsection{ }
%
% \pkg{caption} \pkg{subcaption}
% .
% \DescribePackage{caption}
% \DescribePackage{subcaption}
% \begin{macrocode}
\ifDis@subf
\usepackage[font=small,labelsep=period]{caption}
\usepackage[list=true,subrefformat=parens]{subcaption}
\captionsetup{compatibility=false}
% \end{macrocode}
% .
% \begin{macrocode}
\DeclareCaptionSubType[asbuk]{figure}
\def\thesubfigure{\textit{\asbuk{subfigure}}}
% \end{macrocode}
% |\ref|.
% \DescribeMacro{\thefigsubsep}\index{!\verb*+\thefigsubsep+}
% \begin{macrocode}
\providecommand\thefigsubsep{,~}
\def\p@subfigure{\@nameuse{thefigure}\thefigsubsep}
\fi
% \end{macrocode}
% \subsubsection{Hyperref}
% \begin{macrocode}
\ifpdf
\ifDis@href
% \end{macrocode}
% \DescribePackage{hyperref}
% \begin{macrocode}
\usepackage[pdftex,unicode]{hyperref}
\hypersetup{
colorlinks = false,
bookmarksopen = true,
bookmarksnumbered = true,
bookmarksopenlevel = 2,
pdfstartview = {FitH},
pdfborder = {0 0 0}
}
\pdfcompresslevel = 9
\fi
% \end{macrocode}
% \DescribePackage{graphicx}
% \DescribePackage{cmap}
% \begin{macrocode}
\usepackage[pdftex]{graphicx}
\usepackage{cmap}
\else
\ifDis@href
% \end{macrocode}
% \DescribePackage{hyperref}
% \begin{macrocode}
\usepackage[hypertex,colorlinks=false]{hyperref}
\fi
% \end{macrocode}
% \DescribePackage{graphicx}
% \begin{macrocode}
\usepackage{graphicx}
\fi
\ifDis@href
% \end{macrocode}
% .
% \begin{macrocode}
\ifDis@colorlinks
\usepackage{color}
\definecolor{darkblue}{rgb}{0,0,.6}
\hypersetup{
colorlinks = true, linkcolor = darkblue,
citecolor = darkblue, filecolor = darkblue,
menucolor = darkblue, urlcolor = darkblue
}
\fi
\fi
% \end{macrocode}
% ,
% .
% \DescribeMacro{\hrefphantom}\index{!\verb*+\hrefphantom+}
% \begin{macrocode}
\providecommand\hrefphantom[1]{%
\ifDis@href
\Hy@GlobalStepCount\Hy@linkcounter
\xdef\@currentHref{#1*.\the\Hy@linkcounter}%
\Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}%
\fi
}
% \end{macrocode}
% ,
% PDF-.
% \DescribeMacro{\nchapter}\index{!\verb*+\nchapter+}
% \DescribeMacro{\nsection}\index{!\verb*+\nsection+}
% \DescribeMacro{\nsubsection}\index{!\verb*+\nsubsection+}
% \DescribeMacro{\nsubsubsection}\index{!\verb*+\nsubsubsection+}
% \begin{macrocode}
\newcommand\nchapter[1]{%
\if@openright
\cleardoublepage
\else
\clearpage
\fi
\thispagestyle{\@chapterpagestyle}%
\global\@topnum\z@
\hrefphantom{chapter}
\addcontentsline{toc}{chapter}{#1}%
\@afterindentfalse
\@schapter{#1}
}
\newcommand\nsection[1]{%
\hrefphantom{section}%
\addcontentsline{toc}{section}{#1}
\section*{#1}
}
\newcommand\nsubsection[1]{%
\hrefphantom{subsection}%
\addcontentsline{toc}{subsection}{#1}
\subsection*{#1}
}
\newcommand\nsubsubsection[1]{%
\hrefphantom{subsubsection}%
\addcontentsline{toc}{subsubsection}{#1}
\subsubsection*{#1}
}
%</custom>
% \end{macrocode}
|