ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in alignbox
@ 2004-05-14  8:53 Vit Zyka
  2004-05-14 16:09 ` Hans Hagen
  2004-05-15  8:20 ` layers (was bug in alignbox) pawcoo
  0 siblings, 2 replies; 3+ messages in thread
From: Vit Zyka @ 2004-05-14  8:53 UTC (permalink / raw)


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

Hallo Hans,

I have played with positioning text in layers. I noticed that parameter "location=t" 
  \setlayer[MyLayer][...,location=t,...]{...}
behaves the same way as "location=c". It seems to me it is the bug in optimized definition of 
\alignedbox. If I use commented version of \alignedbox from source file core-box.tex
it is OK. Can you look at it, please?

Test file:
------------------------------------------------------------------
\definelayer[PositionText][position=no,corner=buttom,height=\textheight,option=test]
\def\PosText(#1,#2)[#3]#4{%
  \setlayer[PositionText][x=#1,y=#2,location=#3]{#4}%
  \ignorespaces}
\setupbackgrounds[text][background={PositionText}]

\switchtobodyfont[20pt]
\starttext

\PosText(.3\textwidth,.3\textheight)[c]{Center}
\PosText(.3\textwidth,.3\textheight)[t]{Top}
\PosText(.3\textwidth,.3\textheight)[b]{Bottom}
\PosText(.3\textwidth,.5\textheight)[l]{Left}
\PosText(.3\textwidth,.5\textheight)[r]{Right}
\PosText(.7\textwidth,.5\textheight)[tl]{TopLeft}
\PosText(.7\textwidth,.5\textheight)[tr]{TopRight}
\PosText(.7\textwidth,.5\textheight)[bl]{BottomLeft}
\PosText(.7\textwidth,.5\textheight)[br]{BottomRight}

Ap\hskip1.5em
\alignedbox[b]\hbox{ApB}\hskip1.5em
\alignedbox[c]\hbox{ApC}\hskip1.5em
\alignedbox[t]\hbox{ApT}

\stoptext

[-- Attachment #2: Type: text/html, Size: 2531 bytes --]

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

* Re: bug in alignbox
  2004-05-14  8:53 bug in alignbox Vit Zyka
@ 2004-05-14 16:09 ` Hans Hagen
  2004-05-15  8:20 ` layers (was bug in alignbox) pawcoo
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2004-05-14 16:09 UTC (permalink / raw)


At 10:53 14/05/2004, you wrote:
>Hallo Hans,
>
>I have played with positioning text in layers. I noticed that parameter 
>"location=t"
>   \setlayer[MyLayer][...,location=t,...]{...}
>behaves the same way as "location=c". It seems to me it is the bug in 
>optimized definition of
>\alignedbox. If I use commented version of \alignedbox from source file 
>core-box.tex
>it is OK. Can you look at it, please?

ah, a real seious bug! You need to fix both b and t:

\setvalue{\??ab\??ab  b}{\bottombox}
\setvalue{\??ab\??ab  t}{\topbox}

Hans  

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

* Re: layers (was bug in alignbox)
  2004-05-14  8:53 bug in alignbox Vit Zyka
  2004-05-14 16:09 ` Hans Hagen
@ 2004-05-15  8:20 ` pawcoo
  1 sibling, 0 replies; 3+ messages in thread
From: pawcoo @ 2004-05-15  8:20 UTC (permalink / raw)


Vit Zyka wrote:

> Hallo Hans,
> 
> I have played with positioning text in layers. I noticed that parameter "location=t" 
>   \setlayer[MyLayer][...,location=t,...]{...}
> behaves the same way as "location=c". It seems to me it is the bug in optimized definition of 
> \alignedbox. If I use commented version of \alignedbox from source file core-box.tex
> it is OK. Can you look at it, please?

BTW, how to use context layers to produce PDF layers I can switch on and
off using arobat 6? I've compiled the sample and the result doesn't
contains PDF layers.

Regards, Pawe/l

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

end of thread, other threads:[~2004-05-15  8:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-14  8:53 bug in alignbox Vit Zyka
2004-05-14 16:09 ` Hans Hagen
2004-05-15  8:20 ` layers (was bug in alignbox) pawcoo

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