Difference between revisions of "Command/defineoverlay"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
 
{{Reference
 
{{Reference
 
|name=defineoverlay
 
|name=defineoverlay
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>defineoverlay</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
Line 13: Line 14:
 
   <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. The first argument provides the name, the second argument the contents.
  
 +
== Example ==
 +
<context source=yes>
 +
\setupcolors[state=start]
  
 +
\defineoverlay[tea][{\green\ss\bf GREEN TEA}]
  
== Example ==
+
\framed[
<!-- Please fill in an example if you can -->
+
    background=tea,
 +
    align={middle,hilo}
 +
]{
 +
    \em today
 +
    \blank[2*big]
 +
    for sale
 +
}
 +
</context>
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|startoverlay}}
 +
* [[Overlays]]
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|defineoverlay]]
+
[[Category:Command/Overlays|defineoverlay]]

Latest revision as of 13:54, 18 November 2019

\defineoverlay

Syntax (autogenerated)

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


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: