summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/fbox/latex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2020-01-04 03:01:09 +0000
committerNorbert Preining <norbert@preining.info>2020-01-04 03:01:09 +0000
commit46d85b2b8e0282e241f8a41c6c0cd190c495eab0 (patch)
treec77ed5b11e4fb92f66e6341e3eda65735b635cf6 /macros/latex/contrib/fbox/latex
parent7e18665e4aef9a8a3a8e42eac34504a9914b15cf (diff)
CTAN sync 202001040301
Diffstat (limited to 'macros/latex/contrib/fbox/latex')
-rw-r--r--macros/latex/contrib/fbox/latex/fbox.sty21
1 files changed, 17 insertions, 4 deletions
diff --git a/macros/latex/contrib/fbox/latex/fbox.sty b/macros/latex/contrib/fbox/latex/fbox.sty
index 01c9082435..24dd9a7106 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
+%% Copyright (C) 2019, 2020
%% Herbert Voss <hvoss@tug.org>
%%
%% 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
+