| 1 |
%% |
| 2 |
%% This is file `lwarp-fancybox.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `fancybox') |
| 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{fancybox}[2010/05/15] |
| 19 |
\AfterEndPreamble{ |
| 20 |
\LWR@traceinfo{Patching fancybox.} |
| 21 |
\def\VerbatimFootnotes{% |
| 22 |
\let\@footnotetext\V@footnotetext% |
| 23 |
\let\LWR@footnotetext\V@footnotetext% lwarp |
| 24 |
} |
| 25 |
\def\V@@footnotetext{% |
| 26 |
\LWR@traceinfo{V@footnotetext}% |
| 27 |
\LWR@newautopagelabel{page}% |
| 28 |
\global\setbox\LWR@footnotebox=\vbox\bgroup% |
| 29 |
\unvbox\LWR@footnotebox% |
| 30 |
\protected@edef\@currentlabel{% |
| 31 |
\csname p@footnote\endcsname\@thefnmark% |
| 32 |
}% @currentlabel |
| 33 |
%% \protected@edef\cref@currentlabel{% |
| 34 |
%% [footnote]% |
| 35 |
%% [\arabic{footnote}]% |
| 36 |
%% []% |
| 37 |
%% \csname p@footnote\endcsname\@thefnmark}% |
| 38 |
\renewrobustcmd{\textsuperscript}[1]{\LWR@htmlspan{sup}{##1}}% |
| 39 |
\LWR@htmltagc{\LWR@tagregularparagraph}\LWR@orignewline% |
| 40 |
\@makefntext{}% |
| 41 |
\bgroup% |
| 42 |
\aftergroup\V@@@footnotetext% |
| 43 |
\let\LWR@newautopagelabel\LWR@null@newautopagelabel% |
| 44 |
\ignorespaces% |
| 45 |
}% |
| 46 |
\def\V@@@footnotetext{% |
| 47 |
\LWR@orignobreakspace\LWR@orignewline% |
| 48 |
\LWR@htmltagc{/\LWR@tagregularparagraph}\LWR@orignewline% |
| 49 |
\strut\egroup% |
| 50 |
} |
| 51 |
}% AfterEndPreamble |
| 52 |
\renewcommand*{\@shadowbox}[1]{% |
| 53 |
\ifbool{FormatWP}% |
| 54 |
{\InlineClass[border:1px solid black]{shadowbox}{#1}}% |
| 55 |
{\InlineClass{shadowbox}{#1}}% |
| 56 |
} |
| 57 |
|
| 58 |
\renewcommand*{\@doublebox}[1]{% |
| 59 |
\ifbool{FormatWP}% |
| 60 |
{\InlineClass[border:1px double black]{doublebox}{#1}}% |
| 61 |
{\InlineClass{doublebox}{#1}}% |
| 62 |
} |
| 63 |
|
| 64 |
\renewcommand*{\@ovalbox}[2]{% |
| 65 |
\ifbool{FormatWP}% |
| 66 |
{\InlineClass[border:1px solid black; border-radius:1ex]{ovalbox}{#2}}% |
| 67 |
{% |
| 68 |
\ifthenelse{\isequivalentto{#1}{\thinlines}}% |
| 69 |
{\InlineClass{ovalbox}{#2}}% |
| 70 |
{\InlineClass{Ovalbox}{#2}}% |
| 71 |
}% |
| 72 |
} |
| 73 |
\let\LWR@origSbox\Sbox |
| 74 |
|
| 75 |
\def\Sbox{\LWR@origSbox\LWR@nestspan} |
| 76 |
|
| 77 |
\let\LWR@origendSbox\endSbox |
| 78 |
|
| 79 |
\def\endSbox{\endLWR@nestspan\LWR@origendSbox} |
| 80 |
\RenewEnviron{Beqnarray} |
| 81 |
{\LWR@eqnarrayfactor} |
| 82 |
|
| 83 |
\csgpreto{Beqnarray*}{\boolfalse{LWR@numbereqnarray}} |
| 84 |
\renewcommand{\GenericCaption}[1]{% |
| 85 |
\LWR@figcaption% |
| 86 |
\LWR@isolate{#1}% |
| 87 |
\endLWR@figcaption% |
| 88 |
} |
| 89 |
\RenewDocumentEnvironment{Btrivlist}{m o} |
| 90 |
{% |
| 91 |
\LWR@stoppars% |
| 92 |
\begin{BlockClass}{Btrivlist}% |
| 93 |
\tabular{#1}% |
| 94 |
} |
| 95 |
{% |
| 96 |
\endtabular% |
| 97 |
\end{BlockClass}% |
| 98 |
\LWR@startpars% |
| 99 |
} |
| 100 |
\AtBeginEnvironment{LWR@nestspan}{% |
| 101 |
\RenewDocumentEnvironment{Btrivlist}{m o}{}{}% |
| 102 |
} |
| 103 |
\let\LWRFB@origitemizeitem\LWR@itemizeitem |
| 104 |
\let\LWRFB@origdescitem\LWR@descitem |
| 105 |
|
| 106 |
\RenewDocumentCommand{\LWR@itemizeitem}{d()o}{% |
| 107 |
\IfValueTF{#2}{% |
| 108 |
\LWRFB@origitemizeitem[#2]% |
| 109 |
}{% |
| 110 |
\LWRFB@origitemizeitem% |
| 111 |
}% |
| 112 |
} |
| 113 |
|
| 114 |
\RenewDocumentCommand{\LWR@descitem}{d()o}{% |
| 115 |
\IfValueTF{#2}{% |
| 116 |
\LWRFB@origdescitem[#2]~% |
| 117 |
}{% |
| 118 |
\LWRFB@origdescitem% |
| 119 |
}% |
| 120 |
} |
| 121 |
\RenewDocumentCommand{\LWR@nestspanitem}{d()}{% |
| 122 |
\if@newlist\else{ |
| 123 |
\LWR@htmltagc{br /}% |
| 124 |
\LWR@orignewline% |
| 125 |
}\fi% |
| 126 |
\LWR@origitem% |
| 127 |
} |
| 128 |
\renewenvironment{Bitemize}[1][] |
| 129 |
{% |
| 130 |
\LWR@spanwarnformat{Bitemize}% |
| 131 |
\booltrue{LWR@starting@fancybox}% |
| 132 |
\begin{itemize}% |
| 133 |
\boolfalse{LWR@starting@fancybox}% |
| 134 |
} |
| 135 |
{\end{itemize}} |
| 136 |
|
| 137 |
\renewenvironment{Benumerate}[1][] |
| 138 |
{% |
| 139 |
\LWR@spanwarnformat{Benumerate}% |
| 140 |
\booltrue{LWR@starting@fancybox}% |
| 141 |
\begin{enumerate}% |
| 142 |
\boolfalse{LWR@starting@fancybox}% |
| 143 |
} |
| 144 |
{\end{enumerate}} |
| 145 |
|
| 146 |
\renewenvironment{Bdescription}[1][] |
| 147 |
{% |
| 148 |
\LWR@spanwarnformat{Bdescription}% |
| 149 |
\booltrue{LWR@starting@fancybox}% |
| 150 |
\begin{description}% |
| 151 |
\boolfalse{LWR@starting@fancybox}% |
| 152 |
} |
| 153 |
{\end{description}} |
| 154 |
\RenewDocumentCommand{\boxput}{s d() m m}{% |
| 155 |
\IfBooleanTF{#1}{#3\quad#4}{#4\quad#3}% |
| 156 |
} |
| 157 |
\RenewDocumentCommand{\fancyput}{s d() m}{} |
| 158 |
\RenewDocumentCommand{\thisfancyput}{s d() m}{} |
| 159 |
|
| 160 |
\RenewDocumentCommand{\fancypage}{m m}{} |
| 161 |
\RenewDocumentCommand{\thisfancypage}{m m}{} |
| 162 |
|
| 163 |
\def\LandScape#1{} |
| 164 |
\def\endLandScape{} |
| 165 |
\def\@Landscape#1#2#3{} |
| 166 |
\def\endLandscape{} |
| 167 |
\VerifyCommand[lwarp][fancybox]{\Verbatim@List}{A85522266594F8C0D846AEB1F72232FF} |
| 168 |
|
| 169 |
\def\Verbatim@List#1{% |
| 170 |
\if@minipage\else\vskip\parskip\fi |
| 171 |
\leftskip\@totalleftmargin |
| 172 |
\@rightskip\@flushglue \rightskip\@rightskip |
| 173 |
\parindent\z@ |
| 174 |
\parskip\z@ |
| 175 |
\parfillskip\@flushglue |
| 176 |
\hfuzz\VerbatimFuzz\relax |
| 177 |
\@@par |
| 178 |
\global\@inlabelfalse %Prevents vspace from being inserted when |
| 179 |
\Verbatim@Prep %first line exceeds \hsize. |
| 180 |
\expandafter\def\expandafter\tmpb\expandafter{#1}% lwarp |
| 181 |
\LWR@HTMLsanitize@tmpb% lwarp |
| 182 |
\tmpb% lwarp |
| 183 |
\Verbatim@Par}% |
| 184 |
|
| 185 |
\VerifyCommand[lwarp][fancybox]{\Verbatim@@Input}{3DCC957D04BC5060FF70DD0FF2928D55} |
| 186 |
|
| 187 |
\def\Verbatim@@Input{% |
| 188 |
\let\protect\noexpand |
| 189 |
\LetLtxMacro\tmpb\The@Verbatim% lwarp |
| 190 |
\LWR@HTMLsanitize@tmpb% lwarp |
| 191 |
\edef\The@Verbatim{% |
| 192 |
\noexpand\Every@VerbatimLine |
| 193 |
\tmpb% lwarp |
| 194 |
\ifeof\Verbatim@Infile\else\noexpand\Verbatim@Par\fi}% |
| 195 |
\let\protect\relax |
| 196 |
\The@Verbatim |
| 197 |
\ifeof\Verbatim@Infile\else |
| 198 |
\let\The@Verbatim\The@GVerbatim |
| 199 |
\def\The@GVerbatim{}\Verbatim@NextLine |
| 200 |
\expandafter\Verbatim@@Input |
| 201 |
\fi}% |
| 202 |
|
| 203 |
\let\LWRFB@UseVerbatim\UseVerbatim |
| 204 |
\renewcommand*{\UseVerbatim}[1]{% |
| 205 |
\LWR@atbeginverbatim{Verbatim}% |
| 206 |
\LWRFB@UseVerbatim{#1}% |
| 207 |
\LWR@afterendverbatim% |
| 208 |
} |
| 209 |
|
| 210 |
\let\LWRFB@LUseVerbatim\LUseVerbatim |
| 211 |
|
| 212 |
\renewcommand*{\LUseVerbatim}[1]{% |
| 213 |
\LWR@atbeginverbatim{LVerbatim}% |
| 214 |
\noindent% |
| 215 |
\LWRFB@LUseVerbatim{#1}% |
| 216 |
\LWR@afterendverbatim% |
| 217 |
} |
| 218 |
|
| 219 |
\def\@BUseVerbatim[#1]#2{% |
| 220 |
\LWR@atbeginverbatim{BVerbatim}% |
| 221 |
\LWRFB@UseVerbatim{#2}% |
| 222 |
\LWR@afterendverbatim% |
| 223 |
} |
| 224 |
|
| 225 |
\endinput |
| 226 |
%% |
| 227 |
%% End of file `lwarp-fancybox.sty'. |