litceysel.ru
добавить свой файл
  1 ... 16 17 18 19

\renewcommand\theremark{Замечание \arabic{section}.\arabic{remark}.}

\newcommand\remark[1]{

\@startsection{remark}{2}{\parindent}

{1.0ex \@plus .3ex \@minus .1ex}{-.5em \@plus -.1em \@minus -.1em}

{\normalfont\normalsize\bfseries}{}{\rm #1}}


\newcounter{example}[section]

\renewcommand\theexample{Пример \arabic{section}.\arabic{example}.}

\newcommand\example[1]{

\@startsection{example}{2}{\parindent}

{1.0ex \@plus .3ex \@minus .1ex}{-.5em \@plus -.1em \@minus-.1em}

{\normalfont\normalsize\bfseries}{}{\rm #1}}


%%%%%%%%%%%%%%%%%%%%%% Picture Environment %%%%%%%%%%%%%%%%%%%%%%%%%


\marginparwidth =.9375\picturewidth

\marginparsep =.0625\picturewidth

\marginparpush =.0625\picturewidth


\newcounter{fig}[section]

\newcounter{fignum}[section]

\def\setlabel{\ifnum\pointer>\z@\global\multiply\pointer\tw@

\else\global\pointer\@ne\fi

\global\multiply\labels\tw@}

\def\marginp@r{\ifhmode\@bsphack\@floatpenalty-\@Mii\else

\@floatpenalty-\@Miii\fi\ifinner

\@parmoderr\@floatpenalty\z@

\else\@next\@currbox\@freelist{}{}\@next\@marbox\@freelist{\global

\count\@marbox\m@ne}{\@floatpenalty\z@ \@fltovf\def\@currbox{\@tempboxa

}\def\@marbox{\@tempboxa}}\fi

\@ifnextchar [{\@xmpar}{\@ympar}}

\renewcommand\marginpar{\setlabel\marginp@r}


\def\figlabel#1{\vbox{\hrule\hbox{\vrule\rule[-3pt]{-.1pt}{13pt}

\small\bf\arabic{#1}\ \vrule}\hrule}}


\newbox\numbox

\newdimen\numht


\def\fig{\@ifnextchar[{\xfig}{\yfig}}


\def\xfig[#1]#2#3#4{\refstepcounter{fig}\label{#1}%

\ifwide\stepcounter{fignum}\setbox\numbox\figlabel{fig}%

\parbox[t]{#2}{\ifodd\count0\hbox to#2{\hfil\box\numbox}


\else\hbox to#2{\box\numbox\hfil}\fi%

\vspace{.3ex}\special{em:graph #4}\hfil\vspace{#3}}

\else\setlabel\global\advance\labels\@ne\marginparwidth=#2%

\marginp@r{\special{em:graph #4}\hfil\vspace{#3}}\fi}


\def\yfig#1#2#3{\ifwide\stepcounter{fig}\stepcounter{fignum}%

\parbox[t]{#1}{\special{em:graph #3}\hfill\vspace{#2}}

\else\setlabel\marginparwidth=#1\marginp@r{\special{em:graph #3}\hfill

\vspace{#2}}\fi}


\newdimen\psheight

\newdimen\pswidth

\renewcommand\Gin@setfile[3]{%

\ifx\\#2\\\Gread@false\fi

\ifGin@bbox\else

\ifGread@

\csname Gread@%

\expandafter\ifx\csname Gread@#1\endcsname\relax

eps%

\else

#1%

\fi

\endcsname{\Gin@base#2}%

\else

\@latex@error

{Cannot determine size of graphic in #3 (no size specifed)}%

\@ehc

\fi

\fi

\Gin@viewport@code

\Gin@nat@height\Gin@ury bp%

\advance\Gin@nat@height-\Gin@lly bp%

\Gin@nat@width\Gin@urx bp%

\advance\Gin@nat@width-\Gin@llx bp%

\Gin@req@sizes%

\global\psheight\Gin@req@height%

\global\pswidth\Gin@req@width%

\expandafter\ifx\csname Ginclude@#1\endcsname\relax

\Gin@drafttrue

\expandafter\ifx\csname Gread#1\endcsname\relax

\@latex@error{Can not include graphics of type: #1}\@ehc

\global\expandafter\let\csname Gread#1\endcsname\@empty

\fi

\fi

\leavevmode

\ifGin@draft

\hbox to \Gin@req@width{%

\vrule\hss

\vbox to \Gin@req@height{%

\hrule \@width \Gin@req@width

\vss

\edef\@tempa{#3}%

\rlap{ \ttfamily\expandafter\strip@prefix\meaning\@tempa}%


\vss

\hrule}%

\hss\vrule}%

\else

\@addtofilelist{#3}%

\ProvidesFile{#3}[Graphic file (type #1)]%

\setbox\z@\hbox{\csname Ginclude@#1\endcsname{#3}}%

\dp\z@\z@

\ht\z@\Gin@req@height

\wd\z@\Gin@req@width

\box\z@

\fi}


\def\psfig{\@ifnextchar[{\xpsfig}{\ypsfig}}


\def\xpsfig[#1]#2{\refstepcounter{fig}\label{#1}%

\setbox\@tempboxa=\hbox to\basewidth{#2\hfil}%

\ifwide\stepcounter{fignum}\setbox\numbox\figlabel{fig}%

\parbox[t]{\pswidth}{\ifodd\count0\hbox to\pswidth{\hfill\box\numbox}

\else\hbox to\pswidth{\box\numbox\hfill}\fi\vspace{.3ex}{#2}\hfill}

\else\setlabel\global\advance\labels\@ne\marginparwidth=\pswidth%

\marginp@r{\vskip0pt{#2}}\fi}


\def\ypsfig#1{\setbox\@tempboxa=\hbox to\basewidth{\hfil #1\hfil}%

\ifwide\stepcounter{fig}\stepcounter{fignum}\parbox[t]{\pswidth}{#1}

\else\setlabel\marginparwidth=\pswidth\marginp@r{\vskip0pt{#1}}\fi}


\renewcommand\@addmarginpar{

\@next\@marbox\@currlist{\@cons\@freelist\@marbox

\@cons\@freelist\@currbox}\@latexbug\@tempcnta\@ne

\if@twocolumn

\if@firstcolumn \@tempcnta\m@ne \fi

\else

\if@mparswitch

\ifodd\c@page \else\@tempcnta\m@ne \fi

\fi

\if@reversemargin \@tempcnta -\@tempcnta \fi

\fi

\ifnum\@tempcnta <\z@ \global\setbox\@marbox\box\@currbox \fi

\@tempdima\@mparbottom

\advance\@tempdima -\@pageht

\advance\@tempdima\ht\@marbox


\ifnum\pointer >\labels \setbox\numbox=\vbox{}

\else\setbox\numbox=\figlabel{fignum}\fi

\advance\@tempdima by\ht\numbox

\advance\@tempdima by\dp\numbox

\ifdim\@tempdima >\z@

\@latex@warning@no@line {Marginpar on page \thepage\space moved}%

\else

\@tempdima\z@

\fi

\global\@mparbottom\@pageht

\global\advance\@mparbottom\@tempdima

\global\advance\@mparbottom\dp\@marbox

\global\advance\@mparbottom\marginparpush

\advance\@tempdima -\ht\@marbox


\numht\ht\numbox

\advance\numht\dp\numbox

\advance\numht by.3ex

\advance\@tempdima -\numht


\ifnum\pointer >\labels

\else

\global\advance\labels-\pointer

\global\stepcounter{fignum}

\setbox\numbox=\figlabel{fignum}

\fi

\ifnum\pointer>\@ne\global\divide\pointer\tw@

\else\global\pointer\z@\fi


\global\ht\@marbox\z@ \global\dp\@marbox\z@

\ht\numbox\z@ \dp\numbox\z@

\vskip -\@pagedp \vskip\@tempdima\nointerlineskip


\ifnum\@tempcnta >\z@

\hbox to\basewidth{\hfil\box\numbox}

\vskip\numht

\nointerlineskip

\hbox to\basewidth{\hfil\box\@marbox}

\else

\hbox to\basewidth{\hskip-\picturewidth\box\numbox\hfil}

\vskip\numht

\nointerlineskip

\hbox to\basewidth{\hskip-\picturewidth\box\@marbox\hfil}

\fi


\advance\@tempdima\numht

\vskip -\@tempdima

\nointerlineskip

\hbox{\vrule \@height\z@ \@width\z@ \@depth\@pagedp}}

\newinsert \@kludgeins

\dimen\@kludgeins \maxdimen

\count\@kludgeins 1000

\def \enlargethispage {%

\@ifstar

{%

\@enlargepage{\hbox{\kern\p@}}}%

{%

\@enlargepage\@empty}%

}

%%%%%%%%%%%%%%%%%%%%%%%%% Control Questions %%%%%%%%%%%%%%%%%%%%%%%%



\newcounter{cont}[section]

\renewcommand\thecont{\bfseries\arabic{cont}.}

\def\control{\par\vskip 3.5ex \@plus 1ex \@minus .2ex%

\centerline{\Large\sf Контрольные вопросы и задания}\par

\vskip 10\p@ \@plus4\p@ \@minus6\p@}


\newlength\@numwidth

\settowidth{\@numwidth}{\normalsize\bfseries12.}

\newbox\@numbox

\def\makenum#1#2{\setbox\@numbox=\hbox{\hbox to\@numwidth{\hfil#1}%

\hskip-.4em$^{\mbox{\small\bf#2}}$}}


\newlength\@leftskip

\makenum{}{**}

\@leftskip\wd\@numbox

\advance\@leftskip by.3em

\newlength\numwidth


\def\cont{\global\leftskip=\@leftskip\par\noindent%

\@ifnextchar[{\xcont}{\ycont}}


\def\xcont[#1]#2{\stepcounter{cont}%

\makenum{\thecont}{#1}\numwidth\wd\@numbox%

\hskip-\@leftskip\unhbox\@numbox\hskip\@leftskip\hskip-\numwidth%

#2\par\global\leftskip=\z@ \vskip 5\p@ \@plus2.5\p@ \@minus1\p@}


\def\ycont#1{\stepcounter{cont}%

\makenum{\thecont}{}\numwidth\wd\@numbox%

\hskip-\@leftskip\unhbox\@numbox\hskip\@leftskip\hskip-\numwidth%

#1\par\global\leftskip=\z@ \vskip 5\p@ \@plus2.5\p@ \@minus1\p@}


%%%%%%%%%%%%%%%%%%%%%%%%% Exercises %%%%%%%%%%%%%%%%%%%%%%%%%%%


\newcounter{exer}[section]

\renewcommand\theexer{\bfseries\arabic{exer}.}

\def\exercise{\par\vskip 3.5ex \@plus 1ex \@minus .2ex

\centerline{\Large\sf Задачи и упражнения}\par

\vskip 10\p@ \@plus4\p@ \@minus6\p@}


\def\ex{\global\leftskip=\@leftskip\par\noindent\@ifnextchar[{\xex}{\yex}}


\def\xex[#1]#2{\stepcounter{exer}%

\makenum{\theexer}{#1}\numwidth\wd\@numbox%

\hskip-\@leftskip\unhbox\@numbox\hskip\@leftskip\hskip-\numwidth%

#2\par\global\leftskip=\z@ \vskip 5\p@ \@plus2.5\p@ \@minus1\p@}



\def\yex#1{\stepcounter{exer}%

\makenum{\theexer}{}\numwidth\wd\@numbox%

\hskip-\@leftskip\unhbox\@numbox\hskip\@leftskip\hskip-\numwidth%

#1\par\global\leftskip=\z@ \vskip 5\p@ \@plus2.5\p@ \@minus1\p@}


\def\move#1#2{\settowidth{\@tempdima}{#1}\advance\@tempdima by-#2%

\hspace*{-\@tempdima}}


%%%%%%%%%%%%%%%%%%%%%%%%% Definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\font\upfont=lhssi12 at 11.4pt %lhss17 lhu10


\def\definition#1{\par\vskip 5\p@ \@plus2.5\p@ \@minus1\p@

\baselineskip13.68pt\hangindent=\parindent{\upfont{#1}}%17.28pt

\par\vskip 5\p@ \@plus2.5\p@ \@minus1\p@}


%%%%%%%%%%%%%%%%%%%%%%%%% Outputpage %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\def\marknorm{Оптимальное управление}


\renewcommand\@outputpage{%

\let \protect \noexpand

\shipout \vbox{%

\set@typeset@protect

\aftergroup\set@typeset@protect

\@shipoutsetup

\@begindvi

\vskip \topmargin

\moveright\@themargin \vbox {%

\setbox\@tempboxa \vbox to\headheight{%

\vfil

\hbox to \basewidth{%

\ifwide\else\ifodd\count0\else

\hskip-\picturewidth\fi\fi

\let \label \@gobble

\let \index \@gobble

\let \glossary \@gobble %% 21 Jun 91

\@thehead\hss

}%

}% %% 22 Feb 87

\dp\@tempboxa\z@

\box\@tempboxa

\vskip\headsep

\box\@outputbox

{

\baselineskip\footskip

\hb@xt@\textwidth{%

\let \label \@gobble

\let \index \@gobble %% 22 Feb 87

\let \glossary \@gobble %% 21 Jun 91

\@thefoot

}%

}

\@tempcnta=\count0

\divide\@tempcnta by 16


\multiply\@tempcnta by 16

\advance\@tempcnta by 1

\ifnum\@tempcnta=\count0

\ifnum\count0>1\makenorm\fi

\fi

\advance\@tempcnta by2

\ifnum\@tempcnta=\count0\makesignature \fi

}%

}%

\global\@colht\textheight

\stepcounter{page}%

\let\firstmark\botmark

}


\def\makenorm{\@tempskipa=-\footskip \advance\@tempskipa by14pt

\vskip\@tempskipa

\divide\count0 by 16

\advance\count0 by 1

\hbox to\textwidth{\footnotesize\the\count0\hskip.75em

\scriptsize\marknorm\hfill}}


\def\makesignature{\@tempskipa=-\footskip \advance\@tempskipa by14pt

\vskip\@tempskipa

\divide\count0 by 16

\advance\count0 by 1

\hbox to\textwidth{\footnotesize\the\count0$^{\displaystyle\ast}$\hfill}}


%%%%%%%%%%%%%%%%%%%%%%%%%% Index %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\newif\iftitle


\renewenvironment{theindex}{

\clearpage

\hsize=200mm

% \hsize=\basewidth

\textwidth=\hsize

\advance\evensidemargin by-\picturewidth

\@mkboth{\indexname}%

{\indexname}%

\@makehead

\parindent\z@

\parskip\z@ \@plus .3\p@\relax

\let\item\@idxitem

% \global\titlefalse

\global\titletrue

\small

\wide}{\endwide}

% \begindoublecolumns}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% {\enddoublecolumns}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\def\@makehead{

\bgroup

\baselineskip=25pt

\chapnumfont15\hfill\break%

\Large\sf{глава}\par\nobreak%

\output={\global\setbox\numberbox=\vbox{\unvbox255}}\eject

\egroup


\@tempdima=\basewidth

\advance\@tempdima by-\chapnumwidth

\advance\@tempdima by-\chapnumsep

\bgroup

\hsize=\@tempdima

\textwidth=\hsize

\baselineskip36pt

%\ifodd\count0\flushleft\else\flushright\fi

\flushleft

\parindent\z@

\normalhuge\uppercase{Предметный указатель}\par\nobreak

\output{\global\setbox\headbox=\vbox{\unvbox255}}\eject

\egroup

\@tempdima=\ht\numberbox

\advance\@tempdima by\dp\numberbox

\@tempdimb=\ht\headbox

\advance\@tempdimb by\dp\headbox

\global\ht\headbox=\z@

\global\dp\headbox=\z@

\ifnum\@tempdimb >\@tempdima\@tempdima=\@tempdimb\fi

\advance\@tempdima by40pt

\noindent\hbox to\basewidth{%

%\ifodd\count0\box\headbox\hfill%

%\else\hfill\box\headbox%

%\fi}

\box\headbox\hfill}

\vskip\@tempdima

\advance\@tempdima by-.25\textheight

\ifnum\@tempdima >\z@\else\vskip-\@tempdima\fi

}


\newbox\@partialpage

\def\begindoublecolumns{\begingroup

\@tempdima=\basewidth\advance\@tempdima by-\columnsep

\hsize=.5\@tempdima

\vsize=2\textheight\advance\vsize by1pc

\output={\global\setbox\@partialpage=\vbox{\unvbox255}}\eject

\output={\doublecolumnout}}


\def\enddoublecolumns{\output={\balancecolumns}\eject

\endgroup\pagegoal=\vsize}


\def\doublecolumnout{\splittopskip=\topskip \splitmaxdepth=\maxdepth

\dimen@=\textheight \advance\dimen@ by-\ht\@partialpage

\iftitle\advance\dimen@ by-\topskip\fi

\setbox0=\vsplit255 to\dimen@ \setbox2=\vsplit255 to\dimen@

\unvbox255%

\makepage{\advance\dimen@ by-\ht0

\unvbox\@partialpage

\wd0=\hsize \wd2=\hsize \hbox to\basewidth{\box0\hfil\box2}

\vskip\dimen@\vskip\footskip}

}


\def\balancecolumns{\setbox0=\vbox{\unvbox255} \dimen@=\ht0

\advance\dimen@ by\topskip \advance\dimen@ by-\baselineskip

\divide\dimen@ by2 \splittopskip=\topskip

{\vbadness=10000 \loop \global\setbox3=\copy0

\global\setbox1=\vsplit3 to\dimen@

\ifdim \ht3>\dimen@ \global\advance\dimen@ by1pt \repeat}

\setbox0=\vbox to\dimen@{\unvbox1} \setbox2=\vbox to\dimen@{\unvbox3}

\unvbox255\makepage{

\dimen@=\textheight \advance\dimen@ by-\ht\@partialpage

\iftitle\advance\dimen@ by-\topskip\fi

\advance\dimen@ by-\ht0

\unvbox\@partialpage

\wd0=\hsize \wd2=\hsize \hbox to\basewidth{\box0\hfil\box2}

\vskip\dimen@\vskip\footskip}

}


\def\makepage#1{%

\shipout\vbox{%

\@shipoutsetup

\vskip\topmargin

\moveright\@themargin\vbox{%

\makepagehead%

#1%

\@tempcnta=\count0

\divide\@tempcnta by 16

\multiply\@tempcnta by 16

\advance\@tempcnta by 1

\ifnum\@tempcnta=\count0

\ifnum\count0>1\makenorm\fi

\fi

\advance\@tempcnta by2

\ifnum\@tempcnta=\count0\makesignature\fi

}

}

\global\titlefalse

\global\stepcounter{page}%

}


\def\makepagehead{\iftitle\vskip\headheight\vskip\topskip\else

\vbox to\headheight{\vfil\ifodd\count0\@oddhead\else\@evenhead\fi}\fi

\vskip\headsep}


%%%%%%%%%%%%%%%%%%%%%%%%%%%% Other %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


%\@addtoreset{equation}{section}

%\renewcommand\theequation{\@arabic\c@equation}



\def\tg{\mathop{\rm tg}\nolimits}

\def\ctg{\mathop{\rm ctg}\nolimits}

\def\arctg{\mathop{\rm arctg}\nolimits}

\def\arcctg{\mathop{\rm arcctg}\nolimits}


\def\vh#1{\vrule width0pt height#1pt}

\def\vd#1{\vrule width0pt depth#1pt}

\def\h{\hskip.75em}

\def\d{\displaystyle}

\def\t{\textstyle}

\def\s{\scriptstyle}

\def\ss{\scriptscriptstyle}

\def\ns{\normalsize}


\def\fract#1#2{\hbox{\small$\t\frac{\vrule width0pt depth1.2pt\t#1}

{\vrule width0pt height9pt\t#2}$}}

\def\fractt#1#2{\hbox{\small$\t\frac{\t#1}{\t#2}$}}

\def\fracd#1#2{\hbox{\small$\d\frac{#1}{#2}$}}


\endinput

%%

%% End of file `textbook.sty'.



<< предыдущая страница