Re: [NTG-context] bug with showlayout

2011-05-16 Thread Wolfgang Schuster

Am 16.05.2011 um 10:57 schrieb luigi scarso:

 \showlayout
 \starttext
 \input knuth
 \stoptext
 
 doesn't show the values in mkiv

Move \showlayout *after* \starttext or add \setupbodyfont[modern] *before* 
\showlayout.

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
___


Re: [NTG-context] bug with showlayout

2011-05-16 Thread Hans Hagen

On 16-5-2011 10:57, luigi scarso wrote:

\showlayout
\starttext
\input knuth
\stoptext

doesn't show the values in mkiv


\starttext
\showlayout
\input knuth
\stoptext

-
  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
___


Re: [NTG-context] bug with showlayout

2011-05-16 Thread luigi scarso
On Mon, May 16, 2011 at 11:11 AM, Hans Hagen pra...@wxs.nl wrote:
 On 16-5-2011 10:57, luigi scarso wrote:

 \showlayout
 \starttext
 \input knuth
 \stoptext

 doesn't show the values in mkiv

 \starttext
 \showlayout
 \input knuth
 \stoptext

It's ok (as also the Wolfgang replay)
but this works
\showframe
\starttext
\input knuth
\stoptext

so I expected the same for this
\showlayout
\starttext
\input knuth
\stoptext

which looks more consistent.

Of course this is ok
\starttext
\showframe
\input knuth
\stoptext


but showing meta informations between \starttext \stoptext it's a bit strange.


-- 
luigi
___
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
___


Re: [NTG-context] bug with showlayout

2011-05-16 Thread Wolfgang Schuster

Am 16.05.2011 um 11:20 schrieb luigi scarso:

 but showing meta informations between \starttext \stoptext it's a bit strange.

When you’re use \startproduct or \startcomponent you’re always after \starttext.

The reason why nothing was shown in your example is that font loading is 
postponed till \starttext in mkiv.

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
___


Re: [NTG-context] bug with showlayout

2011-05-16 Thread Hans Hagen

On 16-5-2011 11:30, Wolfgang Schuster wrote:


Am 16.05.2011 um 11:20 schrieb luigi scarso:


but showing meta informations between \starttext \stoptext it's a bit strange.


it's not meta-info ... it's typeset content


When you’re use \startproduct or \startcomponent you’re always after \starttext.

The reason why nothing was shown in your example is that font loading is 
postponed till \starttext in mkiv.




-
  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
___


Re: [NTG-context] bug with showlayout

2011-05-16 Thread Hans Hagen

On 16-5-2011 11:20, luigi scarso wrote:

On Mon, May 16, 2011 at 11:11 AM, Hans Hagenpra...@wxs.nl  wrote:

On 16-5-2011 10:57, luigi scarso wrote:


\showlayout
\starttext
\input knuth
\stoptext

doesn't show the values in mkiv


\starttext
\showlayout
\input knuth
\stoptext


It's ok (as also the Wolfgang replay)
but this works
\showframe
\starttext
\input knuth
\stoptext

so I expected the same for this
\showlayout
\starttext
\input knuth
\stoptext

which looks more consistent.

Of course this is ok
\starttext
\showframe
\input knuth
\stoptext


but showing meta informations between \starttext \stoptext it's a bit strange.


no, \showframe just is a setup command (it sets some borders) while 
showlayout generates 4 pages and generating content before \starttext is 
'not done'



-
  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
___


Re: [NTG-context] bug with showlayout

2011-05-16 Thread luigi scarso
On Mon, May 16, 2011 at 11:43 AM, Hans Hagen pra...@wxs.nl wrote:
 On 16-5-2011 11:30, Wolfgang Schuster wrote:

 Am 16.05.2011 um 11:20 schrieb luigi scarso:

 but showing meta informations between \starttext \stoptext it's a bit
 strange.

 it's not meta-info ... it's typeset content
paperwidth, paperheight, bodyfontsize, the frames etc are meta-info of
the document

-- 
luigi
___
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
___


Re: [NTG-context] bug with showlayout

2011-05-16 Thread Hans Hagen

On 16-5-2011 11:53, luigi scarso wrote:

On Mon, May 16, 2011 at 11:43 AM, Hans Hagenpra...@wxs.nl  wrote:

On 16-5-2011 11:30, Wolfgang Schuster wrote:


Am 16.05.2011 um 11:20 schrieb luigi scarso:


but showing meta informations between \starttext \stoptext it's a bit
strange.


it's not meta-info ... it's typeset content

paperwidth, paperheight, bodyfontsize, the frames etc are meta-info of
the document


yes, but they are *typeset* so we need to start the text first

anyhow, the attached can make you happy i guesa


-
  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
