Difference between revisions of "Command/definepairedbox"

From Wiki
Jump to navigation Jump to search
 
Line 21: Line 21:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description><!-- the long description of the command goes here -->
+
<cd:description>Using {{cmd|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.
 
</cd:description>
 
</cd:description>
<cd:examples></cd:examples>
+
<cd:examples><cd:example title=""><context source="yes">
 +
\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}
 +
</context></cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>
 
<cd:commandref name="setuppairedbox" originator="system"></cd:commandref>
 
<cd:commandref name="setuppairedbox" originator="system"></cd:commandref>
 
<cd:source file="pack-com.mkiv" originator="system"></cd:source>
 
<cd:source file="pack-com.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Tables"></cd:wikipage></cd:seealso>
+
<cd:wikipage originator="system" page="Category:Tables"></cd:wikipage>
 +
<cd:commandref name="_placepairedbox"></cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 14:32, 30 August 2020


\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: