Command/definesubfield

From Wiki
< Command
Revision as of 08:42, 5 October 2015 by Hraban (talk | contribs) (example and links)
Jump to navigation Jump to search

\definesubfield

Syntax

\definesubfield[...][...][...,...,...]
[...] name
[...] name
[...,...,...] name


Description

Define a single widget in a group of checkboxes or radio buttons.

  1. widget name
  2. setup name (defaults to setup name of group)
  3. content text or symbol, as defined with \definesymbol

Example

\usemodule[fields] % MkIV
\setupfield[myRadio][frame=on, corner=round, height=1em, width=1em]
\definefield[YesNo][radio][myRadio][Yes,No,Perhaps][Yes]
\definesubfield[Yes][][1]
\definesubfield[No][][0]
\definesubfield[Perhaps][][2]

\setuptabulate[|l|c|c|c|]
\NC \NC Yes \NC No \NC Perhaps \NR
\NC Would you like to dance? \NC\field[Yes]\NC\field[No]\NC\field[Perhaps]\NR
\stoptabulate

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: