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

Полуфабрикат стилевого пакета LATEX2 для выполнения задания

\NeedsTeXFormat{LaTeX2e} \ProvidesClass{textbook}

[1996/05/08 v13

Standard LaTeX document class]


\ExecuteOptions{a4paper,12pt,twoside,onecolumn,final,openany}

\usepackage{graphicx}


%%%%%%%%%%%%%%%%%%%%%%% Font Parameters %%%%%%%%%%%%%%%%%%%%%%%%%%%


\renewcommand\normalsize{%

\@setfontsize\normalsize\@xipt{13.68}%играю с параметром @xivpt{7} \@viiipt{9.5} \@xpt 10\p@

\abovedisplayskip 14.4\p@ \@plus3.6\p@ \@minus8.4\p@

\abovedisplayshortskip \z@ \@plus3.6\p@

\belowdisplayshortskip 7.8\p@ \@plus4.2\p@ \@minus3.6\p@

\belowdisplayskip\abovedisplayskip

\let\@listi\@listI}

\normalsize

\renewcommand\small{%

\@setfontsize\small\@xpt{11.5}%%играю с параметром

\abovedisplayskip 12\p@ \@plus3\p@ \@minus7\p@

\abovedisplayshortskip \z@ \@plus3\p@

\belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@

\belowdisplayskip\abovedisplayskip

\let\@listi\@listI}

\normalsize

\renewcommand\footnotesize{%

\@setfontsize\footnotesize\@ixpt{9.7}%%играю с параметром

\abovedisplayskip 11\p@ \@plus3\p@ \@minus6\p@

\abovedisplayshortskip \z@ \@plus3\p@

\belowdisplayshortskip 6.5\p@ \@plus3.5\p@ \@minus3\p@

\def\@listi{\leftmargin\leftmargini

\topsep 9\p@ \@plus3\p@ \@minus5\p@

\parsep 4.5\p@ \@plus2\p@ \@minus\p@

\itemsep \parsep}%

\belowdisplayskip \abovedisplayskip

}

\renewcommand\scriptsize{%

\@setfontsize\scripysize\@viiipt\@xpt%играю с параметром

\abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@

\abovedisplayshortskip \z@ \@plus3\p@

\belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@

\def\@listi{\leftmargin\leftmargini


\topsep 6\p@ \@plus2\p@ \@minus2\p@

\parsep 3\p@ \@plus2\p@ \@minus\p@

\itemsep \parsep}%

\belowdisplayskip \abovedisplayskip

}

\renewcommand\tiny{\@setfontsize\tiny\@vipt{7.5}}%играю с параметром

\renewcommand\large{\@setfontsize\large\@xiipt{15}}%играю с параметром

\renewcommand\Large{\@setfontsize\Large\@xiipt{20}}%играю с параметром

\renewcommand\LARGE{\@setfontsize\LARGE\@xxpt{23.7}}%играю с параметром


\font\normalhuge=lhss17 at 23.6pt %lhss17 lhu10 29.86

\font\boldhuge=lhbx12 at 23.6pt%29.86

\font\chapnumfont=lhss17 at 56pt %lhssbx10 lhss17! lhr17 lhu10


\headheight=14.4\p@

%\headsep=.3in

\headsep=.2in

\topskip=11.4\p@%14.4

\footskip=36\p@

\if@compatibility\maxdepth=4.8\p@\else\maxdepth=.5\topskip\fi


\footnotesep=8.4\p@

\setlength{\skip\footins}{13\p@ \@plus 4.8\p@ \@minus 2.4\p@}

\setlength\floatsep{14.4\p@ \@plus 2.4\p@ \@minus 4.8\p@}

\setlength\textfloatsep{24\p@ \@plus 2.4\p@ \@minus 4.8\p@}

\setlength\intextsep{17.28\p@ \@plus 4.8\p@ \@minus 4.8\p@}

\setlength\dblfloatsep{17.28\p@ \@plus 2.4\p@ \@minus 4.8\p@}

\setlength\dbltextfloatsep{24\p@ \@plus 2.4\p@ \@minus 4.8\p@}

\setlength\@fptop{0\p@ \@plus 1fil}

\setlength\@fpsep{12\p@ \@plus 2fil}

\setlength\@fpbot{0\p@ \@plus 1fil}

\setlength\@dblfptop{0\p@ \@plus 1fil}

\setlength\@dblfpsep{12\p@ \@plus 2fil}

\setlength\@dblfpbot{0\p@ \@plus 1fil}

\setlength\partopsep{3.6\p@ \@plus 2.4\p@ \@minus 2.4\p@}


%%%%%%%%%%%%%%%%%%%%%%% Page Parameters %%%%%%%%%%%%%%%%%%%%%%%%%%%


\newlength\basewidth

\newlength\picturewidth

\basewidth =120mm%играю с параметром

\picturewidth=.31\basewidth \textwidth=.69\basewidth



\@tempdima =\paperwidth

\advance\@tempdima by -\basewidth

\oddsidemargin =.5\@tempdima

\advance\oddsidemargin by -1.1in


\evensidemargin =\@tempdima

\advance\evensidemargin by -2.2in

\advance\evensidemargin by -\oddsidemargin

\advance\evensidemargin by \picturewidth


\advance\oddsidemargin by -6.8mm

\advance\evensidemargin by 6.8mm


\textheight =1.41\basewidth

\@tempdima =\paperheight

\advance\@tempdima by -\textheight

\topmargin =.5\@tempdima

\advance\topmargin by -1in


\flushbottom

\pretolerance=1000

\tolerance=2000

\hbadness=2000

\hfuzz=2.5pt


\newif\ifwide

\widefalse


%%%%%%%%%%%%%%%%%%%%%% Wide Text Environment %%%%%%%%%%%%%%%%%%%%%%%%


\newbox\partialpage

\def\wide{\par\goodbreak

\begingroup

\global\widetrue

\pretolerance=100

\tolerance=200

\hbadness=1000

\hfuzz=.1pt

\hsize=\basewidth

\textwidth=\hsize

\advance\evensidemargin by-\picturewidth

\bgroup

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

\ifodd\count0%

\hbox to\hsize{\box\partialpage\hss}

\else%

\hbox to\hsize{\hskip\picturewidth\box\partialpage\hss}\fi

\egroup

}

\def\endwide{\par\goodbreak

\endgroup

\bgroup

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

\ifodd\count0%

\hbox to\basewidth{\box\partialpage\hss}

\else%

\hbox to\basewidth{\hskip-\picturewidth%

\box\partialpage\hss}\fi

\egroup

\global\widefalse


}


%%%%%%%%%%%%%%%%%%%%%%%%% Page Marking %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\renewcommand\thepage{{\arabic{page}}}

\renewcommand\@evenhead{\vbox{%

\hbox to \basewidth{\noindent{\small\bf\thepage}\vrule%

width-1pt height5pt depth4pt\hss{\small\slshape\leftmark}\hss}\hrule}}

\renewcommand\@oddhead{\vbox{%

\hbox to \basewidth{\noindent\vrule width-1pt height5pt depth4pt%

\hss{\small\slshape\rightmark}\hss{\small\bf\thepage}}\hrule}}


