Feature Request: showframe debugging
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!
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 -----------------------------------------------------------------
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
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
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Marco Patzer
-
Thangalin