Difference between revisions of "Command/ placepairedbox"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \<i>placepairedbox</i>")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<?xml version='1.0'?>
 
<!-- this file was generated on 2020-08-20T09:05 -->
 
 
<cd:commandgroup generated="yes" name="placepairedbox" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:commandgroup generated="yes" name="placepairedbox" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>
+
<cd:shortdesc><!-- a short command summary goes here -->
<!-- a short command summary goes here -->
+
The instances of  <tt>\place<i>pairedbox</i></tt> are used for combining two boxes together in various ways.
The instances of  <tt>\<i>placepairedbox</i></tt> are used for ...
 
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 28: Line 25:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description>
+
<cd:description>It makes sense to typeset a legend to a figure in TeX and not in a drawing package. The macro {{cmd|placelegend}} combines a figure (or something else) and its legend. This command is an example of a paired box definition.
<!-- the long description of the command goes here -->
 
 
</cd:description>
 
</cd:description>
<cd:examples>
+
<cd:examples><cd:example title=""><context source="yes">
<!--  command example(s)
+
\placefigure
<cd:example title="">
+
  {whow}
</cd:example>
+
  {\placelegend
-->
+
      {\externalfigure[cow][width=2cm]}
</cd:examples>
+
      {\starttabulate[|l|l|l|l|]
<cd:notes>
+
      \NC 1 \NC head \NC 3 \NC tail \NC \NR
<!--  this is for special remarks that do not fit elsewhere, like discovered bugs in specific context versions
+
      \NC 2 \NC legs \NC  \NC      \NC \NR
<cd:note author="..." date="...">
+
      \stoptabulate}
</cd:note>
+
  }
-->
+
</context></cd:example></cd:examples>
</cd:notes>
+
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>
<!-- one or more of these:
 
<cd:commandref name="xx"></cd:commandref>
 
<cd:wikipage  page="xx"></cd:wikipage>
 
<cd:url        url="https://xx"></cd:url>
 
<cd:manual    pdf="xx"></cd:manual>
 
<cd:source    file="xx"></cd:source>
 
-->
 
 
<cd:commandref name="_setuppairedbox" originator="system"></cd:commandref>
 
<cd:commandref name="_setuppairedbox" originator="system"></cd:commandref>
 
<cd:commandref name="_startplacepairedbox" originator="system"></cd:commandref>
 
<cd:commandref name="_startplacepairedbox" originator="system"></cd:commandref>
 
<cd:commandref name="definepairedbox" originator="system"></cd:commandref>
 
<cd:commandref name="definepairedbox" originator="system"></cd:commandref>
 
<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:wikipage originator="system" page="Category:Tables"></cd:wikipage>
</cd:seealso>
+
<cd:commandref name="startcombination"></cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 14:38, 30 August 2020


\placepairedbox

Summary

The instances of \placepairedbox are used for combining two boxes together in various ways.

Instances

\placelegend

Settings instance

\placePAIREDBOX[...=...,...]{...}{...}
...=...,...inherits from \setuppairedbox
{...}content
{...}text

Description

It makes sense to typeset a legend to a figure in TeX and not in a drawing package. The macro \placelegend combines a figure (or something else) and its legend. This command is an example of a paired box definition.

Examples

Example 1

\placefigure
   {whow}
   {\placelegend
      {\externalfigure[cow][width=2cm]}
      {\starttabulate[|l|l|l|l|]
       \NC 1 \NC head \NC 3 \NC tail \NC \NR
       \NC 2 \NC legs \NC   \NC      \NC \NR
       \stoptabulate}
   }

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: