Difference between revisions of "Command/ placepairedbox"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \<i>placepairedbox</i>")
 
Line 4: Line 4:
 
<cd:shortdesc>
 
<cd:shortdesc>
 
<!-- a short command summary goes here -->
 
<!-- a short command summary goes here -->
The instances of  <tt>\<i>placepairedbox</i></tt> are used for ...
+
The instances of  <tt>\<i>placepairedbox</i></tt> are used for combining to objects.
 
</cd:shortdesc>
 
</cd:shortdesc>
 
<cd:sequence>
 
<cd:sequence>
Line 29: Line 29:
 
</cd:variants>
 
</cd:variants>
 
<cd:description>
 
<cd:description>
<!-- the long description of the command goes here -->
+
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>
<!--  command example(s)
 
 
<cd:example title="">
 
<cd:example title="">
 +
<context source="yes" text="This gives:">
 +
\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}
 +
  }
 +
</context>
 
</cd:example>
 
</cd:example>
-->
 
 
</cd:examples>
 
</cd:examples>
 
<cd:notes>
 
<cd:notes>
Line 57: Line 74:
 
<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:seealso>
 
</cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Revision as of 13:25, 21 August 2020


\placepairedbox

Summary

The instances of \placepairedbox are used for combining to objects.

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}
   }

This gives:

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: