diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-12 23:57:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-12 23:57:21 +0000 |
commit | 5ab48c515e7f18de489791d28188b43a389fe4c8 (patch) | |
tree | d11d232a328cd0436ccd36c402481be300e6d1e1 /Master/texmf-dist/tex/latex/jknapltx/parboxx.sty | |
parent | 350ddf44c5a7b4a3fd69591394cd828cd6518eb3 (diff) |
jknapltx
git-svn-id: svn://tug.org/texlive/trunk@1006 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/jknapltx/parboxx.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/jknapltx/parboxx.sty | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/jknapltx/parboxx.sty b/Master/texmf-dist/tex/latex/jknapltx/parboxx.sty new file mode 100644 index 00000000000..576639e26da --- /dev/null +++ b/Master/texmf-dist/tex/latex/jknapltx/parboxx.sty @@ -0,0 +1,42 @@ +%parboxx.sty +% Copyright 2003 J"org Knappen +% Neue Ausrichtungsparameter fuer Parboxen: +% New alignment options for \parbox'en: +% [T] An der Oberkante---really at top of the box +% [B] An der Unterkante---really at bottom of the box +% Works also for minipages + +\ProvidesPackage{parboxx}[2003/09/27 New alignment options for parboxen (JKn)] +\NeedsTeXFormat{LaTeX2e}[1999/06/01] % Internals of parbox changed at this date + +% Solides Hacking interner LaTeX2e-Befehle ist dazu n"otig ... + +% F"uhre \bm@B und \bm@T ein ... +\def\bm@B{\hss\unhbox\@tempboxa\kern0pt} +\def\bm@T{\kern0pt\unhbox\@tempboxa\hss} + +% Modifiziere \@iiiparbox +\long\def\@iiiparbox#1#2[#3]#4#5{% + \leavevmode + \@pboxswfalse + \setlength\@tempdima{#4}% + \@begin@tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}% + \ifx\relax#2\else + \setlength\@tempdimb{#2}% + \def\@parboxto{to\@tempdimb}% + \fi + \if#1b\vbox + \else\if #1B\vbox % neue Option + \else\if #1t\vtop + \else\if #1T\vtop % neue Option + \else\ifmmode\vcenter + \else\@pboxswtrue $\vcenter + \fi\fi\fi\fi\fi % mehr \fi's + \@parboxto{\let\hss\vss\let\unhbox\unvbox + \csname bm@#3\endcsname}% % Hier kommen die bm@...-Makros her + \if@pboxsw \m@th$\fi + \@end@tempboxa} + +\endinput + +%/parboxx.sty |