summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/caption/caption.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-10-27 17:51:15 +0000
committerKarl Berry <karl@freefriends.org>2007-10-27 17:51:15 +0000
commit4c1269d4c5953786fff1af6ed5c07fc595e91fa3 (patch)
tree82c47458c73123a2432fad79b6d9903c4d1e86eb /Master/texmf-dist/tex/latex/caption/caption.sty
parent810688d38ba9b6cde74eb9a577ce38ea228ec677 (diff)
caption 3.1d (26oct07)
git-svn-id: svn://tug.org/texlive/trunk@5284 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/caption/caption.sty')
-rw-r--r--Master/texmf-dist/tex/latex/caption/caption.sty27
1 files changed, 14 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/caption/caption.sty b/Master/texmf-dist/tex/latex/caption/caption.sty
index 06e20a785ed..6b9a5319ccb 100644
--- a/Master/texmf-dist/tex/latex/caption/caption.sty
+++ b/Master/texmf-dist/tex/latex/caption/caption.sty
@@ -28,10 +28,10 @@
%% caption-eng.tex, and caption-rus.tex.
%%
\NeedsTeXFormat{LaTeX2e}[1994/12/01]
-\ProvidesPackage{caption}[2007/10/17 v3.1c Customising captions (AR)]
+\ProvidesPackage{caption}[2007/10/25 v3.1d Customising captions (AR)]
\newcommand*\caption@Info[1]{\PackageInfo{caption}{#1\@gobble}}
\@onlypreamble\caption@Info
-\RequirePackage{caption3}[2007/10/17] % needs v3.1c or newer
+\RequirePackage{caption3}[2007/10/25] % needs v3.1d or newer
\@ifpackageloaded{caption2}{%
\caption@Error{%
You can't use both, the (obsolete) caption2 *and*\MessageBreak
@@ -185,7 +185,7 @@
\DeclareCaptionOption{compatibility}[1]{\caption@setbool{compatibility}{#1}}
\@onlypreamble@key{caption}{compatibility}
\DeclareCaptionOptionNoValue*{normal}{%
- \caption@setformat{normal}%
+ \caption@setformat{plain}%
\caption@setjustification{justified}}
\DeclareCaptionOptionNoValue*{isu}{%
\caption@setformat{hang}%
@@ -194,13 +194,13 @@
\caption@setformat{hang}%
\caption@setjustification{justified}}
\DeclareCaptionOptionNoValue*{center}{%
- \caption@setformat{normal}%
+ \caption@setformat{plain}%
\caption@setjustification{centering}}
\DeclareCaptionOptionNoValue*{anne}{%
- \caption@setformat{normal}%
+ \caption@setformat{plain}%
\caption@setjustification{centerlast}}
\DeclareCaptionOptionNoValue*{centerlast}{%
- \caption@setformat{normal}%
+ \caption@setformat{plain}%
\caption@setjustification{centerlast}}
\DeclareCaptionOptionNoValue*{scriptsize}{\def\captionfont{\scriptsize}}
\DeclareCaptionOptionNoValue*{footnotesize}{\def\captionfont{\footnotesize}}
@@ -221,10 +221,10 @@
\caption@setbool{ruled}{0}
\DeclareCaptionOptionNoValue*{ruled}{\caption@setbool{ruled}{1}}
\DeclareCaptionOptionNoValue*{flushleft}{%
- \caption@setformat{normal}%
+ \caption@setformat{plain}%
\caption@setjustification{raggedright}}
\DeclareCaptionOptionNoValue*{flushright}{%
- \caption@setformat{normal}%
+ \caption@setformat{plain}%
\caption@setjustification{raggedleft}}
\DeclareCaptionOptionNoValue*{oneline}{\caption@setbool{slc}{1}}
\DeclareCaptionOptionNoValue*{ignoreLTcapwidth}{%
@@ -255,10 +255,11 @@
\newcommand*\caption@settype{%
\caption@@settype{}}
\newcommand*\caption@@settype[1]{%
- \caption@teststar{\caption@@@settype{#1}}\@gobble\@firstofone}
+ \caption@teststar{\caption@@@settype{#1}}\@firstoftwo\@secondoftwo}
\newcommand*\caption@@@settype[3]{%
\caption@Debug{type=#3}%
- \caption@checkgrouplevel{#1}{\captionsetup{#1type#2\@gobble*=#3}}%
+ \caption@checkgrouplevel{#1}{%
+ \captionsetup{#1type#2*\@empty=...}#2{ or \@backslashchar#1captionof}{}}%
\@ifundefined{@#1captype}{}{%
\edef\@tempa{#3}%
\expandafter\ifx\csname @#1captype\endcsname\@tempa \else
@@ -270,7 +271,7 @@
\@nameuse{#1caption@settypehook}%
\expandafter\caption@setoptions\csname @#1captype\endcsname
\let\caption@ifrefstepcounter\@secondoftwo
- #2{% \@gobble or \@firstofone
+ #2{}{%
\let\@currentlabel\caption@undefinedlabel
\ifx\caption@ORI@label\@undefined
\let\caption@ORI@label\label
@@ -293,7 +294,7 @@
\expandafter\edef\csname #1caption@grouplevel\endcsname{%
\the\currentgrouplevel}%
\else
- \caption@Error{\string#2 outside group or environment}%
+ \caption@Error{\string#2\MessageBreak outside box or environment}%
\fi
}{}}
\fi
@@ -1108,7 +1109,7 @@
\caption@prepareslc
\fi
\edef\@tempa{\expandafter\noexpand\@car#1\@nil}%
- \if\@tempa*
+ \if\@tempa*%
\let\@tempa\@firstofone
\else\if\@tempa[%]
\let\@tempa\@firstofone