From c0c9e4a4c9ecfaba8d7e79bd7b6bbfa64e323b07 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 21 Feb 2022 20:56:12 +0000 Subject: fbox (21feb22) git-svn-id: svn://tug.org/texlive/trunk@62126 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/fbox/fbox.sty | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/fbox/fbox.sty b/Master/texmf-dist/tex/latex/fbox/fbox.sty index 9c6aa93fd49..b12207a78de 100644 --- a/Master/texmf-dist/tex/latex/fbox/fbox.sty +++ b/Master/texmf-dist/tex/latex/fbox/fbox.sty @@ -1,6 +1,6 @@ -%% This is file `fbox.sty', +%% This is file `fbox.sty' %% -%% Copyright (C) 2019, 2020 +%% Copyright (C) 2019, 2022 %% Herbert Voss %% %% It may be distributed and/or modified under the @@ -11,18 +11,23 @@ %% and version 1.3c or later is part of all distributions of LaTeX %% version 2005/12/01 or later. % -% $Id: fbox.sty 10 2020-06-22 10:15:39Z herbert $ +% $Id: fbox.sty 449 2022-02-20 20:50:12Z herbert $ % % ------------------------------------- -\ProvidesPackage{fbox}[2020/06/22 v. 0.05 allow parts of the frame (hv)] +\ProvidesPackage{fbox}[2022/02/20 v. 0.06 allow parts of the frame (hv)] % \RequirePackage{xkeyval} +\RequirePackage{xcolor} \newlength\fbox@@rule \newlength\fbox@@sep -\define@key{fbox}{boxrule}[3pt]{\setlength\fbox@@rule{#1}} -\define@key{fbox}{boxsep}[0.4pt]{\setlength\fbox@@sep{#1}} -\setkeys*{fbox}{boxrule=\fboxrule,boxsep=\fboxsep} +\define@key{fbox}{boxrule}[0.4pt]{\setlength\fbox@@rule{#1}} +\define@key{fbox}{boxsep}[3pt]{\setlength\fbox@@sep{#1}} +\define@key{fbox}{bcolor}[black]{\def\fbox@bcolor{#1}} +\define@key{fbox}{tcolor}[black]{\def\fbox@tcolor{#1}} +\define@key{fbox}{lcolor}[black]{\def\fbox@lcolor{#1}} +\define@key{fbox}{rcolor}[black]{\def\fbox@rcolor{#1}} +\setkeys*{fbox}{boxrule=\fboxrule,boxsep=\fboxsep,lcolor,rcolor,bcolor,tcolor} % latex.ltx %\fboxsep = 3pt @@ -44,7 +49,7 @@ \def\FBox@i[#1]{% \def\XKV@rm{}% \setkeys*{fbox}{boxrule=\fboxrule, boxsep=\fboxsep, #1}% - \typeout{===>#1: \XKV@rm}% +% \typeout{===>#1: \XKV@rm}% \if@fbox@star \@fbox@space@leftfalse \@fbox@space@rightfalse @@ -92,12 +97,12 @@ \vbox{% \ifnum\the\@tempcntb>8\relax \advance\@tempcntb by -8 - \hrule\@height\fbox@@rule % top + {\color{\fbox@tcolor}\hrule\@height\fbox@@rule}% % top \fi \hbox{% \ifnum\@tempcntb>3 \advance\@tempcntb by -4 - \vrule\@width\fbox@@rule + \textcolor{\fbox@lcolor}{\vrule\@width\fbox@@rule}% \fi % left #1% \vbox{% @@ -105,8 +110,9 @@ \box\@tempboxa \vskip\fbox@@sep}% #1% - \ifnum\@tempcntb>1\vrule\@width\fbox@@rule\fi}% right - \ifodd\@tempcntb\hrule\@height\fbox@@rule\fi}% bottom + \ifnum\@tempcntb>1\textcolor{\fbox@rcolor}{\vrule\@width\fbox@@rule}\fi}% right + \ifodd\@tempcntb{\color{\fbox@bcolor}\hrule\@height\fbox@@rule}\fi% bottom + }% }% }% } -- cgit v1.2.3