summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty18
1 files changed, 10 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty
index 1549c9e3582..14903cd9b0a 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-sidenotes.sty
@@ -6,7 +6,7 @@
%%
%% lwarp.dtx (with options: `sidenotes')
%% This is a generated file.
-%% Copyright 2016-2017 Brian Dunn
+%% Copyright 2016-2018 Brian Dunn
%%
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3
@@ -16,24 +16,26 @@
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
\LWR@ProvidesPackagePass{sidenotes}
-\RenewDocumentCommand \sidecaption {s o o m}
+\RenewDocumentCommand \sidecaption {s o o +m}
{
\LWR@stoppars
+ \begingroup
\captionsetup{style=sidecaption}
\IfBooleanTF{#1}
{ % starred
- \IfNoValueOrEmptyTF{#2}
- {\marginnote{\caption*{#4}}}
- {\marginnote{\caption*{#4}}[#2]}
+ \begin{BlockClass}[border:none ; box-shadow:none]{marginblock}
+ \caption*{#4}
+ \end{BlockClass}
}
{ % unstarred
\IfNoValueOrEmptyTF{#2}
{\def\@sidenotes@sidecaption@tof{#4}}
{\def\@sidenotes@sidecaption@tof{#2}}
- \IfNoValueOrEmptyTF{#3}
- {\marginnote{\caption[\@sidenotes@sidecaption@tof]{#4}}}
- {\marginnote{\caption[\@sidenotes@sidecaption@tof]{#4}}[#3]}
+ \begin{BlockClass}[border:none ; box-shadow:none]{marginblock}
+ \caption[\@sidenotes@sidecaption@tof]{#4}
+ \end{BlockClass}
}
+ \endgroup
\LWR@startpars
}
\NewDocumentEnvironment{KFLTsidenotes@marginfloat}{O{-1.2ex} m}