diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-fbox.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-fbox.sty | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-fbox.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-fbox.sty index f1a49c4f319..abb06b04071 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-fbox.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-fbox.sty @@ -15,18 +15,22 @@ %% 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{fbox}[2020/06/22] +\LWR@ProvidesPackagePass{fbox}[2022/02/20] \LetLtxMacro\LWR@HTML@fbox\fbox \renewcommand*{\orig@fbox}{\FBox@i[tblr]} -\newcommand*{\LWR@fboxpkg@border}[2]{% +\newcommand*{\LWR@fboxpkg@border}[3]{% + \colorlet{LWR@border@color}{\csuse{fbox@#2color}}% + \protect\convertcolorspec{named}{LWR@border@color}{HTML}\LWR@tempbordercolor\relax% \appto\LWR@tempone{% border-#1: % space \LWR@printlength{\LWR@atleastonept} % space - solid \LWR@origpound\LWR@tempcolor ;\LWR@indentHTML + solid \LWR@origpound% }% - \ifblank{#2}{}{% + \expandafter\appto\expandafter\LWR@tempone\expandafter{\LWR@tempbordercolor}% + \appto\LWR@tempone{ ;\LWR@indentHTML}% + \ifblank{#3}{}{% \appto\LWR@tempone{% - padding-#1: \LWR@printlength{#2} ;\LWR@indentHTML + padding-#1: \LWR@printlength{#3} ;\LWR@indentHTML }% }% } @@ -53,18 +57,18 @@ \LWR@fboxpkg@lrpadding{left}% \LWR@fboxpkg@lrpadding{right}% \ifnum\the\@tempcntb>8\relax - \advance\@tempcntb by -8 - \LWR@fboxpkg@border{top}{\fbox@@sep}% + \advance\@tempcntb by -8\relax + \LWR@fboxpkg@border{top}{t}{\fbox@@sep}% \fi \ifnum\@tempcntb>3 - \advance\@tempcntb by -4 - \LWR@fboxpkg@border{left}{}% + \advance\@tempcntb by -4\relax + \LWR@fboxpkg@border{left}{l}{}% \fi - \ifnum\@tempcntb>1 - \LWR@fboxpkg@border{right}{}% + \ifnum\@tempcntb>1\relax + \LWR@fboxpkg@border{right}{r}{}% \fi \ifodd\@tempcntb - \LWR@fboxpkg@border{bottom}{\fbox@@sep}% + \LWR@fboxpkg@border{bottom}{b}{\fbox@@sep}% \fi \color@begingroup \ifbool{LWR@fboxpkg@ispar}% @@ -97,6 +101,7 @@ \CustomizeMathJax{\newcommand{\LWRfboxpkgtwo}[2][]{\LWRorigfbox{#2}}} \CustomizeMathJax{\renewcommand{\fbox}{\ifstar\LWRfboxpkgtwo\LWRfboxpkgtwo}} \CustomizeMathJax{\newcommand{\fparbox}{\fbox}} + \endinput %% %% End of file `lwarp-fbox.sty'. |