summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/page-imp.mkiv
diff options
context:
space:
mode:
authorMojca Miklavec <mojca.miklavec@gmail.com>2012-05-22 21:04:25 +0000
committerMojca Miklavec <mojca.miklavec@gmail.com>2012-05-22 21:04:25 +0000
commita115fb4ebf3890ee3cabdf98f3f945a349860752 (patch)
treee4d25217d24f4c1b6d863007725f538169379e87 /Master/texmf-dist/tex/context/base/page-imp.mkiv
parentd36378879c10c7378bc52d9fe7d1ce9c3677d98b (diff)
ConTeXt 2012.05.22 16:12
git-svn-id: svn://tug.org/texlive/trunk@26572 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/page-imp.mkiv')
-rw-r--r--Master/texmf-dist/tex/context/base/page-imp.mkiv28
1 files changed, 19 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/context/base/page-imp.mkiv b/Master/texmf-dist/tex/context/base/page-imp.mkiv
index 71c30a7e19e..9d0f722fe28 100644
--- a/Master/texmf-dist/tex/context/base/page-imp.mkiv
+++ b/Master/texmf-dist/tex/context/base/page-imp.mkiv
@@ -560,18 +560,23 @@
\def\handlearrangedpageTWOUP
{\splitoffarrangedpagesTWO
+ \ht\arrangedpageA\paperheight
+ \ht\arrangedpageB\paperheight
\ifconditional\arrangedswapstate
\global\setbox\arrangedpageA\hbox
- {\page_boxes_apply_clip_print_left \arrangedpageA\box\arrangedpageA
- \page_boxes_apply_clip_print_right\arrangedpageB\box\arrangedpageB}%
+ {\page_boxes_apply_clip_print_left \arrangedpageA
+ \box\arrangedpageA
+ \page_boxes_apply_clip_print_right\arrangedpageB
+ \box\arrangedpageB}%
\setfalse\arrangedswapstate
\else
\global\setbox\arrangedpageA\hbox
- {\page_boxes_apply_clip_print_left \arrangedpageB\box\arrangedpageB
- \page_boxes_apply_clip_print_right\arrangedpageA\box\arrangedpageA}%
+ {\page_boxes_apply_clip_print_left \arrangedpageB
+ \box\arrangedpageB
+ \page_boxes_apply_clip_print_right\arrangedpageA
+ \box\arrangedpageA}%
\settrue\arrangedswapstate
\fi
- \ht\arrangedpageA\paperheight
\global\setbox\arrangedpageB\box\scratchbox}
\def\handlearrangedpageTWODOWN
@@ -580,13 +585,17 @@
\ht\arrangedpageB\paperheight
\ifconditional\arrangedswapstate
\global\setbox\arrangedpageA\vbox
- {\offinterlineskip\vskip\paperheight
- \box\arrangedpageA\box\arrangedpageB}%
+ {\offinterlineskip
+ \vskip\paperheight
+ \box\arrangedpageA
+ \box\arrangedpageB}%
\setfalse\arrangedswapstate
\else
\global\setbox\arrangedpageA\vbox
- {\offinterlineskip\vskip\paperheight
- \box\arrangedpageB\box\arrangedpageA}%
+ {\offinterlineskip
+ \vskip\paperheight
+ \box\arrangedpageB
+ \box\arrangedpageA}%
\settrue\arrangedswapstate
\fi
\global\setbox\arrangedpageB\box\scratchbox}
@@ -616,6 +625,7 @@
{\offinterlineskip
\unvbox\arrangedpageB
\allowbreak
+ \setbox#1\vbox{\box#1}% really needed in order to keep real dimensions
\ht#1\onepoint
\dp#1\zeropoint
\vbox{\box#1}}}