texlive[69041] Master/texmf-dist: fbox (5dec23)

commits+karl at tug.org commits+karl at tug.org
Tue Dec 5 21:45:44 CET 2023


Revision: 69041
          https://tug.org/svn/texlive?view=revision&revision=69041
Author:   karl
Date:     2023-12-05 21:45:44 +0100 (Tue, 05 Dec 2023)
Log Message:
-----------
fbox (5dec23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/fbox/CHANGELOG
    trunk/Master/texmf-dist/doc/latex/fbox/fbox.pdf
    trunk/Master/texmf-dist/doc/latex/fbox/fbox.tex
    trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty

Modified: trunk/Master/texmf-dist/doc/latex/fbox/CHANGELOG
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fbox/CHANGELOG	2023-12-05 20:45:17 UTC (rev 69040)
+++ trunk/Master/texmf-dist/doc/latex/fbox/CHANGELOG	2023-12-05 20:45:44 UTC (rev 69041)
@@ -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[]{}

Modified: trunk/Master/texmf-dist/doc/latex/fbox/fbox.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/fbox/fbox.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fbox/fbox.tex	2023-12-05 20:45:17 UTC (rev 69040)
+++ trunk/Master/texmf-dist/doc/latex/fbox/fbox.tex	2023-12-05 20:45:44 UTC (rev 69041)
@@ -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 @@
 \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 at tug.org}\newline Thanks to Rolf Niepraschk}}
@@ -99,6 +98,7 @@
 \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 @@
 \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}

Modified: trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty	2023-12-05 20:45:17 UTC (rev 69040)
+++ trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty	2023-12-05 20:45:44 UTC (rev 69041)
@@ -1,6 +1,6 @@
 %% This is file `fbox.sty'
 %%
-%% Copyright (C) 2019, 2022
+%% Copyright (C) 2019, ..., 2023
 %% Herbert Voss  <hvoss at 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 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}
@@ -21,6 +21,7 @@
 
 \newlength\fbox@@rule
 \newlength\fbox@@sep
+\newlength\fbox@@linewidth
 \define at key{fbox}{boxrule}[0.4pt]{\setlength\fbox@@rule{#1}}
 \define at key{fbox}{boxsep}[3pt]{\setlength\fbox@@sep{#1}}
 \define at key{fbox}{bcolor}[black]{\def\fbox at bcolor{#1}}
@@ -27,7 +28,10 @@
 \define at key{fbox}{tcolor}[black]{\def\fbox at tcolor{#1}}
 \define at key{fbox}{lcolor}[black]{\def\fbox at lcolor{#1}}
 \define at key{fbox}{rcolor}[black]{\def\fbox at rcolor{#1}}
-\setkeys*{fbox}{boxrule=\fboxrule,boxsep=\fboxsep,lcolor,rcolor,bcolor,tcolor}
+\define at 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 at startrue\FParBox@}{\@fbox at starfalse\FParBox@*}}
 \def\FParBox@*{\@ifnextchar[\FParBox at i\FParBox at ii}
 \long\def\FParBox at i[#1]#2{%
-  \savebox\fpar at b@x{\parbox{\dimexpr\linewidth-2\fbox@@sep-2\fbox@@rule}{#2}}%
+  \setkeys*{fbox}{linewidth=\linewidth,#1}%
+  \savebox\fpar at b@x{\parbox{\dimexpr\fbox@@linewidth-2\fbox@@sep-2\fbox@@rule}{#2}}%
   \FBox at i[#1]{\usebox\fpar at b@x}}
 \long\def\FParBox at ii#1{%
-  \savebox\fpar at b@x{\parbox{\dimexpr\linewidth-2\fbox@@sep-2\fbox@@rule}{#1}}%
+  \setkeys*{fbox}{linewidth=\linewidth}%
+  \savebox\fpar at b@x{\parbox{\dimexpr\fbox@@linewidth-2\fbox@@sep-2\fbox@@rule}{#1}}%
   \orig at fbox{\usebox\fpar at b@x}}
   
   



More information about the tex-live-commits mailing list.