| 1 |
%parboxx.sty |
| 2 |
% Copyright 2003 J"org Knappen |
| 3 |
% Neue Ausrichtungsparameter fuer Parboxen: |
| 4 |
% New alignment options for \parbox'en: |
| 5 |
% [T] An der Oberkante---really at top of the box |
| 6 |
% [B] An der Unterkante---really at bottom of the box |
| 7 |
% Works also for minipages |
| 8 |
|
| 9 |
\ProvidesPackage{parboxx}[2003/09/27 New alignment options for parboxen (JKn)] |
| 10 |
\NeedsTeXFormat{LaTeX2e}[1999/06/01] % Internals of parbox changed at this date |
| 11 |
|
| 12 |
% Solides Hacking interner LaTeX2e-Befehle ist dazu n"otig ... |
| 13 |
|
| 14 |
% F"uhre \bm@B und \bm@T ein ... |
| 15 |
\def\bm@B{\hss\unhbox\@tempboxa\kern0pt} |
| 16 |
\def\bm@T{\kern0pt\unhbox\@tempboxa\hss} |
| 17 |
|
| 18 |
% Modifiziere \@iiiparbox |
| 19 |
\long\def\@iiiparbox#1#2[#3]#4#5{% |
| 20 |
\leavevmode |
| 21 |
\@pboxswfalse |
| 22 |
\setlength\@tempdima{#4}% |
| 23 |
\@begin@tempboxa\vbox{\hsize\@tempdima\@parboxrestore#5\@@par}% |
| 24 |
\ifx\relax#2\else |
| 25 |
\setlength\@tempdimb{#2}% |
| 26 |
\def\@parboxto{to\@tempdimb}% |
| 27 |
\fi |
| 28 |
\if#1b\vbox |
| 29 |
\else\if #1B\vbox % neue Option |
| 30 |
\else\if #1t\vtop |
| 31 |
\else\if #1T\vtop % neue Option |
| 32 |
\else\ifmmode\vcenter |
| 33 |
\else\@pboxswtrue $\vcenter |
| 34 |
\fi\fi\fi\fi\fi % mehr \fi's |
| 35 |
\@parboxto{\let\hss\vss\let\unhbox\unvbox |
| 36 |
\csname bm@#3\endcsname}% % Hier kommen die [email protected] her |
| 37 |
\if@pboxsw \m@th$\fi |
| 38 |
\@end@tempboxa} |
| 39 |
|
| 40 |
\endinput |
| 41 |
|
| 42 |
%/parboxx.sty |