-
%D \module
%D   [   file=page-run,
%Dversion=2000.10.20,
%D  title=\CONTEXT\ Page Macros,
%D   subtitle=Runtime Macros,
%D author=Hans Hagen,
%D   date=\currentdate,
%D  copyright={PRAGMA / Hans Hagen \ Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

\writestatus{loading}{ConTeXt Page Macros / Runtime Macros}

\unprotect

\gdef\doshowprint[#1][#2][#3]%
  {\framed
 [\c!offset=\v!overlay,
  \c!strut=\v!no]
 {\forgetall
  \dontcomplain
  \globaldefs\minusone
  \dimen\zerocount\pagegoal
  \definepapersize[X][\c!width=4em, \c!height=6em]%
  \definepapersize[Y][\c!width=12em,\c!height=14em]%
  \setuppapersize[#1,X][#2,Y]%
  \setuplayout[#3]%
  \setbox\zerocount\vbox
{\framed
  [\c!offset=\v!overlay,\c!strut=\v!no,
   \c!width=\paperwidth,\c!height=\paperheight]
  {\ss ABC\par DEF}}%
  \doublesidedfalse
  \def\cutmarklength{.5em}%
  \addpagecutmarks \zerocount
  \replicatepagebox\zerocount
  \scalepagebox\zerocount
  \mirrorpaperbox  \zerocount
  \orientpaperbox  \zerocount
  \centerpagebox   \zerocount
  \mirrorprintbox  \zerocount
  \orientprintbox  \zerocount
  \offsetprintbox  \zerocount
  \pagegoal\dimen\zerocount
  \box0}}

\gdef\showprint
  {\dotripleempty\doshowprint}

% \switchnaarkorps[8pt]
%
% \startcombinatie[4*4]
%   {\toonprint}   {\strut}
%   {\toonprint[][][plaats=midden]}{\type{plaats=midden}}
%   {\toonprint[][][plaats=midden,markering=aan]}  {\type{markering=aan}\break
%  \type{plaats=midden}}
%   {\toonprint[][][plaats=midden,markering=aan,nx=2]} {\type{markering=aan}\break
%  \type{plaats=midden}\break
%  \type{nx=2}}
%   {\toonprint[][][plaats=links]} {\type{plaats=links}}
%   {\toonprint[][][plaats=rechts]}{\type{plaats=rechts}}
%   {\toonprint[][][plaats={links,onder}]} {\type{plaats={links,onder}}}
%   {\toonprint[][][plaats={rechts,onder}]}{\type{plaats={rechts,onder}}}
%   {\toonprint[][][nx=2,ny=1]}{\type{nx=2,ny=1}}
%   {\toonprint[][][nx=1,ny=2]}{\type{nx=1,ny=2}}
%   {\toonprint[][][nx=2,ny=2]}{\type{nx=2,ny=2}}
%   {\toonprint[][][nx=2,ny=2,plaats=midden]}  {\type{nx=2,ny=2}\break
%   \type{plaats=midden}}
%   {\toonprint[][][rugoffset=3pt]}{\type{rugoffset=.5cm}}
%   {\toonprint[][][kopoffset=3pt]}{\type{kopoffset=.5cm}}
%   {\toonprint[][][schaal=1.5]}   {\type{schaal=1.5}}
%   {\toonprint[][][schaal=0.8]}   {\type{schaal=0.8}}
% \stopcombinatie
%
% \startcombinatie[3*4]
%   {\toonprint[liggend][][plaats=midden]}  {\type{liggend}}
%   {\toonprint[][liggend][plaats=midden]}  {\strut\break\type{liggend}}
%   {\toonprint[liggend][liggend][plaats=midden]}   {\type{liggend}\break\type{liggend}}
%   {\toonprint[90][][plaats=midden]}   {\type{90}}
%   {\toonprint[][90][plaats=midden]}   {\strut\break\type{90}}
%   {\toonprint[90][90][plaats=midden]} {\type{90}\break\type{90}}
%   {\toonprint[180][][plaats=midden]}  {\type{180}}
%   {\toonprint[][180][plaats=midden]}  {\strut\break\type{180}}
%   {\toonprint[180][180][plaats=midden]}   {\type{180}\break\type{180}}
%   {\toonprint[gespiegeld][][plaats=midden]}   {\type{gespiegeld}}
%   {\toonprint[][gespiegeld][plaats=midden]}   {\strut\break\type{gespiegeld}}
%   {\toonprint[gespiegeld][gespiegeld][plaats=midden]} 

Re: [NTG-context] bug with showlayout

2011-05-16 Thread luigi scarso
On Mon, May 16, 2011 at 12:21 PM, Hans Hagen pra...@wxs.nl wrote:
 On 16-5-2011 11:53, luigi scarso wrote:

 On Mon, May 16, 2011 at 11:43 AM, Hans Hagenpra...@wxs.nl  wrote:

 On 16-5-2011 11:30, Wolfgang Schuster wrote:

 Am 16.05.2011 um 11:20 schrieb luigi scarso:

 but showing meta informations between \starttext \stoptext it's a bit
 strange.

 it's not meta-info ... it's typeset content

 paperwidth, paperheight, bodyfontsize, the frames etc are meta-info of
 the document

 yes, but they are *typeset* so we need to start the text first
hm...good point



 anyhow, the attached can make you happy i guesa
ok

-- 
luigi
___
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
___