texlive[54267] Master: swrule own package, from genmisc
commits+karl at tug.org
commits+karl at tug.org
Thu Mar 12 23:41:11 CET 2020
Revision: 54267
http://tug.org/svn/texlive?view=revision&revision=54267
Author: karl
Date: 2020-03-12 23:41:10 +0100 (Thu, 12 Mar 2020)
Log Message:
-----------
swrule own package, from genmisc
Modified Paths:
--------------
trunk/Master/tlpkg/bin/tlpkg-ctan-check
trunk/Master/tlpkg/libexec/ctan2tds
trunk/Master/tlpkg/tlpsrc/collection-plaingeneric.tlpsrc
Added Paths:
-----------
trunk/Master/texmf-dist/tex/generic/swrule/
trunk/Master/texmf-dist/tex/generic/swrule/swrule.sty
trunk/Master/tlpkg/tlpsrc/swrule.tlpsrc
Removed Paths:
-------------
trunk/Master/texmf-dist/tex/generic/genmisc/swrule.sty
Deleted: trunk/Master/texmf-dist/tex/generic/genmisc/swrule.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/genmisc/swrule.sty 2020-03-12 22:40:04 UTC (rev 54266)
+++ trunk/Master/texmf-dist/tex/generic/genmisc/swrule.sty 2020-03-12 22:41:10 UTC (rev 54267)
@@ -1,89 +0,0 @@
-% swrule.sty
-% Written by Tobias G. Dussa <tdussa at sdhs.de>
-% 09oct01
-% Copyright (C) by Tobias G. Dussa <tdussa at sdhs.de>
-%
-% Provides two macros to create english lines a.k.a. swelled rules (i.e.
-% lines % that become thicker towards the middle, much like a very
-% far-stretched diamond) that only use plain tex means.
-%
-% The macros provided are
-% - \swrule{length}{maximum width}
-% - \swrulex{length}{minimum width}{maximum width}
-%
-% The \swrule macro is just a shortcut for \swrulex{length}{0pt}{max width}.
-%
-% The minimum width is the width of the line at the far left and
-% right ends, while the maximum width is the width of the line in
-% the very middle.
-%
-% The english line is made up of many short lines of different widths.
-% The counter variable \swrulecount specifies how many small line pieces
-% should be used to approximate the english line. It is set to 50 by
-% default. The larger this value is, the finer-grained the resulting
-% english line will be, so that the steps will not be as obvious.
-% The \swrulecount variable should never be set to one, as a division
-% by zero would occur. Likewise, any value smaller than 1 is pointless,
-% albeit possible.
-%
-% The style package is a quick hack. If any error should occur, then
-% I would greatly appreciate learning about it.
-% Likewise, any suggestion is appreciated.
-%
-% The style package is copyrighted but may be used and extended in
-% any way, as long as a pointer to the original author is maintained.
-% The author is not liable for any problem that may or may not result
-% from using this package. Use at your own risk.
-%
-% Enjoy.
-
-\newcount\swrulecount
-\newcount\swrulestep
-\newdimen\swrulemin
-\newdimen\swrulemax
-\newdimen\swrulelength
-\newdimen\swruleraise
-\newdimen\swrulewidth
-\newdimen\swruledelta
-\newdimen\swrulepiece
-
-\swrulecount=50
-
-\def\swrulex#1#2#3{%
-\swrulestep=\swrulecount%
-\advance\swrulestep by -1%
-\swrulelength=#1%
-\swrulemin=#2%
-\swrulemax=#3%
-\swrulewidth=\swrulemin%
-\swruleraise=\swrulemax%
-\advance\swruleraise by -\swrulemin%
-\divide\swruleraise by 2%
-\swruledelta=\swrulemax%
-\advance\swruledelta by -\swrulemin%
-\divide\swruledelta by \swrulestep%
-\multiply\swrulestep by 2\advance\swrulestep by 1%
-\swrulepiece=\swrulelength%
-\divide\swrulepiece by \swrulestep%
-\swrulestep=1%
-\hbox{%
-\loop%
-\raise\swruleraise\hbox{\rule{\swrulepiece}{\swrulewidth}}%
-\ifnum\swrulestep<\swrulecount%
-\advance\swrulestep by 1%
-\advance\swruleraise by -\swruledelta%
-\advance\swrulewidth by 2\swruledelta%
-\repeat%
-\advance\swrulestep by -1%
-\advance\swruleraise by \swruledelta%
-\advance\swrulewidth by -2\swruledelta%
-\loop%
-\raise\swruleraise\hbox{\rule{\swrulepiece}{\swrulewidth}}%
-\ifnum\swrulestep>1%
-\advance\swrulestep by -1%
-\advance\swruleraise by \swruledelta%
-\advance\swrulewidth by -2\swruledelta%
-\repeat%
-}}
-
-\def\swrule#1#2{\swrulex{#1}{0pt}{#2}}
Added: trunk/Master/texmf-dist/tex/generic/swrule/swrule.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/swrule/swrule.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/swrule/swrule.sty 2020-03-12 22:41:10 UTC (rev 54267)
@@ -0,0 +1,89 @@
+% swrule.sty
+% Written by Tobias G. Dussa <tdussa at sdhs.de>
+% 09oct01
+% Copyright (C) by Tobias G. Dussa <tdussa at sdhs.de>
+%
+% Provides two macros to create english lines a.k.a. swelled rules (i.e.
+% lines % that become thicker towards the middle, much like a very
+% far-stretched diamond) that only use plain tex means.
+%
+% The macros provided are
+% - \swrule{length}{maximum width}
+% - \swrulex{length}{minimum width}{maximum width}
+%
+% The \swrule macro is just a shortcut for \swrulex{length}{0pt}{max width}.
+%
+% The minimum width is the width of the line at the far left and
+% right ends, while the maximum width is the width of the line in
+% the very middle.
+%
+% The english line is made up of many short lines of different widths.
+% The counter variable \swrulecount specifies how many small line pieces
+% should be used to approximate the english line. It is set to 50 by
+% default. The larger this value is, the finer-grained the resulting
+% english line will be, so that the steps will not be as obvious.
+% The \swrulecount variable should never be set to one, as a division
+% by zero would occur. Likewise, any value smaller than 1 is pointless,
+% albeit possible.
+%
+% The style package is a quick hack. If any error should occur, then
+% I would greatly appreciate learning about it.
+% Likewise, any suggestion is appreciated.
+%
+% The style package is copyrighted but may be used and extended in
+% any way, as long as a pointer to the original author is maintained.
+% The author is not liable for any problem that may or may not result
+% from using this package. Use at your own risk.
+%
+% Enjoy.
+
+\newcount\swrulecount
+\newcount\swrulestep
+\newdimen\swrulemin
+\newdimen\swrulemax
+\newdimen\swrulelength
+\newdimen\swruleraise
+\newdimen\swrulewidth
+\newdimen\swruledelta
+\newdimen\swrulepiece
+
+\swrulecount=50
+
+\def\swrulex#1#2#3{%
+\swrulestep=\swrulecount%
+\advance\swrulestep by -1%
+\swrulelength=#1%
+\swrulemin=#2%
+\swrulemax=#3%
+\swrulewidth=\swrulemin%
+\swruleraise=\swrulemax%
+\advance\swruleraise by -\swrulemin%
+\divide\swruleraise by 2%
+\swruledelta=\swrulemax%
+\advance\swruledelta by -\swrulemin%
+\divide\swruledelta by \swrulestep%
+\multiply\swrulestep by 2\advance\swrulestep by 1%
+\swrulepiece=\swrulelength%
+\divide\swrulepiece by \swrulestep%
+\swrulestep=1%
+\hbox{%
+\loop%
+\raise\swruleraise\hbox{\rule{\swrulepiece}{\swrulewidth}}%
+\ifnum\swrulestep<\swrulecount%
+\advance\swrulestep by 1%
+\advance\swruleraise by -\swruledelta%
+\advance\swrulewidth by 2\swruledelta%
+\repeat%
+\advance\swrulestep by -1%
+\advance\swruleraise by \swruledelta%
+\advance\swrulewidth by -2\swruledelta%
+\loop%
+\raise\swruleraise\hbox{\rule{\swrulepiece}{\swrulewidth}}%
+\ifnum\swrulestep>1%
+\advance\swrulestep by -1%
+\advance\swruleraise by \swruledelta%
+\advance\swrulewidth by -2\swruledelta%
+\repeat%
+}}
+
+\def\swrule#1#2{\swrulex{#1}{0pt}{#2}}
Property changes on: trunk/Master/texmf-dist/tex/generic/swrule/swrule.sty
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/tlpkg/bin/tlpkg-ctan-check
===================================================================
--- trunk/Master/tlpkg/bin/tlpkg-ctan-check 2020-03-12 22:40:04 UTC (rev 54266)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2020-03-12 22:41:10 UTC (rev 54267)
@@ -680,7 +680,7 @@
sudoku sudokubundle suftesi sugconf
superiors supertabular susy svg svg-inkscape svgcolor
svn svn-multi svn-prov svninfo svrsymbols
- swebib swimgraf syllogism
+ swebib swimgraf swrule syllogism
symbol sympytexpackage syntax synproof syntrace synttree
systeme
t-angles t2
Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds 2020-03-12 22:40:04 UTC (rev 54266)
+++ trunk/Master/tlpkg/libexec/ctan2tds 2020-03-12 22:41:10 UTC (rev 54267)
@@ -1674,6 +1674,7 @@
'shapepar', 'generic',
'spelling', 'luatex',
'startex', 'startex',
+ 'swrule', 'generic',
'systeme', 'generic',
'tabto-generic', 'generic',
'tap', 'generic',
Modified: trunk/Master/tlpkg/tlpsrc/collection-plaingeneric.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-plaingeneric.tlpsrc 2020-03-12 22:40:04 UTC (rev 54266)
+++ trunk/Master/tlpkg/tlpsrc/collection-plaingeneric.tlpsrc 2020-03-12 22:41:10 UTC (rev 54267)
@@ -83,6 +83,7 @@
depend schemata
depend shade
depend simplekv
+depend swrule
depend systeme
depend tabto-generic
depend termmenu
Added: trunk/Master/tlpkg/tlpsrc/swrule.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list.