From 9c7b9adb69a4e31ff84ed8a5876c6109488f4064 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 4 Jan 2020 22:05:15 +0000 Subject: fbox (4jan20) git-svn-id: svn://tug.org/texlive/trunk@53320 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/fbox/fbox.sty | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/latex/fbox') diff --git a/Master/texmf-dist/tex/latex/fbox/fbox.sty b/Master/texmf-dist/tex/latex/fbox/fbox.sty index 01c90824356..24dd9a71064 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', %% -%% Copyright (C) 2019 +%% Copyright (C) 2019, 2020 %% Herbert Voss %% %% It may be distributed and/or modified under the @@ -11,10 +11,10 @@ %% and version 1.3c or later is part of all distributions of LaTeX %% version 2005/12/01 or later. % -% $Id: fbox.sty 947 2019-03-08 17:06:20Z herbert $ +% $Id: fbox.sty 1128 2020-01-03 20:57:59Z herbert $ % % ------------------------------------- -\ProvidesPackage{fbox}[2019/11/04 v. 0.03 allow parts of the frame (hv)] +\ProvidesPackage{fbox}[2020/01/03 v. 0.04 allow parts of the frame (hv)] % \let\orig@fbox\fbox \def\fb@lowerc@se#1{% make \lowercase expandable @@ -96,4 +96,17 @@ }% } -\endinput \ No newline at end of file +\newsavebox\fpar@b@x + +\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\fboxsep-2\fboxrule}{#2}}% + \FBox@i[#1]{\usebox\fpar@b@x}} +\long\def\FParBox@ii#1{% + \savebox\fpar@b@x{\parbox{\dimexpr\linewidth-2\fboxsep-2\fboxrule}{#1}}% + \orig@fbox{\usebox\fpar@b@x}} + + +\endinput + -- cgit v1.2.3