You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
73 lines
2.2 KiB
73 lines
2.2 KiB
%%
|
|
%% This is file `lwarp-sidenotes.sty',
|
|
%% generated with the docstrip utility.
|
|
%%
|
|
%% The original source files were:
|
|
%%
|
|
%% lwarp.dtx (with options: `sidenotes')
|
|
%% This is a generated file.
|
|
%% Copyright 2016-2020 Brian Dunn
|
|
%%
|
|
%% This work may be distributed and/or modified under the
|
|
%% conditions of the LaTeX Project Public License, either version 1.3
|
|
%% of this license or (at your option) any later version.
|
|
%% The latest version of this license is in
|
|
%% http://www.latex-project.org/lppl.txt
|
|
%% 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}
|
|
{
|
|
\LWR@stoppars
|
|
\begingroup
|
|
\captionsetup{style=sidecaption}%
|
|
\IfBooleanTF{#1}
|
|
{ % starred
|
|
\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}}
|
|
\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}
|
|
{% start
|
|
\LWR@BlockClassWP{float:right; width:2in; margin:10pt}{}{marginblock}%
|
|
\renewcommand*{\@captype}{#2}%
|
|
}
|
|
{%
|
|
\endLWR@BlockClassWP%
|
|
}
|
|
|
|
\RenewDocumentEnvironment{marginfigure}{o}
|
|
{\begin{KFLTsidenotes@marginfloat}{figure}}
|
|
{\end{KFLTsidenotes@marginfloat}}
|
|
|
|
\RenewDocumentEnvironment{margintable}{o}
|
|
{\begin{KFLTsidenotes@marginfloat}{table}}
|
|
{\end{KFLTsidenotes@marginfloat}}
|
|
\renewenvironment{figure*}
|
|
{\@dblfloat{figure}}
|
|
{\end@dblfloat}
|
|
|
|
\renewenvironment{table*}
|
|
{\@dblfloat{table}}
|
|
{\end@dblfloat}
|
|
\begin{warpMathJax}
|
|
\providecommand{\sidenotename}{sidenote}
|
|
\appto\LWR@syncnotenumbers{\LWR@synconenotenumber{LWRsidenote}{\thesidenote}}
|
|
\appto\LWR@syncnotenames{\LWR@synconenotename{LWRsidenote}{\sidenotename}}
|
|
\CustomizeMathJax{\def\LWRsidenote{1}}
|
|
\CustomizeMathJax{\newcommand{\sidenotemark}[1][\LWRsidenote]{{}^{\mathrm{#1}}}}
|
|
\end{warpMathJax}
|
|
\endinput
|
|
%%
|
|
%% End of file `lwarp-sidenotes.sty'.
|
|
|