Command/basegrid

From Wiki
Jump to navigation Jump to search


\basegrid

Summary

The command \basegrid displays an empty grid.

Settings

\basegrid[...=...,...]
nxnumber
nynumber
dxnumber
dynumber
factornumber
scalenumber
xstepnumber
ystepnumber
offsetdimension
xoffsetdimension
yoffsetdimension
alignmiddle
unitcm mm in pc pt bp
stylestyle command
colorcolor
rulecolorcolor
rulethicknessdimension

OptionExplanation
nx
number of columns
number 10 = default
ny
number of rows
number 10 = default
dx
width of cells (uses unit).
number 0.5 = default
dy
heigth of cells (uses unit)
number 0.5 = default
factor
scale factor
number 1 = natural size (default)
scale
scale factor
number 1 = natural size (default)
xstep
put labels on the bottom every xstep column line marker
number default = empty (no labels)
ystep
put labels on the left every ystep row marker (starts at bottom)
number default = empty (no labels)
offset
label offset, positive values move toward grid center
dimension 0.25\exheight = default
xoffset
label offset for row markers ("moves in x direction")
yoffset
label offset for column markers ("moves in y direction")
align
centers on middle of cell.

Bug report: produces an error with LMTX 2020.06.30 (See: Bug List)
unit
dimension to use for dx and dy
style
style for grid labels
color
color for grid labels
rulecolor
color for grid lines
rulethickness
thickness of grid lines

Description

The command \basegrid displays an empty grid with optional labelling of grid lines.

Examples

Example 1

\basegrid[nx=4,ny=3]

Example 2

\basegrid[dy=1,dx=1,unit=in,
          xstep=3,ystep=1,scale=.25,
          style=bold,color=blue,offset=-.5\exheight,
          rulecolor=red]

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: