Difference between revisions of "Command/showgrid"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \showgrid") |
|||
Line 24: | Line 24: | ||
</cd:command> | </cd:command> | ||
</cd:variants> | </cd:variants> | ||
− | <cd:description>Show the grid on which typesetting would take place. | + | <cd:description>Show the grid on which typesetting would take place. |
Line 49: | Line 49: | ||
<cd:source file="page-grd.mkiv" originator="system"></cd:source> | <cd:source file="page-grd.mkiv" originator="system"></cd:source> | ||
<cd:wikipage originator="system" page="Category:Layout"></cd:wikipage> | <cd:wikipage originator="system" page="Category:Layout"></cd:wikipage> | ||
− | <cd:commandref name="setuplayout">to enable typesetting on the grid with <code>grid=yes</code>.</cd:commandref></cd:seealso> | + | <cd:commandref name="setuplayout">to enable typesetting on the grid with <code>grid=yes</code>.</cd:commandref> |
+ | <cd:commandref name="definepalet">to change the colors</cd:commandref></cd:seealso> | ||
</cd:commandgroup> | </cd:commandgroup> |
Latest revision as of 10:19, 30 November 2021
Contents
\showgrid
Summary
The command \showgrid shows the grid
Settings
\showgrid[...,...] | |
[...,...] | reset bottom top none all lines frame nonumber right left outer inner columns |
Option | Explanation |
---|---|
bottom | show grid below page content |
top | show grid over page content |
none | no lines, no frame |
all | show lines and frame |
lines | show lines |
frame | show frame(s) |
nonumber | no numbers |
right | numbers on the right |
left | numbers on the left |
outer | numbers in the outside margin (for double-sided) |
inner | numbers in the inside margin (for double-sided) |
Description
Show the grid on which typesetting would take place.
Use e.g. \definepalet[layout][grid=blue] to change the color of the grid.
Examples
Example 1
\setuppapersize[A10] \showframe \showgrid \starttext asdf \stoptext
Example 2
\setuppapersize[A10] \definepalet[layout][grid=blue] \showgrid[left,top,lines] \starttext asdf \stoptext
Notes
See also
- page-grd.mkiv
- \setuplayout to enable typesetting on the grid with
grid=yes
. - \definepalet to change the colors