| 1 |
%% |
| 2 |
%% This is file `lwarp-sidenotes.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `sidenotes') |
| 8 |
%% This is a generated file. |
| 9 |
%% Copyright 2016-2026 Brian Dunn |
| 10 |
%% |
| 11 |
%% This work may be distributed and/or modified under the |
| 12 |
%% conditions of the LaTeX Project Public License, either version 1.3 |
| 13 |
%% of this license or (at your option) any later version. |
| 14 |
%% The latest version of this license is in |
| 15 |
%% http://www.latex-project.org/lppl.txt |
| 16 |
%% and version 1.3 or later is part of all distributions of LaTeX |
| 17 |
%% version 2005/12/01 or later. |
| 18 |
\LWR@ProvidesPackagePass{sidenotes} |
| 19 |
\VerifyCommand[lwarp][sidenotes]{\sidecaption}{2EFE2196F612943BCF13746EC12E69D6} |
| 20 |
|
| 21 |
\RenewDocumentCommand \sidecaption {s o o m} |
| 22 |
{ |
| 23 |
\LWR@stoppars |
| 24 |
\begingroup |
| 25 |
\captionsetup{style=sidecaption}% |
| 26 |
\IfBooleanTF{#1} |
| 27 |
{ % starred |
| 28 |
\begin{BlockClass}[border:none ; box-shadow:none]{marginblock}% |
| 29 |
\caption*{#4}% |
| 30 |
\end{BlockClass} |
| 31 |
} |
| 32 |
{ % unstarred |
| 33 |
\IfNoValueOrEmptyTF{#2} |
| 34 |
{\def\@sidenotes@sidecaption@tof{#4}} |
| 35 |
{\def\@sidenotes@sidecaption@tof{#2}} |
| 36 |
\begin{BlockClass}[border:none ; box-shadow:none]{marginblock}% |
| 37 |
\caption[\@sidenotes@sidecaption@tof]{#4} |
| 38 |
\end{BlockClass} |
| 39 |
} |
| 40 |
\endgroup |
| 41 |
\LWR@startpars |
| 42 |
} |
| 43 |
\NewDocumentEnvironment{KFLTsidenotes@marginfloat}{O{-1.2ex} m} |
| 44 |
{% start |
| 45 |
\LWR@BlockClassWP{float:right; width:2in; margin:10pt}{}{marginblock}% |
| 46 |
\renewcommand*{\@captype}{#2}% |
| 47 |
} |
| 48 |
{% |
| 49 |
\endLWR@BlockClassWP% |
| 50 |
} |
| 51 |
|
| 52 |
\RenewDocumentEnvironment{marginfigure}{o} |
| 53 |
{\begin{KFLTsidenotes@marginfloat}{figure}} |
| 54 |
{\end{KFLTsidenotes@marginfloat}} |
| 55 |
|
| 56 |
\RenewDocumentEnvironment{margintable}{o} |
| 57 |
{\begin{KFLTsidenotes@marginfloat}{table}} |
| 58 |
{\end{KFLTsidenotes@marginfloat}} |
| 59 |
\renewenvironment{figure*} |
| 60 |
{\@dblfloat{figure}} |
| 61 |
{\end@dblfloat} |
| 62 |
|
| 63 |
\renewenvironment{table*} |
| 64 |
{\@dblfloat{table}} |
| 65 |
{\end@dblfloat} |
| 66 |
\begin{warpMathJax} |
| 67 |
\providecommand{\sidenotename}{sidenote} |
| 68 |
\appto\LWR@syncnotenumbers{\LWR@synconenotenumber{LWRsidenote}{\thesidenote}} |
| 69 |
\appto\LWR@syncnotenames{\LWR@synconenotename{LWRsidenote}{\sidenotename}} |
| 70 |
\CustomizeMathJax{\def\LWRsidenote{1}} |
| 71 |
\CustomizeMathJax{\newcommand{\sidenotemark}[1][\LWRsidenote]{{}^{\mathrm{#1}}}} |
| 72 |
\end{warpMathJax} |
| 73 |
|
| 74 |
\endinput |
| 75 |
%% |
| 76 |
%% End of file `lwarp-sidenotes.sty'. |