Re: [NTG-context] strange behaviour with \scale

2005-07-02 Thread Hans Hagen

Peter Münster wrote:

Hello,

could anybody explain, why the "DRAFT" is bigger on the last two pages
please?

\defineoverlay[Draft][{\scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
\setupbackgrounds[page][background=Draft]
\starttext
\starttables[|l|]
\dorecurse{200}{\NC hallo \NC\AR}
\stoptables
\stoptext


the meaning of ~ chances inside a table and the last pages are flushed when the 
table is already typeset; a solution is:


\let\normalactivetilde~
\let\normalactivebar  |

\appendtoks\let~\normalactivetilde\to\everypagebody
\appendtoks\let|\normalactivebar  \to\everypagebody

another solution is to set the meaning of ~ at the table cell level; you may add 
that to the wiki as a feature reaquest -)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour with \scale

2005-07-01 Thread Taco Hoekwater

Peter Münster wrote:

On Fri, 1 Jul 2005, Mojca Miklavec wrote:



If you need a solution: use {\ Draft\ }



Thanks a lot! I didn't think about this kind of space at all...



If you need the reason: wait for the expert(s)



I don't need it, but it would certainly be interesting ;)


From looking at it quickly, it seems sometimes the output routine
is called when the ~ command has the 'normal' definition, and
sometimes when it has TaBlE's definition. These do not produce
identical results (~ in TaBlE has the width of a 'zero' digit).

I'm not sure why this happens, though.

Taco


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour with \scale

2005-07-01 Thread Peter Münster
On Fri, 1 Jul 2005, Mojca Miklavec wrote:

> If you need a solution: use {\ Draft\ }

Thanks a lot! I didn't think about this kind of space at all...

> If you need the reason: wait for the expert(s)

I don't need it, but it would certainly be interesting ;)

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange behaviour with \scale

2005-07-01 Thread Mojca Miklavec
Peter Münster wrote:

> could anybody explain, why the "DRAFT" is bigger on the last two pages
> please?

I played with

\defineoverlay[Draft][{\scale[factor=max]
{\rotate[rotation=60]{\framed[strut=no,offset=0pt]{\strut~DRAFT~\strut]
\setupbackgrounds[page][background=Draft]
\showstruts
\starttext
\dorecurse{400}{hallo \crlf}
\starttables[|l|]
\dorecurse{200}{\NC hallo \NC\AR}
\stoptables
\showlayout
\stoptext

>From the page where \starttables start till the prelast page where the
"tables" stop, '~' is "squeezed" somehow. There's also no \strut
present in that lines if you take a closer look. I don't have a clue,
but you have good imagination!

If you need a solution: use {\ Draft\ }
If you need the reason: wait for the expert(s)

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] strange behaviour with \scale

2005-07-01 Thread Peter Münster
Hello,

could anybody explain, why the "DRAFT" is bigger on the last two pages
please?

\defineoverlay[Draft][{\scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
\setupbackgrounds[page][background=Draft]
\starttext
\starttables[|l|]
\dorecurse{200}{\NC hallo \NC\AR}
\stoptables
\stoptext

Cheers and TIA, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context