ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Feature Request: showframe debugging
@ 2013-08-21  4:49 Thangalin
  2013-08-21  9:00 ` Hans Hagen
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Thangalin @ 2013-08-21  4:49 UTC (permalink / raw)
  To: ntg-context

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

Hi,

\showframe
[
  labels=on,
  measurements=on,
  color=red,
]

Would produce an image similar to the attached, but with the black
lines drawn in the specified colour.

Using labels=on would show the names of the items that can be changed
with \setuplayout.
Using measurements=on would show the values for each of the items.

I don't know if there is any value separating the measurements from the labels.

Thank you!

[-- Attachment #2: showframe.png --]
[-- Type: image/png, Size: 15565 bytes --]

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

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

* Re: Feature Request: showframe debugging
  2013-08-21  4:49 Feature Request: showframe debugging Thangalin
@ 2013-08-21  9:00 ` Hans Hagen
  2013-08-21 14:33 ` Aditya Mahajan
  2013-08-21 14:51 ` Marco Patzer
  2 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2013-08-21  9:00 UTC (permalink / raw)
  To: ntg-context

On 8/21/2013 6:49 AM, Thangalin wrote:
> Hi,
>
> \showframe
> [
>    labels=on,
>    measurements=on,
>    color=red,
> ]
>
> Would produce an image similar to the attached, but with the black
> lines drawn in the specified colour.
>
> Using labels=on would show the names of the items that can be changed
> with \setuplayout.
> Using measurements=on would show the values for each of the items.
>
> I don't know if there is any value separating the measurements from the labels.

You can use:

\starttext

\showlayout

% \showlayout[cc,cm,mm,bp]

\stoptext

the problem with visualizing is that values can be zero so visualizing 
becomes messy

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
___________________________________________________________________________________


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

* Re: Feature Request: showframe debugging
  2013-08-21  4:49 Feature Request: showframe debugging Thangalin
  2013-08-21  9:00 ` Hans Hagen
@ 2013-08-21 14:33 ` Aditya Mahajan
  2013-08-21 14:51 ` Marco Patzer
  2 siblings, 0 replies; 4+ messages in thread
From: Aditya Mahajan @ 2013-08-21 14:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Tue, 20 Aug 2013, Thangalin wrote:

> Hi,
>
> \showframe
> [
>  labels=on,
>  measurements=on,
>  color=red,
> ]
>
> Would produce an image similar to the attached, but with the black
> lines drawn in the specified colour.
>
> Using labels=on would show the names of the items that can be changed
> with \setuplayout.
> Using measurements=on would show the values for each of the items.
>
> I don't know if there is any value separating the measurements from the labels.

There was also the layout module[1] by Patrick that visualizes the layout, 
but it has not been tuned to work for MkIV.

[1]: http://modules.contextgarden.net/t-layout

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


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

* Re: Feature Request: showframe debugging
  2013-08-21  4:49 Feature Request: showframe debugging Thangalin
  2013-08-21  9:00 ` Hans Hagen
  2013-08-21 14:33 ` Aditya Mahajan
@ 2013-08-21 14:51 ` Marco Patzer
  2 siblings, 0 replies; 4+ messages in thread
From: Marco Patzer @ 2013-08-21 14:51 UTC (permalink / raw)
  To: ntg-context


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

On 2013–08–20 Thangalin wrote:

> \showframe
> [
>   labels=on,
>   measurements=on,
>   color=red,
> ]
> 
> Would produce an image similar to the attached, but with the black
> lines drawn in the specified colour.
> 
> Using labels=on would show the names of the items that can be changed
> with \setuplayout.
> Using measurements=on would show the values for each of the items.
> 
> I don't know if there is any value separating the measurements from the labels.

Some years ago I visualised the layout elements for a cheat sheet. The code can be
found here:

  https://gist.github.com/mpfusion/4635387

It could be extended to visualise the layout dimensions as well. But
that complicates the code, since you don't know where the labels end
up and you need to check for overlapping labels.

Marco

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

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

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

end of thread, other threads:[~2013-08-21 14:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-21  4:49 Feature Request: showframe debugging Thangalin
2013-08-21  9:00 ` Hans Hagen
2013-08-21 14:33 ` Aditya Mahajan
2013-08-21 14:51 ` Marco Patzer

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