\renewcommand\chaptermark[1]{

\markboth {%

% \ifnum \c@secnumdepth >\m@ne

% \if@mainmatter

% \@chapapp\ \thechapter.\hskip 1em%

% \fi

% \fi

#1}{}}

\renewcommand\sectionmark[1]{

\markright {%

\ifnum \c@secnumdepth >\z@

\thesection\hskip 1em%

\fi

#1}}


%%%%%%%%%%%%%%%%%%%%%%%%% Sectioning %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


\renewcommand\chapter{\clearpage

\thispagestyle{empty}

\global\@topnum\z@

\@afterindenttrue

\secdef\@chapter\@schapter}

\renewcommand\thechapter{\arabic{chapter}}


\newbox\headbox

\newbox\numberbox

\newlength\chapnumwidth

\settowidth{\chapnumwidth}{\chapnumfont12}

\newlength\chapnumsep

\chapnumsep20pt


\renewcommand\@makechapterhead[1]{

\bgroup

\hsize=\chapnumwidth

\textwidth=\hsize

\baselineskip=25pt

\noindent\hfill\chapnumfont\thechapter\hfill\break%

\Large\sf{г}\hfill{л}\hfill{а}\hfill{в}\hfill{а}\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

\normalhuge\noindent\uppercase{#1}\par\nobreak

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

\egroup

\@tempdima=\ht\numberbox

\advance\@tempdima by\dp\numberbox

\global\ht\numberbox=\z@

\global\dp\numberbox=\z@

\@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

\wide

\noindent\hbox to\basewidth{%

\ifodd\count0\box\headbox\hfil\box\numberbox%

\else\box\numberbox\hfil\box\headbox%

\fi}

\vskip\@tempdima

\endwide

\advance\@tempdima by-.25\textheight

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

}


\renewcommand\@makeschapterhead[1]{

\bgroup

\baselineskip=25pt

\chapnumfont\thechapter\hfill\break%

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

\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

\noindent\normalhuge\uppercase{#1}\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

\wide

\noindent\hbox to\basewidth{%

\ifodd\count0\box\headbox\hfill%

\else\hfill\box\headbox%

\fi}

\vskip\@tempdima

\endwide

\advance\@tempdima by-.25\textheight

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

}


\newcount\pointer

\newcount\labels

\pointer=\z@

\labels=\z@


\renewcommand\@seccntformat[1]{\csname the#1\endcsname\hskip.5em}

\renewcommand\thesection{\S\hspace{.25em}\arabic{section}.}

%\renewcommand\thesection{\S\hspace{.25em}\arabic{section}}


\renewcommand\section{\pointer=\z@\labels=\z@%

\@@startsection {section}{1}{\z@}%

{3.5ex \@plus 1ex \@minus .2ex}{2.3ex \@plus.2ex}%

{\raggedright\normalfont\Large\sf}}


\newcommand\@@startsection[6]{\if@noskipsec \leavevmode \fi

\par \@tempskipa #4\relax

\@afterindenttrue

\ifdim \@tempskipa <\z@

\@tempskipa -\@tempskipa \@afterindentfalse

\fi

\if@nobreak \everypar{}\else

\addpenalty\@secpenalty\addvspace\@tempskipa

\fi

\@ifstar

{\@@ssect{#3}{#4}{#5}{#6}}%

{\@@sect{#1}{#2}{#3}{#4}{#5}{#6}}

}


\newcommand\@@sect[7]{\@sect{#1}{#2}{#3}{#4}{#5}{#6}[#7]{\uppercase{#7}}}

\newcommand\@@ssect[5]{\@ssect{#1}{#2}{#3}{#4}{\uppercase{#5}}}


%\renewcommand{\l@ub}{1}

%{subsection}[section]

%{subse}

%[section]

%\newcounter{ub}[section]%

%\renewcommand\theub{\arabic{section}.\arabic{ub}.}%


%\renewcommand\subsection{\@startsection{ub}{2}{\parindent}%

%\newcommand\subse{\@startsection{ub}{2}{\parindent}%

%{1.5ex\@plus .5ex \@minus .2ex}%

%{-1ex \@plus .2ex}%

%{-\baselineskip}%

%{\normalfont\normalsize\bfseries}}

% {}{\rm #1}


%\S\hspace{.25em}\arabic{section}.\arabic{subsection}.

%\renewcommand\thesubsection{\hspace{.25em}\arabic{subsection}.}

\renewcommand\thesubsection{\hspace{.25em}\arabic{section}.\arabic{subsection}.}

\renewcommand\subsection{\@startsection{subsection}{2}{\parindent}%

{1.5ex\@plus .5ex \@minus .2ex}{1ex \@plus .2ex}%

{\normalfont\normalsize\bfseries}}


\renewcommand\thesubsubsection{\hspace{.25em}\arabic{subsubsection}.}

\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\parindent}%

{.5ex\@plus .2ex \@minus .1ex}{.3ex \@plus .1ex}%

{\normalfont\normalsize\bfseries}}


\newcounter{point}[section]

\def\thepoint{}

\newcommand\point[1]{

%\renewcommand\thepoint{\arabic{section}\arabic{point}\hskip

\renewcommand\thepoint{\arabic{section}.\arabic{point}.\hskip

-.3em$^{\mbox{\small\bf#1}}$}%

\@startsection{point}{2}{\parindent}%

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

{\normalfont\normalsize\bfseries}{}}


\newcounter{listgr}[section]

\def\thelistgr{}

\newcommand\listgr[1]{

\renewcommand\thelistgr{\hskip

-.3em$^{\mbox{\small\bf#1}}$}%

\@startsection{listgr}{2}{\parindent}%

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

{\normalfont\normalsize\bfseries}{}}

%%%%%%%%%%%%%%%%%%%%%%%%% Open Questions %%%%%%%%%%%%%%%%%%%%%%%%%%%

%\newcounter{teorema}[section]


%\renewcommand\theteorema{}

%\newcommand\teorema[2]{

% \@startsection{teorema}{2}{\parindent}

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

% {\normalfont\normalsize\bfseries}{\hspace{-2mm}}{\normalfont\normalsize\bfseries#1

% \ \arabic{section}.\arabic{teorema}. \rm}{#2}}

%Теорема \parindent \arabic{section}.\arabic{teorema}.


\newcounter{teor}[section]

\renewcommand\theteor{}

\newcommand\teor[2]{

\@startsection{teor}{2}{\parindent}

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

{\normalfont\normalsize\bfseries}{\hspace{-2mm}}{\normalfont\normalsize\bfseries#1.

\rm}{#2}}

%


\newcounter{define}[section]

\renewcommand\thedefine{Определение \arabic{section}.\arabic{define}.}

\newcommand\define[1]{

\@startsection{define}{2}{\parindent}

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

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

%


\newcounter{question}[section]

\renewcommand\thequestion{Вопрос.}

\newcommand\question[1]{

\@startsection{question}{2}{\parindent}

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

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


\newcounter{lemma}[section]

\renewcommand\thelemma{Лемма.}

\newcommand\lemma[1]{

\@startsection{lemma}{2}{\parindent}

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

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


%\newcounter{proof}[section]

%\renewcommand\theproof{Доказательство.}

%\newcommand\proof[1]{

% \@startsection{proof}{2}{\parindent}

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

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


\newcounter{remark}[section]


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