texlive[53320] Master/texmf-dist: fbox (4jan20)

commits+karl at tug.org commits+karl at tug.org
Sat Jan 4 23:05:15 CET 2020


Revision: 53320
          http://tug.org/svn/texlive?view=revision&revision=53320
Author:   karl
Date:     2020-01-04 23:05:15 +0100 (Sat, 04 Jan 2020)
Log Message:
-----------
fbox (4jan20)

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	2020-01-04 22:04:59 UTC (rev 53319)
+++ trunk/Master/texmf-dist/doc/latex/fbox/CHANGELOG	2020-01-04 22:05:15 UTC (rev 53320)
@@ -1,3 +1,4 @@
+0.04 2020-01-03 - added \fparbox[]{}
 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/fbox.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/fbox/fbox.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fbox/fbox.tex	2020-01-04 22:04:59 UTC (rev 53319)
+++ trunk/Master/texmf-dist/doc/latex/fbox/fbox.tex	2020-01-04 22:05:15 UTC (rev 53320)
@@ -1,4 +1,4 @@
-%% $Id: fbox.tex 947 2019-03-08 17:06:20Z herbert $
+%% $Id: fbox.tex 1128 2020-01-03 20:57:59Z herbert $
 %
 \listfiles\setcounter{errorcontextlines}{100}
 \documentclass[paper=a4,fontsize=11pt,DIV=13,parskip=half-,
@@ -35,6 +35,9 @@
 \def\Loption#1{\texttt{#1}\index{#1@\texttt{#1} package option}}
 \let\Ldim\Lcs
 
+\def\demoText{DuckDuckGo! Time to spread the word!\par
+Equipped with the talking points above, you’re ready to help anyone search and browse protected.}
+
 %\usepackage[bibstyle=dtk]{biblatex}
 %\addbibresource{\jobname.bib}
 
@@ -59,7 +62,7 @@
 \def\setVersion#1{\setVVersion#1!!}
 \def\setVVersion#1=#2!!{\def\fboxVersion{#2}} 
 
-\setVersion{version = 0.03}%
+\setVersion{version = 0.04}%
 
 \title{Package \texttt{fbox} \\--\\ \normalsize \fboxVersion\ (\today)}
 \author{Herbert Voß\thanks{\url{hvoss at tug.org}\newline Thanks to Rolf Niepraschk}}
@@ -72,6 +75,7 @@
 
 \begin{verbatim}
 \fbox*[<optargs>]{<contents>}
+\fparbox*[<optargs>]{<contents>}
 \end{verbatim}
 
 The star version does not put any horizontal space before or behind the argument
@@ -78,6 +82,15 @@
 if no optional argument \texttt{l} or \texttt{r} is given. The non star version always inserts
 \Ldim{fboxsep}.
 
+\Lcs{fparbox} uses the current \Ldim{linewidth} minus two times the box sep and boxrule width.
+It does \emph{not} a test for an existing paragraph indenting. It has do be done by the
+user, e.g.:
+
+\begin{verbatim}
+\noindent
+\fparbox ...
+\end{verbatim}
+
 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
 for the frame parts. A missing or an empty argument is the same as the default
@@ -151,4 +164,75 @@
 
 
 
+\begin{LTXexample}
+\fparbox{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fparbox[]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fparbox[rbt]{\demoText}
+\fparbox[brt]{\demoText}
+\fparbox[bRT]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fparbox*[rbt]{\demoText}
+\fparbox*[brt]{\demoText}
+\fparbox*[bRT]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fparbox[lT]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fparbox*[lT]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fparbox[bT]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fparbox*[bT]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fparbox[Br]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\fparbox*[Br]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\setlength\fboxrule{5pt}
+\fparbox[bT]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\setlength\fboxrule{5pt}
+\fparbox*[bT]{\demoText}
+\end{LTXexample}
+
+
+\begin{LTXexample}
+\setlength\fboxrule{5pt}
+\fparbox[Br]{\demoText}
+\end{LTXexample}
+
+\begin{LTXexample}
+\setlength\fboxrule{5pt}
+\fparbox*[Br]{\demoText}
+\end{LTXexample}
+
+
+
+
+
+
+
 \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	2020-01-04 22:04:59 UTC (rev 53319)
+++ trunk/Master/texmf-dist/tex/latex/fbox/fbox.sty	2020-01-04 22:05:15 UTC (rev 53320)
@@ -1,6 +1,6 @@
 %% This is file `fbox.sty',
 %%
-%% Copyright (C) 2019
+%% Copyright (C) 2019, 2020
 %% 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 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 at fbox\fbox
 \def\fb at lowerc@se#1{%     make \lowercase expandable
@@ -96,4 +96,17 @@
   }%
 }
 
-\endinput
\ No newline at end of file
+\newsavebox\fpar at b@x
+
+\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\fboxsep-2\fboxrule}{#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\fboxsep-2\fboxrule}{#1}}%
+  \orig at fbox{\usebox\fpar at b@x}}
+  
+  
+\endinput
+



More information about the tex-live-commits mailing list