Difference between revisions of "Overlays"

From Wiki
Jump to navigation Jump to search
(Better example, remove unneeded category)
Line 3: Line 3:
 
== What are Overlays? ==
 
== What are Overlays? ==
  
Overlays are predefined snippets that you can stack on each other. In contrast to [[layers]], which regard whole pages, overlays mostly are only single pictures, words or the like.
+
Overlays are predefined snippets that you can stack on each other. In contrast to [[Layers|layers]], which regard whole pages, overlays mostly are only single pictures, words or the like.
  
 
== Defining ==
 
== Defining ==
Line 32: Line 32:
 
</context>
 
</context>
  
You can use this also with pictures. See also [[logos]].
+
You can use this also with pictures. See also [[Logos|logos]].
  
Another use for overlays is for adding a graphic to every page to indicate chapters (sometimes known as a [[thumb index]]).
+
Another use for overlays is for adding a graphic to every page to indicate chapters (sometimes known as a [[Thumb index|thumb index]]).
  
 
== See Also ==
 
== See Also ==

Revision as of 16:41, 26 November 2012

< Graphics

What are Overlays?

Overlays are predefined snippets that you can stack on each other. In contrast to layers, which 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.

\setupcolors[state=start]

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

\framed[
    background=tea, 
    align={middle,hilo}
]{
    \em today
    \blank[2*big]
    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).

See Also