summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/disser/floats.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-05-19 16:20:14 +0000
committerKarl Berry <karl@freefriends.org>2007-05-19 16:20:14 +0000
commit1e19960b463415b2fb8a096f7ce4f9b2a50410f5 (patch)
tree434820857adb1d7bb63edcb5c441d7ca8e7f33cc /Master/texmf-dist/source/latex/disser/floats.dtx
parent9c9ebf7d3184800d2abdff96d70099836b153548 (diff)
new russian-oriented package disser (3mar07)
git-svn-id: svn://tug.org/texlive/trunk@4317 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/disser/floats.dtx')
-rw-r--r--Master/texmf-dist/source/latex/disser/floats.dtx128
1 files changed, 128 insertions, 0 deletions
diff --git a/Master/texmf-dist/source/latex/disser/floats.dtx b/Master/texmf-dist/source/latex/disser/floats.dtx
new file mode 100644
index 00000000000..f989fbd24cb
--- /dev/null
+++ b/Master/texmf-dist/source/latex/disser/floats.dtx
@@ -0,0 +1,128 @@
+% \begin{macrocode}
+
+%<*floats>
+% \end{macrocode}
+%
+% \subsection{Плавающие объекты}
+%
+% \subsubsection{Параметры}
+%
+% Вертикальный интервал перед подписью.
+% \begin{macrocode}
+\newlength\abovecaptionskip
+\setlength\abovecaptionskip{10\p@}
+% \end{macrocode}
+% Вертикальный интервал за подписью.
+% \begin{macrocode}
+\newlength\belowcaptionskip
+\setlength\belowcaptionskip{0\p@}
+% \end{macrocode}
+% \DescribeMacro{\captionlabeldelim}
+% Разделитель метки (постоянная часть + номер) и текста подписи.
+% \begin{macrocode}
+\newcommand\captionlabeldelim{.}
+% \end{macrocode}
+% \DescribeMacro{\captionfont}
+% Шрифт подписи.
+% \begin{macrocode}
+\newcommand\captionfont{\small}
+% \end{macrocode}
+% \DescribeMacro{\captionlabelfont}
+% Шрифт метки.
+% \begin{macrocode}
+\newcommand\captionlabelfont{\small\bfseries\selectfont}
+% \end{macrocode}
+% \DescribeMacro{\@makecaption}
+% Формат подписи.
+% \begin{macrocode}
+\long\def\@makecaption#1#2{%
+ \vskip\abovecaptionskip
+ \sbox\@tempboxa{{\captionlabelfont #1\captionlabeldelim} {\captionfont #2}}%
+ \ifdim \wd\@tempboxa >\hsize
+ {{\captionlabelfont #1\captionlabeldelim} {\captionfont #2}}\par
+ \else
+ \global \@minipagefalse
+ \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
+ \fi
+ \vskip\belowcaptionskip
+}
+
+% \end{macrocode}
+% Рисунок.
+% \begin{macrocode}
+\renewcommand\thefigure{\ifnum \c@chapter>\z@\thechapter.\fi\@arabic\c@figure}
+
+\def\fps@figure{tbp}
+\def\ftype@figure{1}
+% \end{macrocode}
+% \DescribeMacro{\ext@figure}
+% Расширение файла со списком иллюстраций.
+% \begin{macrocode}
+\def\ext@figure{lof}
+% \end{macrocode}
+% \DescribeMacro{\fnum@figure}
+% Формат заголовка подписи (Рис.~1).
+% \begin{macrocode}
+\def\fnum@figure{\figurename~\thefigure}
+
+% \end{macrocode}
+%
+% \subsection{Таблица}
+%
+% Формат номера.
+% \begin{macrocode}
+\renewcommand\thetable{\ifnum \c@chapter>\z@\thechapter.\fi\@arabic\c@table}
+
+% \end{macrocode}
+%
+% Промежуток между колонками в массиве (окружение |array|).
+% \begin{macrocode}
+\setlength\arraycolsep{5\p@}
+% \end{macrocode}
+% Промежуток между колонками в таблице.
+% \begin{macrocode}
+\setlength\tabcolsep{6\p@}
+% \end{macrocode}
+% Толщина линейки в массиве.
+% \begin{macrocode}
+\setlength\arrayrulewidth{.4\p@}
+% \end{macrocode}
+% Промежуток между линиями в двойной линейке |\hrule\hrule|.
+% \begin{macrocode}
+\setlength\doublerulesep{2\p@}
+% \end{macrocode}
+% Промежуток между столбцами в окружении |tabular|.
+% \begin{macrocode}
+\setlength\tabbingsep{\labelsep}
+% \end{macrocode}
+% Промежуток, добавляемый при наличии сноски при использовании окружения |minipage|.
+% \begin{macrocode}
+\skip\@mpfootins = \skip\footins
+% \end{macrocode}
+% Промежуток между линией и текстом в |\fbox|.
+% \begin{macrocode}
+\setlength\fboxsep{3\p@}
+% \end{macrocode}
+% Толщина линии для |\fbox|.
+% \begin{macrocode}
+\setlength\fboxrule{.4\p@}
+% \end{macrocode}
+% Окружения.
+% \DescribeEnv{table}
+% \DescribeEnv{table*}
+% \begin{macrocode}
+\newenvironment{table}{\@float{table}}{\end@float}
+\newenvironment{table*}{\@dblfloat{table}}{\end@dblfloat}
+
+\def\fps@table{tbp}
+\def\ftype@table{2}
+% \end{macrocode}
+% Расширение файла, содержащего сгенерированный список таблиц.
+% \begin{macrocode}
+\def\ext@table{lot}
+% \end{macrocode}
+% Формат заголовка подписи (Таблица~1).
+% \begin{macrocode}
+\def\fnum@table{\tablename~\thetable}
+%</floats>
+% \end{macrocode}