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 | |
parent | db0fe20663f1bcb3fcf87c3fb05a727420edd203 (diff) |
CTAN sync 202312050301
Diffstat (limited to 'macros/latex/contrib/fbox')
-rw-r--r-- | macros/latex/contrib/fbox/CHANGELOG | 1 | ||||
-rw-r--r-- | macros/latex/contrib/fbox/doc/fbox.pdf | bin | 46291 -> 48539 bytes | |||
-rw-r--r-- | macros/latex/contrib/fbox/doc/fbox.tex | 15 | ||||
-rw-r--r-- | macros/latex/contrib/fbox/latex/fbox.sty | 18 |
4 files changed, 25 insertions, 9 deletions
diff --git a/macros/latex/contrib/fbox/CHANGELOG b/macros/latex/contrib/fbox/CHANGELOG index d8eb3919fb..6a2c75bf4c 100644 --- a/macros/latex/contrib/fbox/CHANGELOG +++ b/macros/latex/contrib/fbox/CHANGELOG @@ -1,3 +1,4 @@ +0.07 2023-12-04 - added optional argument linewidth for \fparbox 0.06 2022-02-20 - added individual color option 0.05 2020-06-22 - added optional arguments boxrule and boxsep 0.04 2020-01-03 - added \fparbox[]{} diff --git a/macros/latex/contrib/fbox/doc/fbox.pdf b/macros/latex/contrib/fbox/doc/fbox.pdf Binary files differindex e4176b5bad..6c0d9eaf9a 100644 --- a/macros/latex/contrib/fbox/doc/fbox.pdf +++ b/macros/latex/contrib/fbox/doc/fbox.pdf diff --git a/macros/latex/contrib/fbox/doc/fbox.tex b/macros/latex/contrib/fbox/doc/fbox.tex index fad6aa5004..27bf1aa7ad 100644 --- a/macros/latex/contrib/fbox/doc/fbox.tex +++ b/macros/latex/contrib/fbox/doc/fbox.tex @@ -1,5 +1,4 @@ -%% $Id: fbox.tex 449 2022-02-20 20:50:12Z herbert $ -% +%% $Id: fbox.tex 828 2023-12-04 19:56:29Z herbert $% \listfiles\setcounter{errorcontextlines}{100} \documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-, captions=tableabove,twoside=on]{scrartcl} @@ -62,7 +61,7 @@ Equipped with the talking points above, you’re ready to help anyone search and \def\setVersion#1{\setVVersion#1!!} \def\setVVersion#1=#2!!{\def\fboxVersion{#2}} -\setVersion{version = 0.06}% +\setVersion{version = 0.07}% \title{Package \texttt{fbox} \\--\\ \normalsize \fboxVersion\ (\today)} \author{Herbert Voß\thanks{\url{hvoss@tug.org}\newline Thanks to Rolf Niepraschk}} @@ -99,6 +98,7 @@ The optional argument can be \item[tcolor] Color for the top line (black) \item[rcolor] Color for the right line (black) \item[bcolor] Color for the bottom line (black) +\item[linewidth] linewidth for \Lcs{fparbox} (\Ldim{linewidth}) \item[<letters>] Any combination of the letters l, r, b, and t, or altenatively L, R, B, and T for l)eft, r)right, b)ottom, and t)op of the frame parts. A missing or an empty argument is the same as the default @@ -237,9 +237,18 @@ of the frame parts. A missing or an empty argument is the same as the default \end{LTXexample} \begin{LTXexample} +\fparbox*[bT,boxrule=5pt,boxsep=6pt, + linewidth=0.75\linewidth]{\demoText} +\end{LTXexample} + +\begin{LTXexample} \fparbox*[bT,boxrule=3pt,boxsep=10pt]{\demoText} \end{LTXexample} +\begin{LTXexample} +\fparbox*[bT,boxrule=3pt,boxsep=10pt, + linewidth=7cm]{\demoText} +\end{LTXexample} \begin{LTXexample} \fparbox[Br,boxrule=5pt,boxsep=10pt]{\demoText} 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}} |