ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XY-arranging
@ 2008-09-13 16:53 Willi Egger
  2008-09-13 17:27 ` XY-arranging Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Willi Egger @ 2008-09-13 16:53 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

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

Hi Guru's

In the pdftex environment the enclosed file will result in an address- 
label on position 8 from the top on a sheet with 14 labels.

When compiling this file with LuaTeX, then the label is placed  
somewhere down left and the dimensions are messed up.

I am stummied...

Currently I am using : ConTeXt  ver: 2008.08.11 11:45 MKIV  fmt:  
2008.8.11  int: english/english


Kind regards

Willi

[-- Attachment #2: XY-arrange-test.tex --]
[-- Type: application/octet-stream, Size: 1547 bytes --]

% Context file
% Filename: XY-arrange-test.tex
% Willi Egger
% 13-09-2008
% Copyright (c) 2008 BOEDE. All rights reserved.

\showframe

\definepapersize[Etiket][height=42.3mm,width=105mm]
\setuppapersize [Etiket][A4,portrait]
\setuppaper
    [topspace=0mm,
    backspace=0mm,
    dx=2mm,
    dy=0mm,
    nx=2,
    ny=7,
    margin=0,
    width=210mm,
    height=297mm]
\setuplayout
    [topspace=4mm,
    backspace=6mm,
    margin=0mm,
    width=96mm,
    height=34mm,
    header=0mm,
    footer=0mm]
\setuparranging[XY]
\definelayer[Etiket][width=\textwidth, height=\textheight]
\setupframedtexts[frame=off,width=\textwidth,align=right]

\def\Printlabel{8} %Last available label
\def\Labels{14} %Total number of labels

\startbuffer[Adr\Printlabel]
  \framedtext[frame=off]{%
		\startlines
			Mr. Klaus Freiner
			Kingston Road
			358766 Arranged Address		
			XY Arrangement
		\stoplines}
\stopbuffer

\startbuffer[Retouradres]
	\framed[frame=off,bottomframe=on,rulethickness=2pt]{%
		Willi Egger, Maasstraat 2, {\sc 5836 BB Sambeek, Nederland }}
\stopbuffer

\starttext
\dostepwiserecurse{1}{\Labels}{1}{%
    \ifnum\recurselevel=\Printlabel
    {\setlayer
		[Etiket]
		[preset=lefttop,location={right,bottom}]
		{\switchtobodyfont[5pt]\getbuffer[Retouradres]}
    \setlayer
		[Etiket]
		[preset=leftbottom,location={right,top},y=-3mm,x=-3mm]
		{\switchtobodyfont[10pt]\getbuffer[Adr\recurselevel]}}
    \else
    {\setlayer
      [Etiket]
      [preset=lefttop,location={right,bottom}]
      {\strut}}
    \fi
    \placelayer[Etiket]}
\stoptext

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





[-- Attachment #4: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: XY-arranging
  2008-09-13 16:53 XY-arranging Willi Egger
@ 2008-09-13 17:27 ` Wolfgang Schuster
  2008-09-13 18:20   ` XY-arranging Willi Egger
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2008-09-13 17:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 13.09.2008 um 18:53 schrieb Willi Egger:

> Hi Guru's
>
> In the pdftex environment the enclosed file will result in an  
> address-label on position 8 from the top on a sheet with 14 labels.
>
> When compiling this file with LuaTeX, then the label is placed  
> somewhere down left and the dimensions are messed up.
>
> I am stummied...
>
> Currently I am using : ConTeXt  ver: 2008.08.11 11:45 MKIV  fmt:  
> 2008.8.11  int: english/english
>

You should force a shipout for every page, to do this replace  
placelayer[...] with

\startstandardmakeup
\placelayer[Etiket]
\stopstandardmakeup

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: XY-arranging
  2008-09-13 17:27 ` XY-arranging Wolfgang Schuster
@ 2008-09-13 18:20   ` Willi Egger
  2008-09-13 18:30     ` XY-arranging Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Willi Egger @ 2008-09-13 18:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hallo Wolfgang,

Thanks a lot for your immediate reply. - It works indeed. Just out of  
curiositiy: is there a reason why you suggest standardmakeup, it  
works also with \placelayer[Etiket]\page?


Willi

On Sep 13, 2008, at 7:27 PM, Wolfgang Schuster wrote:

> \startstandardmakeup
> \placelayer[Etiket]
> \stopstandardmakeup

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: XY-arranging
  2008-09-13 18:20   ` XY-arranging Willi Egger
@ 2008-09-13 18:30     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2008-09-13 18:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 13.09.2008 um 20:20 schrieb Willi Egger:

> Hallo Wolfgang,
>
> Thanks a lot for your immediate reply. - It works indeed. Just out of
> curiositiy: is there a reason why you suggest standardmakeup, it
> works also with \placelayer[Etiket]\page?
>

I prefer makeups in this situation but page is also possible, it's just
a matter of style and you could use what you prefer.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-13 18:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-13 16:53 XY-arranging Willi Egger
2008-09-13 17:27 ` XY-arranging Wolfgang Schuster
2008-09-13 18:20   ` XY-arranging Willi Egger
2008-09-13 18:30     ` XY-arranging 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).