diff options
author | Norbert Preining <norbert@preining.info> | 2023-12-05 03:01:12 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-12-05 03:01:12 +0000 |
commit | f4d05c7d6b687c6730e84b104235e648ca4b3ecd (patch) | |
tree | c7ba724e135b98dbd818b410b0eef4d487fa43ff /macros/latex/contrib/fbox/latex/fbox.sty | |
parent | db0fe20663f1bcb3fcf87c3fb05a727420edd203 (diff) |
CTAN sync 202312050301
Diffstat (limited to 'macros/latex/contrib/fbox/latex/fbox.sty')
-rw-r--r-- | macros/latex/contrib/fbox/latex/fbox.sty | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/macros/latex/contrib/fbox/latex/fbox.sty b/macros/latex/contrib/fbox/latex/fbox.sty index b12207a78d..0fa7d36ad2 100644 --- a/macros/latex/contrib/fbox/latex/fbox.sty +++ b/macros/latex/contrib/fbox/latex/fbox.sty @@ -1,6 +1,6 @@ %% This is file `fbox.sty' %% -%% Copyright (C) 2019, 2022 +%% Copyright (C) 2019, ..., 2023 %% Herbert Voss <hvoss@tug.org> %% %% It may be distributed and/or modified under the @@ -11,23 +11,27 @@ %% and version 1.3c or later is part of all distributions of LaTeX %% version 2005/12/01 or later. % -% $Id: fbox.sty 449 2022-02-20 20:50:12Z herbert $ +% $Id: fbox.sty 828 2023-12-04 19:56:29Z herbert $ % % ------------------------------------- -\ProvidesPackage{fbox}[2022/02/20 v. 0.06 allow parts of the frame (hv)] +\ProvidesPackage{fbox}[2023/12/04 v. 0.07 allow parts of the frame (hv)] % \RequirePackage{xkeyval} \RequirePackage{xcolor} \newlength\fbox@@rule \newlength\fbox@@sep +\newlength\fbox@@linewidth \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} +\define@key{fbox}{linewidth}[\linewidth]{\setlength\fbox@@linewidth{#1}} +\setkeys*{fbox}{boxrule=\fboxrule,boxsep=\fboxsep, + lcolor,rcolor,bcolor,tcolor, + linewidth=\linewidth} % latex.ltx %\fboxsep = 3pt @@ -122,10 +126,12 @@ \long\def\fparbox{\@ifnextchar*{\@fbox@startrue\FParBox@}{\@fbox@starfalse\FParBox@*}} \def\FParBox@*{\@ifnextchar[\FParBox@i\FParBox@ii} \long\def\FParBox@i[#1]#2{% - \savebox\fpar@b@x{\parbox{\dimexpr\linewidth-2\fbox@@sep-2\fbox@@rule}{#2}}% + \setkeys*{fbox}{linewidth=\linewidth,#1}% + \savebox\fpar@b@x{\parbox{\dimexpr\fbox@@linewidth-2\fbox@@sep-2\fbox@@rule}{#2}}% \FBox@i[#1]{\usebox\fpar@b@x}} \long\def\FParBox@ii#1{% - \savebox\fpar@b@x{\parbox{\dimexpr\linewidth-2\fbox@@sep-2\fbox@@rule}{#1}}% + \setkeys*{fbox}{linewidth=\linewidth}% + \savebox\fpar@b@x{\parbox{\dimexpr\fbox@@linewidth-2\fbox@@sep-2\fbox@@rule}{#1}}% \orig@fbox{\usebox\fpar@b@x}} |