Difference between revisions of "Command/placelegend"

From ConTeXt wiki
 
Line 4: Line 4:
 
}}
 
}}
  
== [[Help:Reference|Syntax]] (autogenerated)] ==
+
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>placelegend</syntax>
 
<syntax>placelegend</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Latest revision as of 14:42, 15 October 2019

\placelegend

Syntax (autogenerated)

\placelegend[...=...,...]{...}{...}
instance of \placepairedbox


Syntax

\placelegend{...}{...}
{...} text
{...} 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.

Example

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

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: