texlive[52637] Master/texmf-dist: fbox (4nov19)
commits+karl at tug.org
commits+karl at tug.org
Mon Nov 4 23:16:05 CET 2019
Revision: 52637
http://tug.org/svn/texlive?view=revision&revision=52637
Author: karl
Date: 2019-11-04 23:16:05 +0100 (Mon, 04 Nov 2019)
Log Message:
-----------
fbox (4nov19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/fbox/CHANGELOG
trunk/Master/texmf-dist/doc/latex/fbox/README.md
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 2019-11-04 22:15:52 UTC (rev 52636)
+++ trunk/Master/texmf-dist/doc/latex/fbox/CHANGELOG 2019-11-04 22:16:05 UTC (rev 52637)
@@ -1 +1,3 @@
+0.03 2019-11-04 - added star version
+0.02 2019-03-08 - modified version for expandable \lowercase
0.01 2019-03-08 - first CTAN version
Modified: trunk/Master/texmf-dist/doc/latex/fbox/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fbox/README.md 2019-11-04 22:15:52 UTC (rev 52636)
+++ trunk/Master/texmf-dist/doc/latex/fbox/README.md 2019-11-04 22:16:05 UTC (rev 52637)
@@ -1,7 +1,7 @@
# fbox.sty
Redefines the macro \fbox{...} from standard
-LaTeX to \fbox[optarg]{...}
+LaTeX to \fbox*[optarg]{...}
optarg can be any combination of l, r, b, and t. For
example: \fbox[lt]{foo} or \fbox[Tlr]{...}
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 2019-11-04 22:15:52 UTC (rev 52636)
+++ trunk/Master/texmf-dist/doc/latex/fbox/fbox.tex 2019-11-04 22:16:05 UTC (rev 52637)
@@ -1,4 +1,4 @@
-%% $Id: fbox.tex 946 2019-03-08 12:08:22Z herbert $
+%% $Id: fbox.tex 947 2019-03-08 17:06:20Z herbert $
%
\listfiles\setcounter{errorcontextlines}{100}
\documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-,
@@ -33,6 +33,7 @@
\def\Lpack#1{\texttt{#1}\index{#1 package@\texttt{#1} package}}
\def\Lprog#1{\texttt{#1}\index{#1 program@\texttt{#1} program}}
\def\Loption#1{\texttt{#1}\index{#1@\texttt{#1} package option}}
+\let\Ldim\Lcs
%\usepackage[bibstyle=dtk]{biblatex}
%\addbibresource{\jobname.bib}
@@ -58,7 +59,7 @@
\def\setVersion#1{\setVVersion#1!!}
\def\setVVersion#1=#2!!{\def\fboxVersion{#2}}
-\setVersion{version = 0.01}%
+\setVersion{version = 0.03}%
\title{Package \texttt{fbox} \\--\\ \normalsize \fboxVersion\ (\today)}
\author{Herbert Voß\thanks{\url{hvoss at tug.org}\newline Thanks to Rolf Niepraschk}}
@@ -70,9 +71,12 @@
argument:
\begin{verbatim}
-\fbox[<optargs>]{<contents>}
+\fbox*[<optargs>]{<contents>}
\end{verbatim}
+The star version does not put any horizontal space before or behind the argument
+if no optional argument \texttt{l} or \texttt{r} is given. The non star version always inserts
+\Ldim{fboxsep}.
The optional argument can be of any combination of the letters
l, r, b, and t or altenatively L, R, B, and T. This l)eft, r)right, b)ottom, and t)op
@@ -95,18 +99,36 @@
\end{LTXexample}
\begin{LTXexample}
+\fbox*[rbt]{foo gar baz}
+\fbox*[brt]{foo gar baz}
+\fbox*[bRT]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
\fbox[lT]{foo gar baz}
\end{LTXexample}
\begin{LTXexample}
+\fbox*[lT]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
\fbox[bT]{foo gar baz}
\end{LTXexample}
\begin{LTXexample}
+\fbox*[bT]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
\fbox[Br]{foo gar baz}
\end{LTXexample}
\begin{LTXexample}
+\fbox*[Br]{foo gar baz}
+\end{LTXexample}
+
+\begin{LTXexample}
\setlength\fboxrule{5pt}
\fbox[bT]{foo gar baz}
\end{LTXexample}
@@ -113,18 +135,20 @@
\begin{LTXexample}
\setlength\fboxrule{5pt}
-\fbox[Br]{foo gar baz}
+\fbox*[bT]{foo gar baz}
\end{LTXexample}
+\begin{LTXexample}
+\setlength\fboxrule{5pt}
+\fbox[Br]{foo gar baz}
+\end{LTXexample}
+\begin{LTXexample}
+\setlength\fboxrule{5pt}
+\fbox*[Br]{foo gar baz}
+\end{LTXexample}
-\end{document}
-
-folium = {
- de = {"f", "ff"},
- en = {"f", "ff"},
- fr = {"sq","sqq"},
-}
+\end{document}
\ No newline at end of file
Modified: trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty 2019-11-04 22:15:52 UTC (rev 52636)
+++ trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty 2019-11-04 22:16:05 UTC (rev 52637)
@@ -11,17 +11,32 @@
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%
-% $Id: fbox.sty 946 2019-03-08 12:08:22Z herbert $
+% $Id: fbox.sty 947 2019-03-08 17:06:20Z herbert $
%
% -------------------------------------
-\ProvidesPackage{fbox}[2019/03/00 v. 0.01 allow parts of the frame (hv)]
+\ProvidesPackage{fbox}[2019/11/04 v. 0.03 allow parts of the frame (hv)]
%
\let\orig at fbox\fbox
-\def\fb at lowerc@se#1{\lowercase{\edef\@tempa{#1}}}
+\def\fb at lowerc@se#1{% make \lowercase expandable
+ \begingroup\edef\x{%
+ \lowercase{\endgroup\def\noexpand\@tempa{#1}}}\x
+}
%
-\long\def\fbox{\@ifnextchar[\FBox at i\orig at fbox}
+\newif\if at fbox@star
+\newif\if at fbox@space at left
+\newif\if at fbox@space at right
+
+\long\def\fbox{\@ifnextchar*{\@fbox at startrue\FBox@}{\@fbox at starfalse\FBox@*}}
+\def\FBox@*{\@ifnextchar[\FBox at i\orig at fbox}
%
\def\FBox at i[#1]{%
+ \if at fbox@star
+ \@fbox at space@leftfalse
+ \@fbox at space@rightfalse
+ \else
+ \@fbox at space@lefttrue
+ \@fbox at space@righttrue
+ \fi
\ifx\relax#1\relax
\@tempcntb=15
\else
@@ -32,13 +47,15 @@
\FBox at iii
}
\def\FBox at ii#1#2\@nil{%
- \ifx#1t\advance\@tempcntb by 8% top
+ \ifx#1t\advance\@tempcntb by 8 % top
\else
- \ifx#1l\advance\@tempcntb by 4% left
+ \ifx#1l\advance\@tempcntb by 4 % left
+ \if at fbox@star\@fbox at space@lefttrue\fi
\else
- \ifx#1r\advance\@tempcntb by 2% right
+ \ifx#1r\advance\@tempcntb by 2 % right
+ \if at fbox@star\@fbox at space@righttrue\fi
\else
- \ifx#1b\advance\@tempcntb by 1% bottom
+ \ifx#1b\advance\@tempcntb by 1 % bottom
\fi\fi\fi\fi
\if\relax#2\relax\def\next{}\else\def\next{\FBox at ii#2\@nil}\fi
\next
@@ -47,7 +64,7 @@
\leavevmode
\setbox\@tempboxa\hbox{%
\color at begingroup
- \kern\fboxsep{#1}\kern\fboxsep
+ \if at fbox@space at left\kern\fboxsep\fi{#1}\if at fbox@space at right\kern\fboxsep\fi
\color at endgroup}%
\@FrameB at x\relax}
%
More information about the tex-live-commits
mailing list