summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/floatrow/sample-longtable-rus.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-04-01 00:27:52 +0000
committerKarl Berry <karl@freefriends.org>2008-04-01 00:27:52 +0000
commit396c32d3bf0da9bc7b24122e15b65454634fe851 (patch)
treeb04e1f04598d0a16ab80286121c034d873a6dd65 /Master/texmf-dist/doc/latex/floatrow/sample-longtable-rus.tex
parent574b15599969a9b3af0008474d64951e647b6439 (diff)
floatrow 0.2c
git-svn-id: svn://tug.org/texlive/trunk@7271 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/floatrow/sample-longtable-rus.tex')
-rw-r--r--Master/texmf-dist/doc/latex/floatrow/sample-longtable-rus.tex230
1 files changed, 97 insertions, 133 deletions
diff --git a/Master/texmf-dist/doc/latex/floatrow/sample-longtable-rus.tex b/Master/texmf-dist/doc/latex/floatrow/sample-longtable-rus.tex
index 23c8fb6e965..e62575faa9f 100644
--- a/Master/texmf-dist/doc/latex/floatrow/sample-longtable-rus.tex
+++ b/Master/texmf-dist/doc/latex/floatrow/sample-longtable-rus.tex
@@ -2,7 +2,8 @@
% of Continued and Finished pages of long table
\begin{filecontents}{r-longtable.tex}
\begin{longtable}{@{}lll}
-\caption{The ISOGRK3 entity set and more more more more more more more more more more more more more more more more more more text}\\
+\caption{The ISOGRK3 entity set and more more more more more more more more more
+ more more more more more more more more more text}\\
\bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\ \hline
\endfirsthead
\LTcontcaption{}\\
@@ -15,7 +16,6 @@
\endfoot
\hline \multicolumn{3}{@{}r@{}}{(\emph{окончание на сл. странице})}
\endprelastfoot
-\noalign{\gdef\Continued{}\gdef\ContTable{}}
\hline
\endlastfoot
alpha & GREEK SMALL LETTER ALPHA & 03B1\\
@@ -218,33 +218,33 @@ zeta & SMALL LETTER ZETA & 03B6\\
\advance\evensidemargin-.25in
\advance\oddsidemargin-.25in
-\usepackage{array,fr-longtable}
-\usepackage{floatrow}
\usepackage[labelsep=newline]{caption}
+\usepackage{floatrow}
+\usepackage{array,fr-longtable}
+\providecommand\floatsetup[2][]{}
\floatsetup[longtable]{font={small,sf},LTcapwidth=table,margins=centering,
captionskip=5pt}
-\captionsetup[longtable]{font={small,rm}}
+\captionsetup[longtable]{font=small}
-\DeclareCaptionLabelFormat{LTrightlabelcont}%
- {\rightline{\bothIfFirst{#1}{ }#2\ContTable}}
-\DeclareCaptionLabelFormat{labelcont}%
- {\rightline{\bothIfFirst{\ContTable}{ }#2}}
-%
-% Then define text for continued/finished table head, \ldots
-\newcommand\ContTable{}
+\DeclareCaptionLabelFormat{labelcontI}%
+ {\rightline{\bothIfFirst{#1}{ }#2 (\emph{продолжение})}}
+\DeclareCaptionLabelFormat{labelfinI}%
+ {\rightline{\bothIfFirst{#1}{ }#2 (\emph{окончание})}}
+
+\DeclareCaptionLabelFormat{labelcontIII}%
+ {\rightline{\emph{Продолжение табл.} #2}}
+\DeclareCaptionLabelFormat{labelfinIII}%
+ {\rightline{\emph{Окончание табл.} #2}}
%
-% caption for continued head, \ldots
+% Caption for continued head, \ldots
\newcommand\LTcontcaptionI[1]{%
- \noalign{\gdef\ContTable{\captioncontinued}}
- \caption[]{#1}}
+ \captionsetup{labelformat=labelcontI}\caption[]{#1}}
%
-% and caption for finished head. (At the |\lastfoot| definition the |\ContTable|
-% must be defined as empty).
+% and caption for finished head.
\newcommand\LTfincaptionI[1]{%
- \noalign{\gdef\ContTable{\captionfinished}}
- \caption[]{#1}}
+ \captionsetup{labelformat=labelfinI}\caption[]{#1}}
%
-% caption for continued head, \ldots
+% Caption for continued head, \ldots
\newcommand\LTcontcaptionII{%
\caption[]{\emph{Продолжение}}}
%
@@ -252,24 +252,13 @@ zeta & SMALL LETTER ZETA & 03B6\\
\newcommand\LTfincaptionII{%
\caption[]{\emph{Окончание}}}
%
-% caption for continued head, \ldots
+% Caption for continued head, \ldots
\newcommand\LTcontcaptionIII[1]{%
- \noalign{\gdef\ContTable{\emph{Продолжение табл.}}}
- \caption[]{#1}}
+ \captionsetup{labelformat=labelcontIII}\caption[]{#1}}
%
-% and caption for finished head. (At the |\lastfoot| definition the
-% |\ContTable| must be defined as empty).
+% and caption for finished head.
\newcommand\LTfincaptionIII[1]{%
- \noalign{\gdef\ContTable{\emph{Окончание табл.}}}
- \caption[]{#1}}
-
-%
-% The examples of continued and finished heads.
-\newcommand\captioncontinued{. \emph{Продолжение}}
-\newcommand\captionfinished{. \emph{Окончание}}
-
-%
-% Then define text for continued/finished table head, \ldots
+ \captionsetup{labelformat=labelfinIII}\caption[]{#1}}
\begin{document}
@@ -284,35 +273,9 @@ zeta & SMALL LETTER ZETA & 03B6\\
\verb| margins=centering,captionskip=5pt}|
\verb|\captionsetup[longtable]{font={small,rm}}|
\end{quote}
-В~данном файле в~таблице используется рубленый шрифт, чтобы восстановить семейство
-шрифта основного текста для подписи в~настройках подписи задана опция, восстанавливающая
-нормальный шрифт.
-
-Начало таблицы во всех примерах выглядит следующим образом:
-\begin{quote}\obeylines\parskip0pt
-\verb|\begin{longtable}{@{}lll}|
-\verb|\caption{The ISOGRK3 entity set and more more more more more more|
-\verb| more more more more more more more more more more more text}\\|
-\verb| \bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\|
-\verb|\hline|
-\verb|\endfirsthead|
-\verb|\LTcontcaption{}\\|
-\verb| \bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\|
-\verb|\hline|
-\verb|\endhead|
-\verb|\LTfincaption{}\\|
-\verb| \bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\|
-\verb|\hline|
-\verb|\endlasthead|
-\verb| \hline \multicolumn{3}{@{}r@{}}{\emph{Continued on next page}}|
-\verb|\endfoot|
-\verb| \hline \multicolumn{3}{@{}r@{}}{\emph{Finished on next page}}|
-\verb|\endprelastfoot|
-\verb|\noalign{\gdef\Continued{}\gdef\ContTable{}}|
-\verb| \hline|
-\verb|\endlastfoot|
-\end{quote}
-В~блоке команды \verb|\lastfoot| определения используемых в~примерах команд \verb|\Continued| и~\verb|\ContTable| глобально «опустошаются».
+В~данном файле в~таблице используется рубленый шрифт, версия пакета \textsf{caption}~3.1
+решает эту проблему. Для версии \textsf{caption}~3.0q, чтобы восстановить семейство
+шрифта основного текста для подписи в~настройках подписи добавлена опция |rm|, восстанавливающая нормальный шрифт.
Помимо команд, определённых пакетом \textsf{fr-longtable}: \verb|\endlasthead|
для задания последней шапки и~\verb|\endprelastfoot| \cdash--- для предпоследнего подвала,
@@ -323,35 +286,43 @@ zeta & SMALL LETTER ZETA & 03B6\\
\section{Вариант~I}
-Для первого примера определены специальные настройки \texttt{LTrightlabelcont} для
-нумерационной части табличного заголовка
-(в~данном файле они заданы в~группе с~многостраничной таблицей, но в~обычном документе
-это задаётся в~преамбуле в~настройках \verb|\captionsetup[longtable]|):
+Для первого примера определены специальные настройки для
+нумерационной части табличного заголовка. Это задаётся в~преамбуле:
\begin{quote}\obeylines\parskip0pt
-\verb|\DeclareCaptionLabelFormat{LTrightlabelcont}%|
-\verb| {\rightline{\bothIfFirst{#1}{ }#2\ContTable}}|
+\verb|\DeclareCaptionLabelFormat{labelcontI}%|
+\verb| {\rightline{\bothIfFirst{#1}{ }#2 (\emph{продолжение})}}|
+\verb|\DeclareCaptionLabelFormat{labelfinI}%|
+\verb| {\rightline{\bothIfFirst{#1}{ }#2 (\emph{окончание})}}|
\end{quote}
-Следующие определения даются в~командах \verb|\LTcontcaption| и~\verb|\LTfincaption|:
-табличный заголовок, \verb|\caption|, для шапок"=продолжений:
+Код начала таблицы в~этом случае должен выглядеть так:
\begin{quote}\obeylines\parskip0pt
-\verb|\newcommand\LTcontcaption[1]{%|
-\verb| \noalign[]{\gdef\ContTable{\captioncontinued}}|
-\verb| \caption{#1}}|
-\end{quote}
-и~табличный заголовок для последней шапки:
-\begin{quote}\obeylines\parskip0pt
-\verb|\newcommand\LTfincaption[1]{%|
-\verb| \noalign[]{\gdef\ContTable{\captionfinished}}|
-\verb| \caption{#1}}|
+\verb|\begin{longtable}{@{}lll}|
+\verb|\caption{The ISOGRK3 entity set and more more more more more more|
+\verb| more more more more more more more more more more more text}\\|
+\verb| \bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\|
+\verb|\hline|
+\verb|\endfirsthead|
+\verb|\captionsetup{labelformat=labelcontI}\caption[]{}\\|
+\verb| \bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\|
+\verb|\hline|
+\verb|\endhead|
+\verb|\captionsetup{labelformat=labelfinI}\caption[]{}\\|
+\verb| \bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\|
+\verb|\hline|
+\verb|\endlasthead|
+\verb| \hline \multicolumn{3}{@{}r@{}}{(\emph{продолжение|
+\verb| на следующей странице})}|
+\verb|\endfoot|
+\verb| \hline \multicolumn{3}{@{}r@{}}{(\emph{окончание|
+\verb| на следующей странице})}|
+\verb|\endprelastfoot|
+\verb| \hline|
+\verb|\endlastfoot|
\end{quote}
-Команды \verb|\captioncontinued| и~\verb|\captionfinished| определяют слова
-«Продолжение» и~«Окончание».
\begingroup
-\captionsetup[longtable]{labelformat=LTrightlabelcont}
\floatsetup[longtable]{font={Large,sf}}
-%\def\LTlastpage{5}
\let\LTcontcaption\LTcontcaptionI
\let\LTfincaption\LTfincaptionI
\input r-longtable.tex
@@ -361,51 +332,35 @@ zeta & SMALL LETTER ZETA & 03B6\\
\clearpage
\section{Вариант~II}
-Для второго примера
-заданы такие определения \verb|\LTcontcaption| и~\verb|\LTfincaption|:
-для шапки"=продолжения:
-\begin{quote}\obeylines\parskip0pt
-\verb|\newcommand\LTcontcaption{%|
-\verb| \caption[]{\emph{Продолжение}}}|
-\end{quote}
-для последней шапки:
-\begin{quote}\obeylines\parskip0pt
-\verb|\newcommand\LTfincaption{%|
-\verb| \caption[]{\emph{Окончание}}}|
-\end{quote}
-Слова
-«Продолжение» и~«Окончание» заданы в~определениях \verb|\LTcontcaption| и~\verb|\LTfincaption|.
-
-В~данном примере видно, что в~использовании специальных команд
- \verb|\LTcontcaption| и~\verb|\LTfincaption| нет необходимости.
- И~преамбула таблицы может быть задана в~виде:
+В~данном примере видно, что в~использовании специальных настроек
+\verb|labelformat| нет необходимости. И~преамбула таблицы может быть задана в~виде:
\begin{quote}\obeylines\parskip0pt
\verb|\begin{longtable}{@{}lll}|
\verb|\caption{The ISOGRK3 entity set and more more more more more more|
-\verb| more more more more more more more more more more more text}\\|
-\verb| \bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\|
+\verb| more more more more more more more more more more more text}\\|
+\verb| \bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\|
\verb|\hline|
\verb|\endfirsthead|
-\verb|\caption[]{\emph{Continued}}\\|
-\verb| \bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\|
+\verb|\caption[]{\emph{Продолжение}}\\|
+\verb| \bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\|
\verb|\hline|
\verb|\endhead|
-\verb|\caption[]{\emph{Finished}}\\|
-\verb| \bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\|
+\verb|\caption[]{\emph{Окончание}}\\|
+\verb| \bfseries Entity &\bfseries Unicode Name&\bfseries Unicode\\|
\verb|\hline|
\verb|\endlasthead|
-\verb| \hline \multicolumn{3}{@{}r@{}}{\emph{Continued on next page}}|
+\verb| \hline \multicolumn{3}{@{}r@{}}{\emph{Продолжение|
+\verb| на следующей странице}}|
\verb|\endfoot|
-\verb| \hline \multicolumn{3}{@{}r@{}}{\emph{Finished on next page}}|
+\verb| \hline \multicolumn{3}{@{}r@{}}{\emph{Окончание|
+\verb| на следующей странице}}|
\verb|\endprelastfoot|
-\verb|\noalign{\gdef\Continued{}\gdef\ContTable{}}|
\verb| \hline|
\verb|\endlastfoot|
\end{quote}
\begingroup
\captionsetup[table]{labelsep=period,singlelinecheck=no}
-%\def\LTlastpage{5}
\let\LTcontcaption\LTcontcaptionII
\let\LTfincaption\LTfincaptionII
\input r-longtable.tex
@@ -415,37 +370,46 @@ zeta & SMALL LETTER ZETA & 03B6\\
\clearpage
\section{Вариант~III}
-Для третьего варианта используется формат нумерационной части заголовка
-\texttt{LTrightlabelcont}
-(опять же, в~данном файле они заданы в~группе с~многостраничной таблицей, но в~обычном документе
-это задаётся в~преамбуле в~настройках \verb|\captionsetup[longtable]|):
+Для последнего примера определены специальные настройки для
+нумерационной части табличного заголовка. Это задаётся в~преамбуле:
\begin{quote}\obeylines\parskip0pt
-\verb|\DeclareCaptionLabelFormat{labelcont}%|
-\verb| {\rightline{\bothIfFirst{\ContTable}{ }#2}}|
+\verb|\DeclareCaptionLabelFormat{labelcontIII}%|
+\verb| {\rightline{\emph{Продолжение табл.} #2}}|
+\verb|\DeclareCaptionLabelFormat{labelfinIII}%|
+\verb| {\rightline{\emph{Окончание табл.} #2}}|
\end{quote}
-Определения \verb|\LTcontcaption| и~\verb|\LTfincaption|:
-для шапок"=продолжений:
+Код начала таблицы в~этом случае должен выглядеть так:
\begin{quote}\obeylines\parskip0pt
-\verb|\newcommand\LTcontcaptionIII[1]{%|
-\verb| \noalign{\gdef\ContTable{\emph{Continuation of \tablename}}}|
-\verb| \caption[]{#1}}|
-\end{quote}
-для последней шапки:
-\begin{quote}\obeylines\parskip0pt
-\verb|\newcommand\LTfincaptionIII[1]{%|
-\verb| \noalign{\gdef\ContTable{\emph{Finishing of \tablename}}}|
-\verb| \caption[]{#1}}|
+\verb|\begin{longtable}{@{}lll}|
+\verb|\caption{The ISOGRK3 entity set and more more more more more more|
+\verb| more more more more more more more more more more more text}\\|
+\verb| \bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\|
+\verb|\hline|
+\verb|\endfirsthead|
+\verb|\captionsetup{labelformat=labelcontIII}\caption[]{}\\|
+\verb| \bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\|
+\verb|\hline|
+\verb|\endhead|
+\verb|\captionsetup{labelformat=labelfinIII}\caption[]{}\\|
+\verb| \bfseries Entity&\bfseries Unicode Name&\bfseries Unicode\\|
+\verb|\hline|
+\verb|\endlasthead|
+\verb| \hline \multicolumn{3}{@{}r@{}}{(\emph{продолжение|
+\verb| на следующей странице})}|
+\verb|\endfoot|
+\verb| \hline \multicolumn{3}{@{}r@{}}{(\emph{окончание|
+\verb| на следующей странице})}|
+\verb|\endprelastfoot|
+\verb| \hline|
+\verb|\endlastfoot|
\end{quote}
\begingroup
-\captionsetup[table]{labelformat=labelcont}
\floatsetup[longtable]{font={scriptsize,sf}}
-%\def\LTlastpage{5}
\let\scriptsize\tiny
\let\LTcontcaption\LTcontcaptionIII
\let\LTfincaption\LTfincaptionIII
-\renewcommand\ContTable{\tablename}
\input r-longtable.tex