summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/caption/ltcaption.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-11 22:51:57 +0000
committerKarl Berry <karl@freefriends.org>2011-10-11 22:51:57 +0000
commit662cda48313c1615e5b117f827f245bd4a4fc22a (patch)
tree01e91550e909592ad97621e006e88bb7245ab8f0 /Master/texmf-dist/source/latex/caption/ltcaption.dtx
parentcb7441b1e993714d541a3ac8ec26843cd16a301b (diff)
caption (11oct11)
git-svn-id: svn://tug.org/texlive/trunk@24268 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/caption/ltcaption.dtx')
-rw-r--r--Master/texmf-dist/source/latex/caption/ltcaption.dtx19
1 files changed, 14 insertions, 5 deletions
diff --git a/Master/texmf-dist/source/latex/caption/ltcaption.dtx b/Master/texmf-dist/source/latex/caption/ltcaption.dtx
index 6dae5f9edf0..10a1deb075b 100644
--- a/Master/texmf-dist/source/latex/caption/ltcaption.dtx
+++ b/Master/texmf-dist/source/latex/caption/ltcaption.dtx
@@ -25,7 +25,7 @@
% caption-eng.tex, and caption-rus.tex.
%
% \fi
-% \CheckSum{343}
+% \CheckSum{347}
%
% \iffalse
%<*driver>
@@ -451,7 +451,7 @@
%
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{ltcaption}[2011/01/01 v1.2a longtable captions (AR)]
+\ProvidesPackage{ltcaption}[2011/09/12 v1.3 longtable captions (AR)]
% \end{macrocode}
%
% \begin{macrocode}
@@ -518,13 +518,20 @@
% \begin{macro}{\CaptionTextFont}
% These commands are provided by the \package{NTG} document classes.
% To make this package work with other document classes as well,
-% we need to define |\CaptionLabelFont| \& |\CaptionTextFont| here.
+% we need to define |\Caption|\-|Label|\-|Font| \& |\Caption|\-|Text|\-|Font| here.
% \begin{macrocode}
\providecommand*\CaptionLabelFont{}
\providecommand*\CaptionTextFont{}
% \end{macrocode}
% \end{macro}
% \end{macro}
+% \begin{macro}{\CaptionTextFont}
+% \changes{v1.3}{2011/09/12}{This macro added}
+% Additionally, we define |\Caption|\-|Label|\-|Separator| which is predefined as colon.
+% \begin{macrocode}
+ \providecommand*\CaptionLabelSeparator{:}
+% \end{macrocode}
+% \end{macro}
%
% \begin{macrocode}
}
@@ -614,6 +621,7 @@
% \changes{v1.1}{2007/04/20}{\cs{LT@@makecaption} added}
% \changes{v1.1}{2007/06/27}{Adapted to the \package{floatrow} package by Olga Lapko}
% \changes{v1.2}{2007/03/28}{Uses \cs{LTcapskip} instead of \cs{baselineskip} now}
+% \changes{v1.3}{2011/09/12}{Usage of \cs{CaptionLabelSeparator} added}
% |\LT@makecaption|\marg{cmd}\marg{label}\marg{text}\par
% \smallskip
% Original code:
@@ -635,9 +643,10 @@
% \begin{macrocode}
\renewcommand\LT@makecaption[3]{%
\LT@@makecaption{%
- \sbox\@tempboxa{#1{{\CaptionLabelFont#2:} }\CaptionTextFont#3}%
+ \sbox\@tempboxa{%
+ #1{{\CaptionLabelFont#2\CaptionLabelSeparator} }\CaptionTextFont#3}%
\ifdim\wd\@tempboxa>\hsize
- #1{\CaptionLabelFont{#2:} }\CaptionTextFont#3%
+ #1{{\CaptionLabelFont#2\CaptionLabelSeparator} }\CaptionTextFont#3%
\else
\hbox to\hsize{\hfil\box\@tempboxa\hfil}%
\fi