| 1 |
%% |
| 2 |
%% This is file `lwarp-fbox.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% lwarp.dtx (with options: `fbox') |
| 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{fbox}[2022/02/20] |
| 19 |
\LetLtxMacro\LWR@HTML@fbox\fbox |
| 20 |
\renewcommand*{\orig@fbox}{\FBox@i[tblr]} |
| 21 |
\newcommand*{\LWR@fboxpkg@border}[3]{% |
| 22 |
\colorlet{LWR@border@color}{\csuse{fbox@#2color}}% |
| 23 |
\protect\convertcolorspec{named}{LWR@border@color}{HTML}\LWR@tempbordercolor\relax% |
| 24 |
\appto\LWR@tempone{% |
| 25 |
border-#1: % space |
| 26 |
\LWR@printlength{\LWR@atleastonept} % space |
| 27 |
solid \LWR@origpound% |
| 28 |
}% |
| 29 |
\expandafter\appto\expandafter\LWR@tempone\expandafter{\LWR@tempbordercolor}% |
| 30 |
\appto\LWR@tempone{ ;\LWR@indentHTML}% |
| 31 |
\ifblank{#3}{}{% |
| 32 |
\appto\LWR@tempone{% |
| 33 |
padding-#1: \LWR@printlength{#3} ;\LWR@indentHTML |
| 34 |
}% |
| 35 |
}% |
| 36 |
} |
| 37 |
\newbool{LWR@fboxpkg@ispar} |
| 38 |
\boolfalse{LWR@fboxpkg@ispar} |
| 39 |
\newcommand{\LWR@fboxpkg@lrpadding}[1]{% |
| 40 |
\csuse{if@fbox@space@#1}% |
| 41 |
\appto\LWR@tempone{% |
| 42 |
padding-#1: \LWR@printlength{\fbox@@sep};\LWR@indentHTML |
| 43 |
} |
| 44 |
\else% |
| 45 |
\appto\LWR@tempone{% |
| 46 |
padding-#1: 0pt;\LWR@indentHTML |
| 47 |
} |
| 48 |
\fi% |
| 49 |
} |
| 50 |
\newcommand{\LWR@HTML@FBox@iii}[1]{% |
| 51 |
\LWR@forceminwidth{\fbox@@rule}% |
| 52 |
\LWR@findcurrenttextcolor% |
| 53 |
\def\LWR@tempone{% |
| 54 |
color: \LWR@origpound\LWR@tempcolor ; \LWR@indentHTML |
| 55 |
margin: 1ex ; \LWR@indentHTML |
| 56 |
}% |
| 57 |
\LWR@fboxpkg@lrpadding{left}% |
| 58 |
\LWR@fboxpkg@lrpadding{right}% |
| 59 |
\ifnum\the\@tempcntb>8\relax |
| 60 |
\advance\@tempcntb by -8\relax |
| 61 |
\LWR@fboxpkg@border{top}{t}{\fbox@@sep}% |
| 62 |
\fi |
| 63 |
\ifnum\@tempcntb>3 |
| 64 |
\advance\@tempcntb by -4\relax |
| 65 |
\LWR@fboxpkg@border{left}{l}{}% |
| 66 |
\fi |
| 67 |
\ifnum\@tempcntb>1\relax |
| 68 |
\LWR@fboxpkg@border{right}{r}{}% |
| 69 |
\fi |
| 70 |
\ifodd\@tempcntb |
| 71 |
\LWR@fboxpkg@border{bottom}{b}{\fbox@@sep}% |
| 72 |
\fi |
| 73 |
\color@begingroup |
| 74 |
\ifbool{LWR@fboxpkg@ispar}% |
| 75 |
{% |
| 76 |
\begin{BlockClass}[\LWR@tempone]{fboxpkg}% |
| 77 |
#1% |
| 78 |
\end{BlockClass}% |
| 79 |
}% |
| 80 |
{% |
| 81 |
\InlineClass[\LWR@tempone]{fboxpkg}{% |
| 82 |
#1% |
| 83 |
}% |
| 84 |
}% |
| 85 |
\color@endgroup |
| 86 |
\boolfalse{LWR@fboxpkg@ispar}% globally |
| 87 |
} |
| 88 |
\LWR@formatted{FBox@iii} |
| 89 |
\long\def\LWR@HTML@FParBox@i[#1]#2{% |
| 90 |
\booltrue{LWR@fboxpkg@ispar}% |
| 91 |
\FBox@i[#1]{#2} |
| 92 |
} |
| 93 |
\LWR@formatted{FParBox@i} |
| 94 |
|
| 95 |
\long\def\LWR@HTML@FParBox@ii#1{% |
| 96 |
\booltrue{LWR@fboxpkg@ispar}% |
| 97 |
\FBox@i[tblr]{#1}% |
| 98 |
} |
| 99 |
\LWR@formatted{FParBox@ii} |
| 100 |
\CustomizeMathJax{\let\LWRorigfbox\fbox} |
| 101 |
\CustomizeMathJax{\newcommand{\LWRfboxpkgtwo}[2][]{\LWRorigfbox{#2}}} |
| 102 |
\CustomizeMathJax{\renewcommand{\fbox}{\ifstar\LWRfboxpkgtwo\LWRfboxpkgtwo}} |
| 103 |
\CustomizeMathJax{\newcommand{\fparbox}{\fbox}} |
| 104 |
|
| 105 |
\endinput |
| 106 |
%% |
| 107 |
%% End of file `lwarp-fbox.sty'. |