diff options
author | Marius <mariausol@gmail.com> | 2011-12-17 11:40:14 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-12-17 11:40:14 +0200 |
commit | 8c264fd9af50c767be17918fc6b4d0da09167dec (patch) | |
tree | 1a08f7471d2381ed91063511fb787e2e2b8ef539 /tex/context/base/supp-box.mkiv | |
parent | a656aad1f74278e65b30bbe7493dcd5b143ffaaa (diff) | |
download | context-8c264fd9af50c767be17918fc6b4d0da09167dec.tar.gz |
beta 2011.12.17 10:04
Diffstat (limited to 'tex/context/base/supp-box.mkiv')
-rw-r--r-- | tex/context/base/supp-box.mkiv | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/tex/context/base/supp-box.mkiv b/tex/context/base/supp-box.mkiv index ce4f0544f..1b24b0455 100644 --- a/tex/context/base/supp-box.mkiv +++ b/tex/context/base/supp-box.mkiv @@ -92,33 +92,35 @@ \newcount\c_boxes_register \unexpanded\def\smashbox - {\afterassignment\dosmashbox\c_boxes_register} + {\afterassignment\boxes_smash_boxes_register\c_boxes_register} -\def\dosmashbox +\def\boxes_smash_boxes_register {\wd\c_boxes_register\zeropoint \ht\c_boxes_register\zeropoint \dp\c_boxes_register\zeropoint} -\unexpanded\def\smashedbox - {\afterassignment\thesmashedbox\c_boxes_register} - -\unexpanded\def\thesmashedbox - {\dosmashbox - \box\c_boxes_register} - \unexpanded\def\hsmashbox - {\afterassignment\dohsmashbox\c_boxes_register} + {\afterassignment\boxes_hsmashed_boxes_register\c_boxes_register} -\def\dohsmashbox +\def\boxes_hsmashed_boxes_register {\wd\c_boxes_register\zeropoint} \unexpanded\def\vsmashbox - {\afterassignment\dovsmashbox\c_boxes_register} + {\afterassignment\boxes_vsmashed_boxes_register\c_boxes_register} -\def\dovsmashbox +\def\boxes_vsmashed_boxes_register {\ht\c_boxes_register\zeropoint \dp\c_boxes_register\zeropoint} +\unexpanded\def\smashedbox + {\afterassignment\boxes_smashed_boxes_register\c_boxes_register} + +\unexpanded\def\boxes_smashed_boxes_register + {\wd\c_boxes_register\zeropoint + \ht\c_boxes_register\zeropoint + \dp\c_boxes_register\zeropoint + \box\c_boxes_register} + %D \macros %D {hsmash,vsmash, %D hsmashed,vsmashed} @@ -685,19 +687,26 @@ %D %D {\em todo: Search source for potential usage!} +% \unexpanded\def\dowithnextboxcontent#1#2% inside, after +% {\def\boxes_with_next_box_one{#2}% +% \def\boxes_with_next_box_two{#1\aftergroup\boxes_with_next_box_one}% +% \afterassignment\boxes_with_next_box_two +% \setbox\nextbox} + \unexpanded\def\dowithnextboxcontent#1#2% inside, after - {\def\boxes_with_next_box{#2}% - \def\boxes_with_next_box_indeed{#1\aftergroup\boxes_with_next_box}% - \afterassignment\boxes_with_next_box_indeed + {\def\boxes_with_next_box_one{#2}% + \def\boxes_with_next_box_two{#1}% + \afterassignment\boxes_with_next_box_content_indeed \setbox\nextbox} \unexpanded\def\dowithnextboxcontentcs#1#2% inside, after - {\let\boxes_with_next_box#2% - \let\boxes_with_next_box_indeed#1% + {\let\boxes_with_next_box_one#2% + \let\boxes_with_next_box_two#1% \afterassignment\boxes_with_next_box_content_indeed \setbox\nextbox} -\def\boxes_with_next_box_content_indeed{\boxes_with_next_box_indeed\aftergroup\boxes_with_next_box}% +\def\boxes_with_next_box_content_indeed + {\boxes_with_next_box_two\aftergroup\boxes_with_next_box_one} %D \macros %D {llap, rlap, tlap, blap, clap} |