* Layer preset: leftbottom
@ 2011-12-18 10:00 Andreas Harder
2011-12-18 10:14 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Harder @ 2011-12-18 10:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi Hans,
it seems that the layer preset "leftbottom" is broken.
\definelayer[page] [width=\paperwidth,height=\paperheight]
\setlayer [page] [preset=leftbottom] {\red TEST} % error
% \setlayer [page] [preset=rightbottom] {\red TEST} % OK
\setupbackgrounds[page][background=page]
\starttext
\page[empty]
\stoptext
Regards
Andreas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Layer preset: leftbottom
2011-12-18 10:00 Layer preset: leftbottom Andreas Harder
@ 2011-12-18 10:14 ` Wolfgang Schuster
2011-12-18 10:34 ` Andreas Harder
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2011-12-18 10:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 18.12.2011 um 11:00 schrieb Andreas Harder:
> Hi Hans,
>
> it seems that the layer preset "leftbottom" is broken.
I posted this fix a few days ago on the dev list:
supp-box.mkiv:
-\unexpanded\def\righttopbox_finish
+\def\boxes_righttopbox_finish
{\global\boxhdisplacement\boxoffset
\global\boxvdisplacement-\dp\nextbox
\global\advance\boxvdisplacement-\boxoffset
\boxcursor\hskip\boxhdisplacement\raise-\boxvdisplacement\box\nextbox
\egroup}
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Layer preset: leftbottom
2011-12-18 10:14 ` Wolfgang Schuster
@ 2011-12-18 10:34 ` Andreas Harder
2011-12-18 14:20 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Andreas Harder @ 2011-12-18 10:34 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]
On 18.12.2011, at 11:14, Wolfgang Schuster wrote:
>
> Am 18.12.2011 um 11:00 schrieb Andreas Harder:
>
>> Hi Hans,
>>
>> it seems that the layer preset "leftbottom" is broken.
>
> I posted this fix a few days ago on the dev list:
>
> supp-box.mkiv:
>
> -\unexpanded\def\righttopbox_finish
> +\def\boxes_righttopbox_finish
> {\global\boxhdisplacement\boxoffset
> \global\boxvdisplacement-\dp\nextbox
> \global\advance\boxvdisplacement-\boxoffset
> \boxcursor\hskip\boxhdisplacement\raise-\boxvdisplacement\box\nextbox
> \egroup}
Thanks Wolfgang!
By the way … Sorry to bother you, but I’m still run into problems according \definelayout.
This example used to work with the beta from November 29 (desired output attached).
\setuplayout [width=middle,height=middle,header=0pt,footer=0pt]
\definelayout[first] [header=2cm]
\definelayout[last] [footer=2cm]
\definelayout[current] % current|unknown
\starttext \showframe % \checkcurrentlayout
% \dorecurse{2}{test\page} % last is wrong
\dorecurse{5}{test\page} % page 2 and „last“ are wrong
\stoptext
[-- Attachment #2: Two+Pages.pdf --]
[-- Type: application/pdf, Size: 6908 bytes --]
[-- Attachment #3: TwoPages.pdf --]
[-- Type: application/pdf, Size: 5709 bytes --]
[-- Attachment #4: Type: text/plain, Size: 32 bytes --]
Thank you in advance
Andreas
[-- Attachment #5: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Layer preset: leftbottom
2011-12-18 10:34 ` Andreas Harder
@ 2011-12-18 14:20 ` Wolfgang Schuster
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2011-12-18 14:20 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Am 18.12.2011 um 11:34 schrieb Andreas Harder:
> By the way … Sorry to bother you, but I’m still run into problems according \definelayout.
Change in page-imp.mkiv the order of the last to lines (increment realpage before flushing \everyaftershipout):
\def\page_boxes_shipout#1% or: \page_shipouts_apply
{\dontshowcomposition % redundant
\dontcomplain % redundant
\the\everybeforeshipout
\ifcase\shipoutfinalizemethod
\page_shipouts_handle{#1}%
\else
\setbox\shipoutscratchbox\hbox{#1}% just in case there are objects there, hook for testing (will go away)
\finalizeshipoutbox\shipoutscratchbox
\page_shipouts_handle{\box\shipoutscratchbox}%
\fi
\the\everyaftershipout
\setnextrealpageno}
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-12-18 14:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-18 10:00 Layer preset: leftbottom Andreas Harder
2011-12-18 10:14 ` Wolfgang Schuster
2011-12-18 10:34 ` Andreas Harder
2011-12-18 14:20 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).