summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty32
1 files changed, 14 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty
index a9641a2aeda..186fab5ffc4 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-caption.sty
@@ -6,7 +6,7 @@
%%
%% lwarp.dtx (with options: `caption')
%% This is a generated file.
-%% Copyright 2016-2018 Brian Dunn
+%% Copyright 2016-2019 Brian Dunn
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -86,38 +86,30 @@
}
\renewcommand\caption@@@make[2]{%
-\LWR@startpars% lwarp
+\LWR@traceinfo{caption@@@make}%
\caption@ifempty{#2}{%
\let\caption@lsep\@empty
\let\caption@tfmt\@firstofone
}%
- \@setpar{\LWR@closeparagraph\@@par}% lwarp
\caption@applyfont
- \caption@fmt
{\ifcaption@star\else
\begingroup
- \captionlabelfont
+ \captionlabelfont
#1%
\endgroup
\fi}%
{\ifcaption@star\else
\begingroup
\caption@iflf\captionlabelfont
- \relax\caption@lsep
+ \relax
+ \caption@lsep
\endgroup
\fi}%
- {{\captiontextfont
- \caption@ifstrut
- {\vrule\@height\ht\strutbox\@width\z@}%
- {}%
- \nobreak\hskip\z@skip % enable hyphenation
- \caption@tfmt{#2}
- \LWR@ensuredoingapar% lwarp
- \caption@ifstrut
- {\ifhmode\@finalstrut\strutbox\fi}%
- {}%
- \par}}
-\LWR@stoppars% lwarp
+ {{%
+ \captiontextfont
+ \caption@tfmt{#2}%
+ }}%
+\LWR@traceinfo{caption@@@make done}%
}
\renewcommand{\caption@@make@}[2]{%
@@ -127,6 +119,10 @@
\caption@endhook
}
+\long\def\caption@makecaption#1#2{%
+ \caption@@make{#1}{#2}%
+}
+
\DeclareCaptionBox{parbox}{%
#2%
}