Difference between revisions of "Overlays"

From Wiki
Jump to navigation Jump to search
 
m (changed pre to texcode)
Line 8: Line 8:
 
'''Defining'''
 
'''Defining'''
  
<pre>
+
<texcode>
 
\defineoverlay[reference name][commands]
 
\defineoverlay[reference name][commands]
</pre>
+
</texcode>
  
 
Better put your commands in braces.
 
Better put your commands in braces.
Line 18: Line 18:
 
You can use defined overlays everywhere, where there's a <tt>background</tt> option.
 
You can use defined overlays everywhere, where there's a <tt>background</tt> option.
  
<pre>
+
<texcode>
 
\defineoverlay[tea][{\green\ss\bf GREEN TEA}]
 
\defineoverlay[tea][{\green\ss\bf GREEN TEA}]
  
 
\framed[height=40pt, background=tea, align=middle]%
 
\framed[height=40pt, background=tea, align=middle]%
 
{\em today\\for sale}
 
{\em today\\for sale}
</pre>
+
</texcode>
  
 
You can use this also with pictures. See also [[Logos]].
 
You can use this also with pictures. See also [[Logos]].

Revision as of 11:12, 2 September 2004

< Graphics

What are Overlays?

Overlays are predefined snippets that you can stack on each other. Opposite to Layers that regard whole pages, overlays mostly are only single pictures, words or the like.

Defining

\defineoverlay[reference name][commands]

Better put your commands in braces.

Using

You can use defined overlays everywhere, where there's a background option.

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

\framed[height=40pt, background=tea, align=middle]%
{\em today\\for sale}

You can use this also with pictures. See also Logos.