ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Beta problem with arranging XY
@ 2015-07-09  8:04 Taco Hoekwater
  2015-07-09 11:23 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2015-07-09  8:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 393 bytes --]

Hi,

It seems that the latest betas have a problem with the XY arrangement and/or \setuppaper. 

The attached file used to run fine, but lately all the placements are off (the address labels should be roughly centered on the A4 page). 

I am not sure how long ago this started going wrong, sorry (I often use a context installation from 2012 instead of the beta).

Best wishes,
Taco

[-- Attachment #2: test-labels.pdf --]
[-- Type: application/pdf, Size: 7583 bytes --]

[-- Attachment #3: test-labels.tex --]
[-- Type: application/octet-stream, Size: 788 bytes --]


\showframe

\definepapersize
    [Label]
    [height=50.8mm,width=70mm]

\setuppapersize[Label][A4,portrait]

\setuppaper
    [topspace=0mm,
     backspace=0mm,
     dx=0mm,
     dy=0mm,
     nx=3,
     ny=5,
     margin=0,
     header=20mm,
     footer=0mm
     width=210mm,
     height=254mm]

\setuplayout
     [topspace=0mm,
      backspace=10mm,
      margin=5mm,
      width=60mm,
      height=50.8mm,
      header=0mm,
      footer=0mm]

\setupbodyfont[modern,12pt]
\setuparranging[XY]

\definelayer
    [Label]
    [width=\paperwidth,height=\paperheight]

\starttext
\dorecurse
 {15}
 {\setlayer
   [Label]
   [preset=leftbottom,
    location={right,top},
    y=-10mm,x=0mm]
   {[Adr\recurselevel]}
  \startstandardmakeup
    \placelayer[Label]
  \stopstandardmakeup }
\stoptext

[-- Attachment #4: 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: Beta problem with arranging XY
  2015-07-09  8:04 Beta problem with arranging XY Taco Hoekwater
@ 2015-07-09 11:23 ` Hans Hagen
  2015-07-09 12:21   ` Taco Hoekwater
  0 siblings, 1 reply; 4+ messages in thread
From: Hans Hagen @ 2015-07-09 11:23 UTC (permalink / raw)
  To: ntg-context

On 7/9/2015 10:04 AM, Taco Hoekwater wrote:
> Hi,
>
> It seems that the latest betas have a problem with the XY arrangement and/or \setuppaper.
>
> The attached file used to run fine, but lately all the placements are off (the address labels should be roughly centered on the A4 page).
>
> I am not sure how long ago this started going wrong, sorry (I often use a context installation from 2012 instead of the beta).

probably a fixed bad default at some point, just add:

\setuplayout[location=middle]

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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: Beta problem with arranging XY
  2015-07-09 11:23 ` Hans Hagen
@ 2015-07-09 12:21   ` Taco Hoekwater
  2015-07-09 13:51     ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: Taco Hoekwater @ 2015-07-09 12:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> On 09 Jul 2015, at 13:23, Hans Hagen <pragma@wxs.nl> wrote:
> 
> \setuplayout[location=middle]

That fixes the global placement indeed, great.

But it does not solve the problem that address number 1 appears in label number 4 (and 13 to 15 are off the bottom of the page).

Best wishes,
Taco
___________________________________________________________________________________
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: Beta problem with arranging XY
  2015-07-09 12:21   ` Taco Hoekwater
@ 2015-07-09 13:51     ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2015-07-09 13:51 UTC (permalink / raw)
  To: ntg-context

On 7/9/2015 2:21 PM, Taco Hoekwater wrote:
>
>> On 09 Jul 2015, at 13:23, Hans Hagen <pragma@wxs.nl> wrote:
>>
>> \setuplayout[location=middle]
>
> That fixes the global placement indeed, great.
>
> But it does not solve the problem that address number 1 appears in label number 4 (and 13 to 15 are off the bottom of the page).

you probably run into some vss etc issues here

when you have a layer with dimensions, you can be use \tightlayer for 
placement

also, offsets have a different sign depending on the corner, so y=10mm 
for leftbottom means go up (afaik this has always been so)

\dorecurse
  {30}
  {\setlayer
    [Label]
    [preset=leftbottom,
     y=10mm,x=0mm]
    {\the\paperheight/\the\paperwidth}
   \startstandardmakeup
     \tightlayer[Label]
   \stopstandardmakeup }


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2015-07-09 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-09  8:04 Beta problem with arranging XY Taco Hoekwater
2015-07-09 11:23 ` Hans Hagen
2015-07-09 12:21   ` Taco Hoekwater
2015-07-09 13:51     ` Hans Hagen

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).