texlive[54254] Master: outerhbox own package, from genmisc
commits+karl at tug.org
commits+karl at tug.org
Thu Mar 12 18:03:26 CET 2020
Revision: 54254
http://tug.org/svn/texlive?view=revision&revision=54254
Author: karl
Date: 2020-03-12 18:03:25 +0100 (Thu, 12 Mar 2020)
Log Message:
-----------
outerhbox 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/outerhbox/
trunk/Master/texmf-dist/tex/generic/outerhbox/outerhbox.sty
trunk/Master/tlpkg/tlpsrc/outerhbox.tlpsrc
Removed Paths:
-------------
trunk/Master/texmf-dist/tex/generic/genmisc/nth.sty
trunk/Master/texmf-dist/tex/generic/genmisc/outerhbox.sty
Deleted: trunk/Master/texmf-dist/tex/generic/genmisc/nth.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/genmisc/nth.sty 2020-03-12 17:00:54 UTC (rev 54253)
+++ trunk/Master/texmf-dist/tex/generic/genmisc/nth.sty 2020-03-12 17:03:25 UTC (rev 54254)
@@ -1,56 +0,0 @@
-% nth.sty version 2002/27/02 Donald Arseneau
-% Ordinal numbering style, 1st 2nd 3rd 4th 5th... 12th... 101st 102nd...
-%
-% (Public domain: take, include, extract, whatever)
-%
-% In LaTeX:
-% \usepackage[super,negative]{nth}
-% where option [super] gives superscript `th'
-% and option [negative] allows ``st, nd, rd'' suffixes on negative numbers.
-%
-% example: \renewcommand{\thesection}{\ordinal{section}}
-% or \renewcommand{\thesection}{\@ordinal\c at section}
-% or \renewcommand{\thesection}{\nth\c at section}
-%
-% In plain TeX:
-% \input nth.sty
-% use: \nth{<number>}.
-% Change formatting by redefining \nthscript and \nthtest
-
-\def\nth#1{% First print number:
- \expandafter\nthM \number #1\relax
- \nthscript{%
- \ifnum#1\nthtest0 th\else % negatives are all ``th'' (depending on \nthtest)
- \expandafter \nthSuff \expandafter 0\number\ifnum #1<0-\fi#1\delimiter
- \fi
- }}
-
-% Minus sign using math mode:
-\def\nthM#1{\if -#1\ifmmode-\else$-$\fi\else #1\fi}
-
-% Print suffix depending on last two digits:
-\def\nthSuff#1#2#3{%
- \ifx \delimiter#3% #1#2 are last two digits
- \ifnum #1=1 th% teens are always ``th''
- \else % use appropriate suffix
- \ifcase #2 th\or st\or nd\or rd\else th\fi
- \fi
- \else % continue scanning for last two digits
- \expandafter \nthSuff \expandafter #2\expandafter #3%
- \fi}
-
-% Formatting hook for ordinals (\let\nthscript\textsuperscript)
-\def\nthscript#1{#1}% alternate: \def\nthscript#1{$\rm^{#1}$}
-
-% Formatting hook for all negative numbers giving ``th''
-\def\nthtest{<} % alternate: \def\nthtest{=}
-
-\ifx\Alph\undefined\else
- \def\ordinal#1{\expandafter\@ordinal\csname c@#1\endcsname}
- \let\@ordinal\nth
- \ProvidesPackage{nth}[2002/02/27]
- \DeclareOption{super}{\def\nthscript{\textsuperscript}}
- \DeclareOption{negative}{\def\nthtest{=}}
- \ProcessOptions
-\fi
-
Deleted: trunk/Master/texmf-dist/tex/generic/genmisc/outerhbox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/genmisc/outerhbox.sty 2020-03-12 17:00:54 UTC (rev 54253)
+++ trunk/Master/texmf-dist/tex/generic/genmisc/outerhbox.sty 2020-03-12 17:03:25 UTC (rev 54254)
@@ -1,86 +0,0 @@
-% Copyright (c) 2005 Jonathan Fine <jfine at pytex.org>
-% License: GPL version 2 or (at your option) any later version.
-% $Source: /cvsroot/pytex/pytex/texmacros/outerhbox.sty,v $
-
-% $Log: outerhbox.sty,v $
-% Revision 1.2 2005/10/06 07:00:19 jfine
-% Added description, as provided to CTAN
-%
-% Revision 1.1 2005/10/06 06:32:18 jfine
-% As posted to comp.text.tex, but \outerhbox instead of \outerbox
-
-% Collects horizontal mode material into an \hbox, suitable for later
-% \unhbox'ing into a paragraph. For use with plain, LaTeX, ConTeXt, etc.
-
-% Provides \outerhbox, which is roughly similar to \hbox, except that
-% material is set in outer horizontal mode. This prevents TeX from
-% optimising away math penalties and the like, that are needed when the
-% material is \unhbox'ed.
-
-% Based on code I posted to comp.text.tex
-
-% Message-ID: <43399D5A.50803 at pytex.org>
-% Date: Tue, 27 Sep 2005 20:28:26 +0100
-% Newsgroups: comp.text.tex
-% Subject: Re: overlong lines in List of Figures
-% <http://groups.google.com/group/comp.text.tex/msg/56ea490ad6d13dae>
-
-\ifx\undefined\outerhbox
-\else\endinput\fi
-
-\ifx \documentstyle \undefined \else
- \ifx \documentclass \undefined
- \else \ProvidesPackage{outerhbox}[2005/09/29] \fi
-\fi
-
-
-\long\def\outerhbox #1%
-% like \hbox, but sets material in outer horizontal mode
-% #1 - horizontal material, to be set in outer horizontal mode
-% Note: inappropriate commands in #1 can cause an \outerhboxerror
-{%
- \hbox{%
- \setbox0 \vbox{%
- \hsize\maxdimen
- \pretolerance -1
- \rightskip 0pt
- \parfillskip 0pt plus 1fil
- \noindent #1\endgraf
- \global\setbox1 \lastbox
- }%
- % check that size of \box 0 is 0.0+0.0x0.0
- \ifcase
- % skip to \else if any dimension is non-zero
- \ifcase\wd0 \else 1 \fi
- \ifcase\ht0 \else 1 \fi
- \ifcase\dp0 \else 1 \fi
- 0 % satisfy the \ifcase
- %
- % place material into \hbox
- \unhbox 1
- \unskip % remove \rightskip glue
- \unskip % remove \parfillskip glue
- \unpenalty % remove paragraph ending \penalty 10000
- \else
- % there's something left in \box 0
- \outerhboxerror % default handler is to be \undefined
- \fi
- }%
-}
-
-% \endinut % some test code follows
-
-\tracingall
-\tracingonline = 1
-% \nonstopmode
-
-\setbox 0 \hbox{$2+2=2$} \showbox 0
-\setbox 0 \outerhbox{$2+2=2$} \showbox 0
-{ \leftskip 1in
- \setbox 0 \outerhbox{$2+2=2$} \showbox 0
-}
-
-\setbox 0 \outerhbox{a\par b} \showbox 0
-\setbox 0 \outerhbox{} \showbox 0
-\setbox 0 \outerhbox{\ } \showbox 0
-\end
Added: trunk/Master/texmf-dist/tex/generic/outerhbox/outerhbox.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/outerhbox/outerhbox.sty (rev 0)
+++ trunk/Master/texmf-dist/tex/generic/outerhbox/outerhbox.sty 2020-03-12 17:03:25 UTC (rev 54254)
@@ -0,0 +1,86 @@
+% Copyright (c) 2005 Jonathan Fine <jfine at pytex.org>
+% License: GPL version 2 or (at your option) any later version.
+% $Source: /cvsroot/pytex/pytex/texmacros/outerhbox.sty,v $
+
+% $Log: outerhbox.sty,v $
+% Revision 1.2 2005/10/06 07:00:19 jfine
+% Added description, as provided to CTAN
+%
+% Revision 1.1 2005/10/06 06:32:18 jfine
+% As posted to comp.text.tex, but \outerhbox instead of \outerbox
+
+% Collects horizontal mode material into an \hbox, suitable for later
+% \unhbox'ing into a paragraph. For use with plain, LaTeX, ConTeXt, etc.
+
+% Provides \outerhbox, which is roughly similar to \hbox, except that
+% material is set in outer horizontal mode. This prevents TeX from
+% optimising away math penalties and the like, that are needed when the
+% material is \unhbox'ed.
+
+% Based on code I posted to comp.text.tex
+
+% Message-ID: <43399D5A.50803 at pytex.org>
+% Date: Tue, 27 Sep 2005 20:28:26 +0100
+% Newsgroups: comp.text.tex
+% Subject: Re: overlong lines in List of Figures
+% <http://groups.google.com/group/comp.text.tex/msg/56ea490ad6d13dae>
+
+\ifx\undefined\outerhbox
+\else\endinput\fi
+
+\ifx \documentstyle \undefined \else
+ \ifx \documentclass \undefined
+ \else \ProvidesPackage{outerhbox}[2005/09/29] \fi
+\fi
+
+
+\long\def\outerhbox #1%
+% like \hbox, but sets material in outer horizontal mode
+% #1 - horizontal material, to be set in outer horizontal mode
+% Note: inappropriate commands in #1 can cause an \outerhboxerror
+{%
+ \hbox{%
+ \setbox0 \vbox{%
+ \hsize\maxdimen
+ \pretolerance -1
+ \rightskip 0pt
+ \parfillskip 0pt plus 1fil
+ \noindent #1\endgraf
+ \global\setbox1 \lastbox
+ }%
+ % check that size of \box 0 is 0.0+0.0x0.0
+ \ifcase
+ % skip to \else if any dimension is non-zero
+ \ifcase\wd0 \else 1 \fi
+ \ifcase\ht0 \else 1 \fi
+ \ifcase\dp0 \else 1 \fi
+ 0 % satisfy the \ifcase
+ %
+ % place material into \hbox
+ \unhbox 1
+ \unskip % remove \rightskip glue
+ \unskip % remove \parfillskip glue
+ \unpenalty % remove paragraph ending \penalty 10000
+ \else
+ % there's something left in \box 0
+ \outerhboxerror % default handler is to be \undefined
+ \fi
+ }%
+}
+
+% \endinut % some test code follows
+
+\tracingall
+\tracingonline = 1
+% \nonstopmode
+
+\setbox 0 \hbox{$2+2=2$} \showbox 0
+\setbox 0 \outerhbox{$2+2=2$} \showbox 0
+{ \leftskip 1in
+ \setbox 0 \outerhbox{$2+2=2$} \showbox 0
+}
+
+\setbox 0 \outerhbox{a\par b} \showbox 0
+\setbox 0 \outerhbox{} \showbox 0
+\setbox 0 \outerhbox{\ } \showbox 0
+\end
Property changes on: trunk/Master/texmf-dist/tex/generic/outerhbox/outerhbox.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 17:00:54 UTC (rev 54253)
+++ trunk/Master/tlpkg/bin/tlpkg-ctan-check 2020-03-12 17:03:25 UTC (rev 54254)
@@ -531,7 +531,8 @@
onedown onlyamsmath onrannual opcit opensans oplotsymbl
opteng optex optidef optional options
ordinalpt orkhun oscola ot-tableau othello othelloboard
- oubraces outline outliner outlines outlining overlays overlock overpic
+ oubraces outerhbox outline outliner outlines outlining
+ overlays overlock overpic
pacioli padauk pagecolor pagecont padcount pagenote pagerange pageslts
palatino paper papercdcase papermas papertex
paracol parades paralist parallel paratype
Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds 2020-03-12 17:00:54 UTC (rev 54253)
+++ trunk/Master/tlpkg/libexec/ctan2tds 2020-03-12 17:03:25 UTC (rev 54254)
@@ -1650,6 +1650,7 @@
'ofs', 'generic',
'oinuit', 'lambda',
'optex', 'luatex',
+ 'outerhbox', 'generic',
'passivetex', 'xmltex',
'pdcmac', 'plain',
'pdf-trans', 'generic',
@@ -1967,6 +1968,7 @@
'ofs', '^ofs\.tex|ofsdef\.tex|ofs-.*\.tex|\.sty|a.*\.tex|.*fn\.tex',
'olsak-misc', '(qrcode|scanbase|scancsv|xmlparser)\.tex',
'optex', '\.opm|\.ini',
+ 'outerhbox', '\.sty',
'pageslts', '\.sty|[^c]\.cfg', # not ltxdoc.cfg
'papermas', '\.sty|[^c]\.cfg', # not ltxdoc.cfg, would be system-wide
'passivetex', '\.xmt|' . $standardtex,
Modified: trunk/Master/tlpkg/tlpsrc/collection-plaingeneric.tlpsrc
===================================================================
--- trunk/Master/tlpkg/tlpsrc/collection-plaingeneric.tlpsrc 2020-03-12 17:00:54 UTC (rev 54253)
+++ trunk/Master/tlpkg/tlpsrc/collection-plaingeneric.tlpsrc 2020-03-12 17:03:25 UTC (rev 54254)
@@ -64,6 +64,7 @@
depend nth
depend ofs
depend olsak-misc
+depend outerhbox
depend path
depend pdf-trans
depend pitex
Added: trunk/Master/tlpkg/tlpsrc/outerhbox.tlpsrc
===================================================================
More information about the tex-live-commits
mailing list.