Command/definepairedbox

From Wiki
Jump to navigation Jump to search


\definepairedbox

Summary

The command \definepairedbox is used for defining a paired set of boxes.

Settings

\definepairedbox[...][...][...=...,...]
[...]name
[...]name
...=...,...inherits from \setuppairedbox

OptionExplanation
name of the paired box to be define
optional parent for inheritance

Description

Using \definepairedbox defines a setup command and a place command. The place command accepts two content arguments. The first argument is assumed to be a horizontal box, the second argument is vertical mode material.

See the example below.

Examples

Example 1

\definepairedbox[explanation]

\setupexplanation[location=left]

\placeexplanation
      {\externalfigure[cow][width=4cm]}
      {\starttabulate
       \NC 1 \NC head \NC \NR
       \NC 2 \NC legs \NC \NR
       \NC 3 \NC tail \NC \NR
       \stoptabulate}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: