texlive[62126] Master/texmf-dist: fbox (21feb22)

commits+karl at tug.org commits+karl at tug.org
Mon Feb 21 21:56:12 CET 2022


Revision: 62126
          http://tug.org/svn/texlive?view=revision&revision=62126
Author:   karl
Date:     2022-02-21 21:56:12 +0100 (Mon, 21 Feb 2022)
Log Message:
-----------
fbox (21feb22)

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	2022-02-21 20:55:57 UTC (rev 62125)
+++ trunk/Master/texmf-dist/doc/latex/fbox/CHANGELOG	2022-02-21 20:56:12 UTC (rev 62126)
@@ -1,3 +1,4 @@
+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[]{}
 0.03 2019-11-04 - added star version

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	2022-02-21 20:55:57 UTC (rev 62125)
+++ trunk/Master/texmf-dist/doc/latex/fbox/fbox.tex	2022-02-21 20:56:12 UTC (rev 62126)
@@ -1,4 +1,4 @@
-%% $Id: fbox.tex 10 2020-06-22 10:15:39Z herbert $
+%% $Id: fbox.tex 449 2022-02-20 20:50:12Z herbert $
 %
 \listfiles\setcounter{errorcontextlines}{100}
 \documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-,
@@ -62,7 +62,7 @@
 \def\setVersion#1{\setVVersion#1!!}
 \def\setVVersion#1=#2!!{\def\fboxVersion{#2}} 
 
-\setVersion{version = 0.05}%
+\setVersion{version = 0.06}%
 
 \title{Package \texttt{fbox} \\--\\ \normalsize \fboxVersion\ (\today)}
 \author{Herbert Voß\thanks{\url{hvoss at tug.org}\newline Thanks to Rolf Niepraschk}}
@@ -95,6 +95,10 @@
 \begin{description}
 \item[boxrule] The rule width is predefined to the current value of \Ldim{fboxrule} (0.4pt)
 \item[boxsep] The box separation is predefined to the current value of \Ldim{fboxsep} (3pt)
+\item[lcolor] Color for the left line (black)
+\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[<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
@@ -112,6 +116,8 @@
 
 \begin{LTXexample}
 \fbox[rbt]{foo gar baz}
+\fbox[rbt,boxrule=4pt,rcolor=red,
+  tcolor=green]{foo gar baz}
 \fbox[brt]{foo gar baz}
 \fbox[bRT]{foo gar baz}
 \end{LTXexample}
@@ -118,6 +124,8 @@
 
 \begin{LTXexample}
 \fbox*[rbt]{foo gar baz}
+\fbox[rbt,boxrule=4pt,rcolor=red,
+  tcolor=green]{foo gar baz}
 \fbox*[brt]{foo gar baz}
 \fbox*[bRT]{foo gar baz}
 \end{LTXexample}
@@ -157,7 +165,7 @@
 
 
 \begin{LTXexample}
-\fbox[Br,boxrule=5pt]{foo gar baz}
+\fbox[Br,boxrule=5pt,bcolor=red]{foo gar baz}
 \end{LTXexample}
 
 
@@ -167,7 +175,8 @@
 
 
 \begin{LTXexample}
-\fbox*[boxsep=5mm,bT,boxrule=2pt]{foo gar baz}
+\fbox*[boxsep=5mm,bT,tcolor=green,
+  boxrule=2pt]{foo gar baz}
 \end{LTXexample}
 
 
@@ -182,7 +191,8 @@
 
 
 \begin{LTXexample}
-\fparbox[rbt]{\demoText}
+\fparbox[rbt,bcolor=red,rcolor=blue,
+   tcolor=red]{\demoText}
 \fparbox[brt]{\demoText}
 \fparbox[bRT]{\demoText}
 \end{LTXexample}
@@ -190,7 +200,8 @@
 \begin{LTXexample}
 \fparbox*[rbt]{\demoText}
 \fparbox*[brt]{\demoText}
-\fparbox*[bRT]{\demoText}
+\fparbox*[bRT,rcolor=blue,
+   tcolor=green]{\demoText}
 \end{LTXexample}
 
 \begin{LTXexample}
@@ -235,7 +246,8 @@
 \end{LTXexample}
 
 \begin{LTXexample}
-\fparbox*[boxrule=5pt,Br]{\demoText}
+\fparbox*[boxrule=5pt,Br,
+   bcolor=red!40,rcolor=blue!40]{\demoText}
 \end{LTXexample}
 
 

Modified: trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty	2022-02-21 20:55:57 UTC (rev 62125)
+++ trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty	2022-02-21 20:56:12 UTC (rev 62126)
@@ -1,6 +1,6 @@
-%% This is file `fbox.sty',
+%% This is file `fbox.sty'
 %%
-%% Copyright (C) 2019, 2020
+%% Copyright (C) 2019, 2022
 %% Herbert Voss  <hvoss at tug.org>
 %%
 %% It may be distributed and/or modified under the
@@ -11,18 +11,23 @@
 %% and version 1.3c or later is part of all distributions of LaTeX
 %% version 2005/12/01 or later.
 %
-% $Id: fbox.sty 10 2020-06-22 10:15:39Z herbert $
+% $Id: fbox.sty 449 2022-02-20 20:50:12Z herbert $
 %
 % -------------------------------------
-\ProvidesPackage{fbox}[2020/06/22 v. 0.05 allow parts of the frame (hv)]
+\ProvidesPackage{fbox}[2022/02/20 v. 0.06 allow parts of the frame (hv)]
 %
 \RequirePackage{xkeyval}
+\RequirePackage{xcolor}
 
 \newlength\fbox@@rule
 \newlength\fbox@@sep
-\define at key{fbox}{boxrule}[3pt]{\setlength\fbox@@rule{#1}}
-\define at key{fbox}{boxsep}[0.4pt]{\setlength\fbox@@sep{#1}}
-\setkeys*{fbox}{boxrule=\fboxrule,boxsep=\fboxsep}
+\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}}
+\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}
 
 % latex.ltx
 %\fboxsep = 3pt
@@ -44,7 +49,7 @@
 \def\FBox at i[#1]{%
   \def\XKV at rm{}%
   \setkeys*{fbox}{boxrule=\fboxrule, boxsep=\fboxsep, #1}%
-  \typeout{===>#1:  \XKV at rm}%
+%  \typeout{===>#1:  \XKV at rm}%
   \if at fbox@star
     \@fbox at space@leftfalse
     \@fbox at space@rightfalse
@@ -92,12 +97,12 @@
       \vbox{%
         \ifnum\the\@tempcntb>8\relax
           \advance\@tempcntb by -8 
-            \hrule\@height\fbox@@rule                       % top
+            {\color{\fbox at tcolor}\hrule\@height\fbox@@rule}%                       % top
         \fi
         \hbox{%
           \ifnum\@tempcntb>3
             \advance\@tempcntb by -4 
-            \vrule\@width\fbox@@rule
+            \textcolor{\fbox at lcolor}{\vrule\@width\fbox@@rule}%
           \fi                                             % left
           #1%
           \vbox{%
@@ -105,8 +110,9 @@
             \box\@tempboxa
             \vskip\fbox@@sep}%
           #1%
-          \ifnum\@tempcntb>1\vrule\@width\fbox@@rule\fi}% right
-          \ifodd\@tempcntb\hrule\@height\fbox@@rule\fi}%     bottom
+          \ifnum\@tempcntb>1\textcolor{\fbox at rcolor}{\vrule\@width\fbox@@rule}\fi}% right
+          \ifodd\@tempcntb{\color{\fbox at bcolor}\hrule\@height\fbox@@rule}\fi%     bottom
+        }%
     }%
   }%
 }



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