Difference between revisions of "Command/defineoverlay"

From Wiki
Jump to navigation Jump to search
(Description, Example, See Also)
Line 11: Line 11:
 
   <tr valign="top" class="first">
 
   <tr valign="top" class="first">
 
     <td class="cmd">[...,...,...]</td>
 
     <td class="cmd">[...,...,...]</td>
     <td>name </td>
+
     <td>''name''</td>
 
   </tr>
 
   </tr>
 
   <tr valign="top" class="second">
 
   <tr valign="top" class="second">
 
     <td class="cmd">[...]</td>
 
     <td class="cmd">[...]</td>
     <td>command </td>
+
     <td>''command''</td>
 
   </tr>
 
   </tr>
 
</table>
 
</table>
 
  
 
== Description ==  
 
== Description ==  
Define an overlay.
+
Define an overlay. The first argument provides the name, the second argument the contents.
  
 
== Example ==
 
== Example ==
Line 40: Line 39:
  
 
== See also ==
 
== See also ==
* {{cmd|setupoverlays}}
+
* {{cmd|startoverlay}}
 
* [[Overlays]]
 
* [[Overlays]]
  

Revision as of 13:03, 3 July 2012

\defineoverlay

Syntax

\defineoverlay[...,...,...][...]
[...,...,...] name
[...] command

Description

Define an overlay. The first argument provides the name, the second argument the contents.

Example

\setupcolors[state=start]

\defineoverlay[tea][{\green\ss\bf GREEN TEA}]

\framed[
    background=tea, 
    align={middle,hilo}
]{
    \em today
    \blank[2*big]
    for sale
}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: