Difference between revisions of "Command/ placepairedbox"

From Wiki
Jump to navigation Jump to search
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> used for combining two boxes.
The instances of  <tt>\<i>placepairedbox</i></tt> are used for combining to objects.
 
 
</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 just a paired box.
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 just a paired box.
 
 
</cd:description>
 
</cd:description>
<cd:examples>
+
<cd:examples><cd:example title=""><context source="yes">
<cd:example title="">
 
<context source="yes" text="This gives:">
 
 
\setuppapersize[A6]
 
\setuppapersize[A6]
  
Line 51: Line 42:
 
       \stoptabulate}
 
       \stoptabulate}
 
   }
 
   }
</context>
+
</context></cd:example></cd:examples>
</cd:example>
+
<cd:notes></cd:notes>
</cd:examples>
 
<cd:notes>
 
<!--  this is for special remarks that do not fit elsewhere, like discovered bugs in specific context versions
 
<cd:note author="..." date="...">
 
</cd:note>
 
-->
 
</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:commandref name="startcombination"></cd:commandref>
+
<cd:commandref name="startcombination"></cd:commandref></cd:seealso>
</cd:seealso>
 
 
</cd:commandgroup>
 
</cd:commandgroup>

Revision as of 18:52, 27 August 2020


\placepairedbox

Summary

The instances of \placepairedbox used for combining two boxes.

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 just a paired box.

Examples

Example 1

\setuppapersize[A6]

\setupexternalfigures[location={local,default}]
% (necessary for the Wiki's ConTeXt live processor to find the cow picture)

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