Re: [NTG-context] [***SPAM***] Provide showgrid as a PDF layer

2013-11-30 Thread Hans Hagen

On 11/30/2013 12:04 AM, Jan Tosovsky wrote:

Dear All,

it would be nice to have a possibility to interactively disable/enable a
grid rendered via \showgrid command. Whereas this grid is helpful for
debugging, it disturbs when the page is evaluated as the whole. Using layers
could make this process more efficient (not requiring to generate both
variants).

I've noticed something like this is already implemented for the body area
(visualizer vbox layer).

Or is there any option for this already?


\setupinteraction[state=start]
\showgrid  \showframe \showmakeup \showlayoutcomponents

\starttext
\input tufte \placefigure{}{}
\stoptext

but you need a viewer that supports layers (can turn them on and off)

Hans

-
  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] [***SPAM***] Provide showgrid as a PDF layer

2013-11-30 Thread Jan Tosovsky
On 2013-11-30 Hans Hagen wrote:
 On 11/30/2013 12:04 AM, Jan Tosovsky wrote:
 
  it would be nice to have a possibility to interactively
  disable/enable a  grid rendered via \showgrid command. 
 
 
 \setupinteraction[state=start]
 \showgrid  \showframe \showmakeup \showlayoutcomponents
 
 \starttext
  \input tufte \placefigure{}{}
 \stoptext

Wow, thanks! 

So to show grids as a layer at least \showlayoutcomponents must be set as
well. To be honest, I'd expect displaying the grid directly without this
dependency...

Anyway, it works fine in Adobe Reader.

Jan

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


[NTG-context] [***SPAM***] Provide showgrid as a PDF layer

2013-11-29 Thread Jan Tosovsky
Dear All,

it would be nice to have a possibility to interactively disable/enable a
grid rendered via \showgrid command. Whereas this grid is helpful for
debugging, it disturbs when the page is evaluated as the whole. Using layers
could make this process more efficient (not requiring to generate both
variants).

I've noticed something like this is already implemented for the body area
(visualizer vbox layer).

Or is there any option for this already?

Thanks, Jan

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