Difference between revisions of "Overlays"

From Wiki
Jump to navigation Jump to search
m (Reverted edit of 202.177.186.176, changed back to last version by Mojca Miklavec)
Line 1: Line 1:
Brand information for the makers of tea and iced tea beverages. Includes recipes,
+
< [[Graphics]]
tea history and development, glossary, and answers to frequently asked questions
+
 
* [http://www.teainfo.org/ tea]  
+
'''What are Overlays?'''
* [http://www.teainfo.org/tea-bag.php tea bag]
+
 
* [http://www.teainfo.org/tea-gardner.php Tea Gardner]
+
Overlays are predefined snippets that you can stack on each other.
* [http://www.teainfo.org/green-tea.php green tea]
+
Opposite to [[Layers]] that regard whole pages, overlays mostly are only single pictures, words or the like.
* [http://www.teainfo.org/herbal-teas.php herbal teas]
+
 
* [http://www.pizzaguide.org/ pizza]
+
'''Defining'''
* [http://www.pizzaguide.org/pizza-dough.php pizza dough]
+
 
* [http://www.pizzaguide.org/italian-pizza.php italian pizza]
+
<texcode>
* [http://www.pizzaguide.org papa johns pizza]
+
\defineoverlay[reference name][commands]
* [http://www.coffee-guide.us/ coffee]
+
</texcode>
* [http://www.coffee-guide.us/gourmet-coffee.php gourmet coffee]
+
 
* [http://www.coffee-guide.us/coffee-makers.php coffee makers]
+
Better put your commands in braces.
* [http://www.coffee-guide.us/coffee-tables.php coffee tables]
+
 
* [http://www.coffee-guide.us/organic-coffee.php organic coffee]
+
'''Using'''
* [http://www.chocolateplanet.org Chocolate]
+
 
* [http://www.chocolateplanet.org chocolate factory]
+
You can use defined overlays everywhere, where there's a <tt>background</tt> option.
* [http://www.chocolateplanet.org chocolate candy]
+
 
* [http://www.chocolateplanet.org charlie and chocolate factory]
+
<texcode>
* [http://www.chocolateplanet.org chocolate chips]
+
\defineoverlay[tea][{\green\ss\bf GREEN TEA}]
 +
 
 +
\framed[height=40pt, background=tea, align=middle]%
 +
{\em today\\for sale}
 +
</texcode>
 +
 
 +
<context>
 +
\setupcolors[state=start]
 +
\defineoverlay[tea][{\green\ss\bf GREEN TEA}]
 +
 
 +
\framed[height=40pt, background=tea, align=middle]%
 +
{\em today\\for sale}
 +
</context>
 +
 
 +
You can use this also with pictures. See also [[Logos]].
 +
 
 +
Another use for overlays is for adding a graphic to every page to indicate chapters (sometimes known as a [[thumb index]]).
 +
 
 +
[[Category:Graphics]]

Revision as of 19:23, 6 June 2006

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

Another use for overlays is for adding a graphic to every page to indicate chapters (sometimes known as a thumb index).